kindgi env
Manage per-environment values that resolve into needs.env at deploy time.
kindgi env list
Section titled “kindgi env list”List resolved env values for the target env (merges config + .env.<envName>).
kindgi env list [--env <name>] [--reveal] [--force-reveal] [--path <dir>]Flags:
--env <value>: The environment:localis the project's own env files, any other name its.env.<name>. Default:staging.--force-reveal: With--reveal, print the values even when stdout isn't a terminal (a file, a pipe, CI).--path <value>: The pack root, where the env files are. Default: the current directory.--reveal: Print the values instead of redacting them. Refused when stdout isn't a terminal (a file, a pipe), unless--force-revealis also given.
kindgi env set
Section titled “kindgi env set”Set a KEY=VALUE in .env.<envName>. Refuses to overwrite unless --force.
kindgi env set <KEY> <VALUE> [--env <name>] [--force] [--path <dir>]Flags:
--env <value>: The environment:localis the project's own env files, any other name its.env.<name>. Default:staging.--force: Change a key an env file already sets: overwrite it, or override a lower-precedence file. By defaultsetrefuses.--path <value>: The pack root, where the env files are. Default: the current directory.
kindgi env unset
Section titled “kindgi env unset”Remove KEY from .env.<envName>. Idempotent — no error if the key is absent.
kindgi env unset <KEY> [--env <name>] [--path <dir>]Flags:
--env <value>: The environment:localis the project's own env files, any other name its.env.<name>. Default:staging.--path <value>: The pack root, where the env files are. Default: the current directory.
kindgi env pull
Section titled “kindgi env pull”Fetch remote env values via /v1/env/* and merge into .env.<envName>. Requires --scope.
kindgi env pull [--env <name>] --scope=<kind>[:id] [--path <dir>] [--overwrite-existing]Flags:
--env <value>: The environment to pull, written to its.env.<name>(local: the project's own env files). Default:staging.--overwrite-existing: Replace keys an env file already sets. By default they are skipped.--path <value>: The pack root, where the env files are. Default: the current directory.--scope <value>: Whose values to pull:tenant,org:<orgId>orproject:<projectId>. Required.
kindgi env init
Section titled “kindgi env init”Scaffold .env.example for a deployment target. Interactive prompt when flags omit an axis and stdin is a TTY.
kindgi env init [--secrets-backend=<none|postgres|secret-manager>] [--kms=<gcp|aws|libsodium|vault>] [--out=<path>] [--force] [--non-interactive]Flags:
--force: Overwrite an existing file at the output path. By defaultinitrefuses.--kms <value>: The KMS for thepostgresorsecret-managerbackend:gcp,aws,libsodiumorvault. Asked for when needed and omitted.--non-interactive: Never prompt: fail when--secrets-backend, or a needed--kms, is missing.--out <value>: Where to write the file. Default:.env.examplein the current directory.--secrets-backend <value>: The deployment's secrets backend:none,postgresorsecret-manager. Asked for when omitted on a terminal.
kindgi env plan
Section titled “kindgi env plan”Show the process env a deployed pack service gets in --env: each name the pack declares (env.required / env.optional) and its value or Secret Manager reference from environments.<name>.env. Prints Terraform input (default) or gcloud flags; exits 1 when a required name has no value or a secret is given in the clear.
kindgi env plan [--env <name>] [--format=terraform|gcloud] [--path <dir>]Flags:
--env <value>: The environment to plan, fromenvironments.<name>.envinkindgi.config.ts. Default:staging.--format <value>: The output:terraform(default) for Terraform input, orgcloudfor--set-env-vars/--set-secretsflags.--path <value>: The pack root, wherekindgi.config.tsis. Default: the current directory.
Every command also takes the global flags.