env subcommand gives you granular control over named environments in the encrypted vault. Every environment is a named collection of secrets — stored outside your repository, encrypted at rest with a rotating data key wrapped by a project root key in the native OS credential manager. ironrun never offers reveal, clipboard-copy, or plaintext export.
Top-level shortcut commands
For the most common operations, ironrun provides short top-level aliases so you don’t need to typeenv every time:
Subcommands
Common workflows
Add a secret to the active environment
Create a staging environment and populate it from dev
Import from a .env file
env import only accepts owner-only files (permission mode 600). It refuses files inside the project directory unless you pass --allow-project-file, and it refuses any file readable by group or other.
Temporary environments
Temporary environments expire automatically. This is useful for short-lived work, CI overrides, or agent sessions you want to clean up without manual intervention:--ttl flag accepts standard Go duration strings: 30m, 8h, 24h.
One-run environment override
You don’t have to switch environments just to run a single command against a different set. Use--set on ironrun run:
Flags
env set
boolean
default:"false"
Read the secret value from stdin instead of a masked prompt. Requires
--unsafe.boolean
default:"false"
Acknowledge that piped input may appear in process listings or shell history. Required when using
--from-stdin.env create
boolean
default:"false"
Mark this environment as temporary so it is eligible for automatic expiry.
duration
default:"24h"
Lifetime for a temporary environment. Accepts Go duration strings such as
8h or 30m.env clone
boolean
default:"false"
Skip the confirmation prompt before cloning secret values.
env remove
boolean
default:"false"
Skip the confirmation prompt before removing the entire environment set.
env import
boolean
default:"false"
Allow importing a
.env file that lives inside the project directory. The file must still have owner-only permissions (600).The encrypted vault lives at
~/.ironrun/vaults/, outside your repository. Project metadata lives under .ironrun/ in your project directory and contains no secret values. The .ironrun/ directory is automatically git-ignored on creation.