Menu

Regional

Twilio's Global Infrastructure enables you to ensure that your application’s Twilio data remains within the corresponding territory at all times, and that your commands execute with the shortest possible round trips to Twilio's servers. Twilio Regions are supported by the CLI as well, so you can continue to use the CLI without worrying about data residency.

Set Region

With profiles

You can specify the target Region for a profile using the --region flag. For example:

twilio login --region au1

With environment variables

Alternatively, you can specify the target Region by setting it as an environment variable. This will take precedence over the region setting of the active profile:

export TWILIO_REGION=au1

Set Edge

In addition to Regions, you can control which geographic location your network request enters and exits Twilio's platform by defining an Edge Location. The Edge Location used by the CLI can be controlled either by setting it as a configuration, or with an environment variable.

With twilio config

The Edge Location used by the CLI can be controlled by setting it as a configuration:

twilio config:set --edge=sydney

With environment variables

Alternatively, you can specify the target Edge Location by setting it as an environment variable. This will take precedence over any value set with twilio config:

export TWILIO_EDGE=sydney
Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

Thank you for your feedback!

Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

Refer us and get $10 in 3 simple steps!

Step 1

Get link

Get a free personal referral link here

Step 2

Give $10

Your user signs up and upgrade using link

Step 3

Get $10

1,250 free SMSes
OR 1,000 free voice mins
OR 12,000 chats
OR more