corgi env
corgi env
Print services' fully-resolved environment (read-only)
Synopsis
Resolves and prints each service's environment exactly as corgi would generate it (db deps, service deps, ports, literal environment, copied env files, and cross-service references), with the source of each variable. Writes nothing.
corgi env # all services, masked, human view corgi env api # one service eval $(corgi env api --export) corgi env --json corgi env api --explain DATABASE_URL # where that value came from
corgi env [service...] [flags]
Options
--explain string Show every source that set this variable, in order, with the winner marked
--export Emit eval-able 'export KEY=VALUE' lines (real values)
-h, --help help for env
--reveal Do not mask secret values in the human view (human view only)
--tier string Resolve env for this compose envTier (e.g. staging, prod)
Options inherited from parent commands
--describe Describe contents of corgi-compose file
--dockerContext string Specify docker context to use, can be default,orbctl,colima (default "default")
-l, --exampleList List examples to choose from. Click on any example to download it
-f, --filename string Custom filepath for for corgi-compose
--fromScratch Clean the .corgi/corgi_services folder before running
-t, --fromTemplate string Create corgi service from template url
--fromTemplateName string Create corgi service from template name and url
-g, --global Use global path to one of the services
--interactive Force interactive prompts even when no TTY/agent detected
--isolate string Run this workspace under a named lease: own port block, own database names, own containers
--json Emit machine-readable JSON output
--privateToken string Private token for private repositories to download files
-o, --runOnce Run corgi once and exit
--silent Hide all welcome messages
SEE ALSO
- corgi - Corgi cli magic friend
- corgi env check - Fail when a service's env file misses keys its .env-example declares