Logo

Command Palette

Search for a command to run...

env-vars download

Downloads the environment variables from an application and writes them to a file. This file can either use the same format as web download (dotenv) or json.

You can specify which kinds of variables to download using environment-type with the following variables: 

  • all returns all environment variables
  • user returns user-created environment variables
  • generated returns environment variables generated by Cloud 66
  • locked returns non-editable environment variables that were generated by Cloud 66
$ cx env-vars download --stack <application name> --environment-type <type> --file <filename> --file-type <file-type>

Options

ArgumentRequired?DefaultDescription
--stack, -s <application name>yesFull or partial name of the application
--file-type <file-type>yesSets the format of the file containing the list of environment variables (dotenv or json)
--file <filename>yesThe filename of the file being created (or overwritten) by the download
--environment-type <type>noSpecify the type of variables. Accepts multiple options. (all, user, generated, locked)

Examples

$ cx env-vars download -s mystack --file environment_variables_json --file-type json
$ cx env-vars download -s another_app --file environment_variables_dotenv --file-type dotenv