When you are ready, use $ twilio infra:deploy to deploy it to your Twilio project If you look in the root directory, you will see a new file named .twilio-infra . If you open this file, you should see something like this: Json Copy the code { "ACxxxxxxxxxxxxxxxxxxxxxxxxxxx":{ "environment":"test", "deployed":false } } This file keeps track of the mapping between Twilio project environments and their deployment status information. You can now deploy your Twilio resources using the following: Bash Copy the code $ twilio infra:deploy If you look at the file again .twilio-infra, you will see that the deployed attribute has changed to true, to indicate that the project has been deployed.

Deploy to production Once you have completed your testing in the staging environment, you are ready to deploy to production. In this case, we don't have a production environment defined for the project, so we need to create one. In real environments, production is usually tracked on a shared storage environment (e.g. the Pulumi backend, which we'll talk about later). Before creating a new environment, the first step is to switch to another project. If a Twilio project is already associated with a previously deployed environment, the CLI plugin prevents a new environment from being defined on the same project.