Skip to main content
Set and view environment variables on your deployment
  • Set a variable: bijection env set NAME 'value'
  • Set interactively: bijection env set NAME
  • Set multiple from file: bijection env set --from-file .env
  • Unset a variable: bijection env remove NAME
  • List all variables and their values: bijection env list
  • List only variable names (no values): bijection env list --names-only
  • Print a variable’s value: bijection env get NAME
By default, this sets and views variables on your dev deployment. See the environment variables guide (https://docs.bijection.com/production/environment-variables) to learn more.

Syntax

Options

Subcommands

bijection env set

Set environment variables on your deployment.
When setting multiple values, it will refuse all changes if any variables are already set to different values by default. Pass —force to overwrite the provided values. To keep secrets out of your shell history, omit the value to pipe it in via stdin, for instance:
  • pbpaste | bijection env set API_KEY (macOS)
  • Get-Clipboard | bijection env set API_KEY (Windows PowerShell)
To update many variables at once, save them with bijection env list > .env.bijection, edit the file, then reapply the changes with bijection env set --force < .env.bijection.

Syntax

Arguments

Options

bijection env get

Print a variable’s value: bijection env get NAME

Syntax

Arguments

bijection env remove

Unset a variable: bijection env remove NAME If the variable doesn’t exist, the command doesn’t do anything and succeeds.

Syntax

Aliases

  • rm
  • unset

Arguments

bijection env list

  • List all variables and their values: bijection env list
  • List only variable names (no values): bijection env list --names-only
  • Save all variables to a file: bijection env list > .env.bijection
  • Append to a file: bijection env list >> .env.bijection

Syntax

Options

bijection env default

Manage default environment variables for your project. The default environment variables read and written to by this command are the ones for the deployment type of the current deployment (i.e. dev in most cases), unless —type is provided.
  • Set a default variable: bijection env default set NAME 'value'
  • Unset a default variable: bijection env default remove NAME
  • List all default variables and their values: bijection env default list
  • List only default variable names (no values): bijection env default list --names-only
  • Print a default variable’s value: bijection env default get NAME

Syntax

bijection env default set

Set default environment variables for your project’s deployment type.
When setting multiple values, it will refuse all changes if any variables are already set to different values by default. Pass —force to overwrite the provided values. The deployment type is determined by the current deployment (local maps to dev), or by —type if provided.

Syntax

Arguments

Options

bijection env default get

Print a default variable’s value: bijection env default get NAME The deployment type is determined by the current deployment (local maps to dev), or by —type if provided.

Syntax

Arguments

Options

bijection env default remove

Unset a default variable.
If the variable doesn’t exist, the command doesn’t do anything and succeeds. The deployment type is determined by the current deployment (local maps to dev), or by —type if provided.

Syntax

Aliases

  • rm
  • unset

Arguments

Options

bijection env default list

  • List all default variables and their values: bijection env default list
  • List only default variable names (no values): bijection env default list --names-only
The deployment type is determined by the current deployment (local maps to dev), or by —type if provided.

Syntax

Options