Back to Mise

`mise env`

docs/cli/env.md

2026.9.21.7 KB
Original Source
<!-- @generated by usage-cli from usage spec -->

mise env

  • Usage: mise env [FLAGS] [TOOL@VERSION]…
  • Aliases: e
  • Effect: read-only
  • Source code: src/cli/env.rs

Print the environment for the current configuration

Evaluate the shell output to load tools and variables once, without installing prompt hooks. Changing directories afterward does not recompute this environment. Use mise exec -- command to apply it to one child process instead.

JSON, dotenv, and shell output contain actual variable values, including secrets. --redacted selects variables marked for redaction; it does not mask their values. Environment construction may install missing tools according to mise's settings.

Arguments

  • [TOOL@VERSION]… — Tool(s) to include in addition to those in config, e.g. node@20

Flags

  • -D --dotenv — Output in dotenv format

  • -J --json — Output in JSON format

  • -s --shell <SHELL> — Shell type to generate environment variables for

    Choices: bash, elvish, fish, nu, xonsh, zsh, pwsh, powershell

  • --json-extended — Output in JSON format with additional information (source, tool)

  • --redacted — Only include variables marked for redaction; their values are printed unmasked

  • --values — Only show values of environment variables

  • -h --help — Print help

Examples

eval "$(mise env -s bash)"
eval "$(mise env -s zsh)"
mise env -s fish | source
execx($(mise env -s xonsh))
<!-- generated reference navigation -->