Importing a Starter app or any application with the Contentstack SDK requires adding key-value pairs of environment variables like CONTENTSTACK_API_KEY, CONTENTSTACK_DELIVERY_TOKEN, etc. Adding these environment variables manually is a tedious task.
Launch allows you to auto-populate the Environment Variables from your stack, by linking the stack to your project. This allows you to easily use the CMS environment variables while deploying your Launch project.
This step-by-step guide lets you link a stack to your project to auto-populate Environment Variables.
Note: This feature can also be used when creating or configuring an environment.
How to link a stack to a project to auto-populate environment variables.
How to view the stack linked to a project.
How to update the linked stack and sync its variables.
Follow the steps to link a stack to your project:

Note: On selecting a delivery token, Launch automatically selects a Stack environment available for the selected token.

You can see that the Environment Variables were auto-populated from your selected stack.
Your project is now deployed.
Follow the step to view the linked stack after project creation:
You can see the linked stack.

Follow the steps below to update a linked stack:




This will sync your new stack’s Environment Variables to your project.