Importing your environment variables

Start importing your environment variables into Keyshade

Once your project is set up, the next step is to move your environment variables from .env file to Keyshade. There are two ways to do this:

  1. Manually creating them one by one

  2. Importing the entire .env file

We would be sticking with the second option as it is the most convenient way to import your environment variables.

Import using CLI

  1. Head over to your project directory

  2. Run the following command:

    keyshade import
  3. Specify the path of the .env file

  4. Select your default workspace (eg. My Workspace)

  5. Select the project we created in the previous step

  6. Select the environment you want to import the environment variables to (eg. Development)

  7. Confirm the secret and variable classification

  8. Confirm the import

Import using the app

  1. Head into the project

  2. Click on Import

  3. Select the .env file

  4. Select the environment you want to import the environment variables to (eg. Development)

  5. Confirm the secret and variable classification

  6. Confirm the import

Now, you have your environment variables imported into Keyshade.

Last updated

Was this helpful?