bijection env
Set and view environment variables on your installation
• Set a variable: `bijection env set NAME 'value'`
• Set interactively: `bijection env set NAME`
• Set multiple from file: `bijection env set --from-file .env.bijection`
• Set every declared variable the installation lacks: `bijection env bootstrap --from-file .env.local`
• Unset a variable: `bijection env remove NAME`
• List only variable names (no values): `bijection env list --names-only`
• List all variables and their values: `bijection env list --include-values`
• Print a variable's value: `bijection env get NAME`
Environment variables are plain configuration, identical in every world. Store credentials with `bijection secret set`.
By default, this sets and views variables on your dev installation.
See the environment variables guide (https://docs.bijection.com/operate/configuration/environment-variables) to learn more.
Usage:
bijection env [flags]
bijection env [command]
Available Commands:
bootstrap Set the declared variables the installation lacks
default Manage project defaults held by the assigned cell
get Print a variable's value
list List environment variable names
remove Unset a variable
set Set a variable
Flags:
-h, --help help for env
--help-all Show all commands and options, including administrative controls.
--help-json Print command input and output schemas as JSON without executing it.
--installation string Set and view environment variables on this installation: <project>:<name>, as my-app:prod.
--sign-in-source string Select the installed authentication source for business sign-in
--url string Set and view environment variables on a private installation at this explicit origin.
Use "bijection env [command] --help" for more information about a command.
bijection env bootstrap
Set every environment variable the application declares in the `env` of defineApp that the installation does not hold yet.
• `bijection env bootstrap --from-file .env.local`
• `bijection env bootstrap # prompt for each missing value`
• `bijection env --installation my-app:prod bootstrap --from-file .env.production`
The declarations decide what is set: a name the file holds but the application does not declare is reported and never set. A missing value is read from the file, or else prompted for without echo; an optional one may be left empty.
A value the installation already holds is never replaced; change it with `bijection env set --force`. Bootstrap preserves existing values. Values are never printed.
The pure authoring compiler reads declarations without requiring the target environment or publishing generated files; nothing is deployed.
--from-file refuses a file inside the current Git repository that Git tracks or does not ignore.
Usage:
bijection env bootstrap [flags]
Flags:
--from-file string Read values from a .env file outside the repository or ignored by Git; only declared names are used.
-h, --help help for bootstrap
--help-all Show all commands and options, including administrative controls.
--help-json Print command input and output schemas as JSON without executing it.
Global Flags:
--installation string Set and view environment variables on this installation: <project>:<name>, as my-app:prod.
--sign-in-source string Select the installed authentication source for business sign-in
--url string Set and view environment variables on a private installation at this explicit origin.
bijection env default
Manage project defaults held by the assigned cell
Usage:
bijection env default [flags]
bijection env default [command]
Available Commands:
list List default environment variable names
remove Remove a named default from the assigned cell
set Set named defaults on the assigned cell
Flags:
-h, --help help for default
--help-all Show all commands and options, including administrative controls.
--help-json Print command input and output schemas as JSON without executing it.
Global Flags:
--installation string Set and view environment variables on this installation: <project>:<name>, as my-app:prod.
--sign-in-source string Select the installed authentication source for business sign-in
--url string Set and view environment variables on a private installation at this explicit origin.
Use "bijection env default [command] --help" for more information about a command.
bijection env default list
List default environment variable names
Usage:
bijection env default list [flags]
Flags:
-h, --help help for list
--help-all Show all commands and options, including administrative controls.
--help-json Print command input and output schemas as JSON without executing it.
--installation string Use this installation's project, kind and assigned cell: <project>:<name>.
--project string Canonical project ID. Use with --type.
--type string Environment kind: dev, preview or prod.
Global Flags:
--sign-in-source string Select the installed authentication source for business sign-in
--url string Set and view environment variables on a private installation at this explicit origin.
bijection env default remove
Remove a named default from the assigned cell
Usage:
bijection env default remove <name> [flags]
Aliases:
remove, rm, unset
Flags:
-h, --help help for remove
--help-all Show all commands and options, including administrative controls.
--help-json Print command input and output schemas as JSON without executing it.
--installation string Use this installation's project, kind and assigned cell: <project>:<name>.
Global Flags:
--sign-in-source string Select the installed authentication source for business sign-in
--url string Set and view environment variables on a private installation at this explicit origin.
bijection env default set
Set named defaults on the assigned cell
Usage:
bijection env default set [name] [value] [flags]
Flags:
--force Overwrite differing values when importing multiple named defaults.
--from-file string Read a value or a .env file.
-h, --help help for set
--help-all Show all commands and options, including administrative controls.
--help-json Print command input and output schemas as JSON without executing it.
--installation string Use this installation's project, kind and assigned cell: <project>:<name>.
Global Flags:
--sign-in-source string Select the installed authentication source for business sign-in
--url string Set and view environment variables on a private installation at this explicit origin.
bijection env get
Print a variable's value: `bijection env get NAME`
Usage:
bijection env get <name> [flags]
Flags:
-h, --help help for get
--help-all Show all commands and options, including administrative controls.
--help-json Print command input and output schemas as JSON without executing it.
Global Flags:
--installation string Set and view environment variables on this installation: <project>:<name>, as my-app:prod.
--sign-in-source string Select the installed authentication source for business sign-in
--url string Set and view environment variables on a private installation at this explicit origin.
bijection env list
• List only variable names (no values): `bijection env list --names-only`
• List all variables and their values: `bijection env list --include-values`
• Save all variables to a file: `bijection env list --include-values > .env.bijection`
• Append to a file: `bijection env list --include-values >> .env.bijection`
Usage:
bijection env list [flags]
Flags:
-h, --help help for list
--help-all Show all commands and options, including administrative controls.
--help-json Print command input and output schemas as JSON without executing it.
--include-values Print each variable's value alongside its name, in .env format. Values are omitted unless explicitly requested.
--names-only List only the names of environment variables, without their values
Global Flags:
--installation string Set and view environment variables on this installation: <project>:<name>, as my-app:prod.
--sign-in-source string Select the installed authentication source for business sign-in
--url string Set and view environment variables on a private installation at this explicit origin.
bijection env remove
Unset a variable: `bijection env remove NAME`
If the variable doesn't exist, the command doesn't do anything and succeeds.
Usage:
bijection env remove <name> [flags]
Aliases:
remove, rm, unset
Flags:
-h, --help help for remove
--help-all Show all commands and options, including administrative controls.
--help-json Print command input and output schemas as JSON without executing it.
Global Flags:
--installation string Set and view environment variables on this installation: <project>:<name>, as my-app:prod.
--sign-in-source string Select the installed authentication source for business sign-in
--url string Set and view environment variables on a private installation at this explicit origin.
bijection env set
Set environment variables on your installation.
• `bijection env set NAME 'value'`
• `bijection env set NAME # omit a value to set one interactively`
• `bijection env set NAME --from-file value.txt`
• `bijection env set --from-file .env.bijection`
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.
Credentials are not environment variables: set them with `bijection secret set NAME`.
--from-file refuses a file inside the current Git repository that Git tracks or does not ignore; pipe it through stdin or keep it outside the repository.
To update many variables at once, save them with `bijection env list --include-values > .env.bijection`, edit the file, then reapply the changes with `bijection env set --force < .env.bijection`.
Usage:
bijection env set [name] [value] [flags]
Flags:
--bindings string Use this installation's bindings file for setup
--force When setting multiple variables, overwrite existing environment variable values instead of failing on mismatch.
--from-file string Read environment variables from a .env file outside the repository or ignored by Git. Without --force, fails if any existing variable has a different value.
-h, --help help for set
--help-all Show all commands and options, including administrative controls.
--help-json Print command input and output schemas as JSON without executing it.
Global Flags:
--installation string Set and view environment variables on this installation: <project>:<name>, as my-app:prod.
--sign-in-source string Select the installed authentication source for business sign-in
--url string Set and view environment variables on a private installation at this explicit origin.