Back to Mise

`mise env`

docs/cli/env.md

2026.8.121.1 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

Exports env vars to activate mise a single time

Use this if you don't want to permanently install mise. It's not necessary to use this if you have mise activate in your shell rc file.

Arguments

  • [TOOL@VERSION]… — Tool(s) to use

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 show redacted environment variables

  • --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))