diff --git a/Cargo.lock b/Cargo.lock index c05992993..60467e6ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" @@ -2540,6 +2540,8 @@ checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" name = "xtask" version = "0.0.0" dependencies = [ + "serde", + "serde_json", "usage-lib", ] diff --git a/go/README.md b/go/README.md index 6cd6cb60b..2e36bbbe4 100644 --- a/go/README.md +++ b/go/README.md @@ -99,10 +99,21 @@ a derive macro: The generated file exports `Root` to pass to `argv.New`, `Meta` for the rules decided after the last token, and a key constant per command, flag and argument. -`Meta` costs nothing if you do not use it: Go's linker drops an unreferenced -package-level table entirely, so a CLI that only binds does not carry it. mise's -is 217 KB when something does reference it. That is the same split Rust gets from -a feature flag, without needing one. +**Three tables, and you pay for the ones you use.** Go's linker drops an +unreferenced package-level table entirely, so the split is enforced by the linker +rather than by a feature flag: + +| a CLI that… | carries | mise-sized binary | +| ------------------------------ | ---------------- | ----------------: | +| only binds | the parse tables | 2.60 MB | +| applies the post-binding rules | `+ Meta` | 2.82 MB | +| prints help | `+ HelpText` | 2.82 MB | + +None of them has an init function. That is what Rust gets from putting the cold +half behind a feature flag, except nobody has to remember the flag — which is also +why help text is a third table rather than more fields on `Meta`: folding them +together would make every CLI that applies a rule carry every help string in the +spec. Dispatch on the key constants rather than on `Name`: it costs no string comparison, and a flag renamed in the spec then fails to compile instead of @@ -118,6 +129,25 @@ var ( ) ``` +## Help + +`argv.UsageLine` renders the line a page prints after `Usage: `, from the parse +tables and `HelpText`: + +```go +argv.UsageLine([]string{"mise"}, mise.Root, mise.HelpText) +// mise [FLAGS] [TASK] +``` + +**All 211 of mise's usage lines match usage-lib's byte for byte**, which is the +test that keeps it honest. usage-lib builds the line from a spec through a +template over a runtime model; this builds it from static tables. Reimplemented +rules drift, so both are run over mise's real spec and compared — the same check +`benches/gate/tests/help.rs` makes for usage-argv, against the same reference. + +Two implementations checked against one oracle beats two checked against each +other. + ## Conformance The [corpus](../corpus) is the definition of correct, and it is plain JSON so that @@ -153,7 +183,12 @@ claim is measured at real scale rather than against a fixture with four flags: - **Typed values.** Binding collects text. Something still has to turn `"8"` into an `int` and `"1m"` into a `time.Duration`, and report the ones that will not convert. -- **Help and errors.** A cold table of help text, and rendering worth reading. +- **The help pages themselves.** The usage line is done and the table behind it + carries the text; `-h` and `--help` still need laying out, which on the Rust + side is most of `argv/src/help.rs`. +- **Errors worth reading.** `Error()` returns `unknown flag: --wat`, which names + the problem and helps nobody fix it. usage-argv renders these through miette + with the offending token underlined. - **Completions.** The Rust side serves these from the parser's own scope rules so that what is offered and what is accepted cannot disagree; the hooks for it (`Collecting`, `PendingArg`, `FlagsInScope`, `CommandStart`) are already here. diff --git a/go/argv/help.go b/go/argv/help.go new file mode 100644 index 000000000..127d56dd5 --- /dev/null +++ b/go/argv/help.go @@ -0,0 +1,227 @@ +package argv + +import "strings" + +// What a help page prints. +// +// A third table, separate from [Meta] rather than folded into it, because Go's +// linker drops an unreferenced package-level symbol whole. One table would mean +// a CLI that applies the post-binding rules also carries every help string in +// the spec — mise's run to several hundred kilobytes. Three tables let a program +// pay for what it uses: binding alone carries neither, adding the rules carries +// [Metadata], and printing help carries this. +// +// Indexed by key like the others, so an entry's three halves are joined by +// identity rather than by position in three lists that could drift. + +// Help is what a page needs to say about one command, flag or argument. +type Help struct { + // Key matches the entry this describes in the parse tables. + Key uint64 + // Hide keeps an entry out of help without keeping it out of the parse. A + // hidden flag still binds; help simply does not invite anyone to type it. + Hide bool + // Demanded is `required` and undefaulted, which is what decides whether the + // usage line angles an entry or brackets it. + // + // Precomputed rather than read from [Meta], so that rendering a page does not + // drag the post-binding table in with it — which would undo the whole reason + // these are separate. + Demanded bool + // Repeatable is the spec's `var` on a flag: the `…` in `--tag… `, meaning + // the flag may be given again, not that one occurrence takes several values. + Repeatable bool + // ValueName is what a flag's value is called. Empty for a flag that takes + // none. + ValueName string + // ValueDemanded is the same required-and-undefaulted test as [Help.Demanded], + // applied to the flag's *value* rather than to the flag. + // + // The two are independent, and usage-lib writes both: `<--v >` is a + // required flag whose value must be given, and `<--jobs [n]>` is a required + // flag whose value has a default. Angling the value unconditionally — which + // is what usage-argv does — is invisible until a spec has a flag whose value + // is optional or defaulted, and mise has none. + ValueDemanded bool + // Short is the one-line help, and Long the fuller text `--help` prefers. + Short string + Long string + // Heading groups an entry into a section of the page. Presentational only. + Heading string +} + +// HelpTable is the cold help table, indexed by key: entry `Key` sits at +// `HelpTable[Key-1]`. +type HelpTable []Help + +// Lookup returns the help for a key, or nil if the table has none. +func (h HelpTable) Lookup(key uint64) *Help { + if key == 0 || key > uint64(len(h)) { + return nil + } + entry := &h[key-1] + if entry.Key != key { + // Out of step with the parse tables. Reporting nothing makes a caller's + // own test fail, where searching would quietly describe the wrong entry. + return nil + } + return entry +} + +// inlineLimit is how many entries a usage line spells out before collapsing them +// into `[FLAGS]` or `[ARGS]…`. Two, as usage-lib has it. +const inlineLimit = 2 + +// UsageLine renders the line a page prints after `Usage: `. +// +// `path` is the command as invoked, binary first: `[]string{"mise", "use"}`. +// +// Hidden entries are absent from the line as they are from the sections — help +// describes what a user is invited to type. +func UsageLine(path []string, cmd *Command, help HelpTable) string { + var out strings.Builder + out.WriteString(strings.Join(path, " ")) + + visibleFlags := make([]*Flag, 0, len(cmd.Flags)) + demandedFlag := false + for _, f := range cmd.Flags { + h := help.Lookup(f.Key) + if h != nil && h.Hide { + continue + } + visibleFlags = append(visibleFlags, f) + if h != nil && h.Demanded { + demandedFlag = true + } + } + if n := len(visibleFlags); n > 0 { + if n <= inlineLimit { + for _, f := range visibleFlags { + h := help.Lookup(f.Key) + // A required flag is angled like a required argument: the brackets + // are what say whether leaving it out is allowed. + open, close := "[", "]" + if h != nil && h.Demanded { + open, close = "<", ">" + } + out.WriteString(" " + open + flagUsage(f, h) + close) + } + } else if demandedFlag { + out.WriteString(" ") + } else { + out.WriteString(" [FLAGS]") + } + } + + visibleArgs := make([]*Arg, 0, len(cmd.Args)) + demandedArg := false + for _, a := range cmd.Args { + h := help.Lookup(a.Key) + if h != nil && h.Hide { + continue + } + visibleArgs = append(visibleArgs, a) + if h != nil && h.Demanded { + demandedArg = true + } + } + if n := len(visibleArgs); n > 0 { + if n <= inlineLimit { + for _, a := range visibleArgs { + out.WriteString(" " + argUsage(a, help.Lookup(a.Key))) + } + } else if demandedArg { + out.WriteString(" …") + } else { + out.WriteString(" [ARGS]…") + } + } + + if len(cmd.Subcommands) > 0 { + out.WriteString(" ") + } + return out.String() +} + +// flagUsage is how one flag appears in the usage line: `-f --force`, plus its +// value if it takes one. +func flagUsage(f *Flag, h *Help) string { + var out strings.Builder + + long, short := "", byte(0) + if len(f.Longs) > 0 { + long = f.Longs[0] + } + if len(f.Shorts) > 0 { + short = f.Shorts[0] + } + + // The declared name, when it is not the one the forms would imply. A flag + // called `verbose` reachable only as `-v` has to say so, or help would name + // something the spec does not. + implied := false + switch { + case long != "": + implied = long == f.Name + case short != 0: + implied = string(short) == f.Name + } + if !implied { + out.WriteString(f.Name + ":") + } + if short != 0 { + if out.Len() > 0 { + out.WriteByte(' ') + } + out.WriteString("-" + string(short)) + } + if long != "" { + if out.Len() > 0 { + out.WriteByte(' ') + } + out.WriteString("--" + long) + } + + // A repeatable flag, which is the spec's `var` — not one occurrence taking + // several values, which is the value's own business below. + if h != nil && h.Repeatable { + out.WriteString("…") + } + if f.TakesValue { + name := f.Name + if h != nil && h.ValueName != "" { + name = h.ValueName + } + open, close := "[", "]" + if h != nil && h.ValueDemanded { + open, close = "<", ">" + } + out.WriteString(" " + open + name + close) + if f.Variadic { + out.WriteString("…") + } + } + return out.String() +} + +// argUsage is how one positional appears in the usage line. +func argUsage(a *Arg, h *Help) string { + open, close := "[", "]" + if h != nil && h.Demanded { + open, close = "<", ">" + } + var out strings.Builder + // An argument that only takes what follows a `--` shows the separator, because + // typing the value without it does not reach this argument at all — and the + // brackets go outside it, as usage-lib writes it: `[-- COMMAND]…`, one + // optional thing rather than a literal `--` followed by an optional word. + if a.DoubleDash == DoubleDashRequired { + out.WriteString(open + "-- " + a.Name + close) + } else { + out.WriteString(open + a.Name + close) + } + if a.Var { + out.WriteString("…") + } + return out.String() +} diff --git a/go/conformance/conformance_test.go b/go/conformance/conformance_test.go index f0f4d4d1c..4b7e73094 100644 --- a/go/conformance/conformance_test.go +++ b/go/conformance/conformance_test.go @@ -452,9 +452,13 @@ func show(p *Parsed) string { } // lower turns a vector's KDL spec into the JSON the tables are built from. +func runUsage(usageBin string, args ...string) ([]byte, error) { + return exec.Command(usageBin, args...).Output() +} + func lower(t *testing.T, usageBin, kdl string) *spec.Spec { t.Helper() - out, err := exec.Command(usageBin, "generate", "json", "--spec", kdl).Output() + out, err := runUsage(usageBin, "generate", "json", "--spec", kdl) if err != nil { if ee, ok := err.(*exec.ExitError); ok { t.Fatalf("lowering the spec failed: %v\n%s", err, ee.Stderr) diff --git a/go/conformance/help_test.go b/go/conformance/help_test.go new file mode 100644 index 000000000..a8f0796b4 --- /dev/null +++ b/go/conformance/help_test.go @@ -0,0 +1,168 @@ +package conformance + +import ( + "encoding/json" + "os" + "path/filepath" + "strings" + "testing" + + "github.com/jdx/usage/go/argv" + "github.com/jdx/usage/go/internal/spec" +) + +// Does the rendered usage line match usage-lib's, at mise's scale? +// +// usage-lib builds this from a spec, through a template over a runtime model. The +// Go side has no spec at run time — only tables — so the rules are reimplemented, +// and reimplemented rules drift. The check is to run both over mise's real spec +// and compare all 211 lines, because an adopter's help text changing is a visible +// regression even when the change is one bracket. +// +// This is the same test `benches/gate/tests/help.rs` makes for usage-argv, using +// the same oracle: usage-lib's own `usage` string, which the lowering carries per +// command. Two implementations checked against one reference beats two +// implementations checked against each other. + +func TestEveryUsageLineMatchesTheReference(t *testing.T) { + usageBin := findUsage(t) + kdl := filepath.Join("..", "..", "benches", "mise.usage.kdl") + if _, err := os.Stat(kdl); err != nil { + t.Fatalf("mise's spec should be in the repository: %v", err) + } + + lowered := lowerFile(t, usageBin, kdl) + root, _, help := lowered.BuildAll() + + // The reference line per command path, from the lowering. + want := map[string]string{} + var collect func(c *spec.Cmd, path []string) + collect = func(c *spec.Cmd, path []string) { + want[strings.Join(path, " ")] = c.Usage + for name, sub := range c.Subcommands { + sub := sub + collect(&sub, append(append([]string{}, path...), name)) + } + } + collect(&lowered.Cmd, nil) + + var checked int + var differences []string + var walk func(cmd *argv.Command, path []string) + walk = func(cmd *argv.Command, path []string) { + key := strings.Join(path[1:], " ") + reference, ok := want[key] + if !ok { + differences = append(differences, key+": not in the spec at all") + return + } + // usage-lib's `usage` omits the binary and starts at the command path, so + // the comparison puts it back — the same string the template writes after + // `Usage: `. + theirs := strings.TrimSpace("mise " + reference) + ours := argv.UsageLine(path, cmd, help) + if ours != theirs { + differences = append(differences, + key+"\n ours: "+ours+"\n lib: "+theirs) + } + checked++ + for _, sub := range cmd.Subcommands { + walk(sub, append(append([]string{}, path...), sub.Name)) + } + } + walk(root, []string{"mise"}) + + if checked < 200 { + t.Errorf("only %d commands checked; mise's tree is larger than that", checked) + } + if len(differences) > 0 { + t.Fatalf("%d of %d usage lines differ from usage-lib:\n - %s", + len(differences), checked, strings.Join(differences, "\n - ")) + } + t.Logf("%d usage lines match usage-lib exactly", checked) +} + +// One case spelled out, so a reader can see what the parity test asserts 211 +// times. +func TestTheRootLineIsWhatAUserWouldRecognise(t *testing.T) { + usageBin := findUsage(t) + lowered := lowerFile(t, usageBin, filepath.Join("..", "..", "benches", "mise.usage.kdl")) + root, _, help := lowered.BuildAll() + + line := argv.UsageLine([]string{"mise"}, root, help) + if !strings.HasPrefix(line, "mise ") { + t.Errorf("the line should start with the binary: %s", line) + } + if !strings.HasSuffix(line, "") { + t.Errorf("mise has subcommands, so the line should say so: %s", line) + } +} + +// Hidden entries are absent from the line as they are from the sections: help +// describes what a user is invited to type. +func TestHiddenEntriesAreNotInTheLine(t *testing.T) { + usageBin := findUsage(t) + s := lower(t, usageBin, `name "ex" +bin "ex" +flag "--shown" +flag "--secret" hide=#true +arg "[visible]" +arg "[buried]" hide=#true +`) + root, _, help := s.BuildAll() + got := argv.UsageLine([]string{"ex"}, root, help) + if strings.Contains(got, "secret") || strings.Contains(got, "buried") { + t.Errorf("hidden entries leaked into the line: %s", got) + } + if !strings.Contains(got, "--shown") || !strings.Contains(got, "visible") { + t.Errorf("visible entries should be there: %s", got) + } +} + +// lowerFile is [lower] for a spec that lives on disk. +func lowerFile(t *testing.T, usageBin, path string) *spec.Spec { + t.Helper() + out, err := runUsage(usageBin, "generate", "json", "-f", path) + if err != nil { + t.Fatalf("lowering %s failed: %v", path, err) + } + var s spec.Spec + if err := json.Unmarshal(out, &s); err != nil { + t.Fatalf("the lowered spec would not decode: %v", err) + } + return &s +} + +// A flag's value follows the same required-and-undefaulted test as a positional, +// independently of the flag itself. +// +// The four combinations, all checked against usage-lib's own line rather than +// against what this happens to produce. mise has none of the bracketed cases — +// every flag value it declares is required and undefaulted — so the parity test +// over its 211 commands passes either way, which is exactly why these are here. +// +// Worth recording that usage-argv angles the value unconditionally and so differs +// from usage-lib on the last three. This follows usage-lib, since that is the +// reference the help output is measured against. +func TestAFlagValueIsBracketedByItsOwnRequiredness(t *testing.T) { + usageBin := findUsage(t) + for _, c := range []struct{ decl, want string }{ + {`flag "--tool "`, "ex [--tool ]"}, + {`flag "--v " required=#true`, "ex <--v >"}, + {`flag "--opt [n]"`, "ex [--opt [n]]"}, + {"flag \"--jobs \" required=#true {\n arg \"\" default=\"4\"\n}", "ex <--jobs [n]>"}, + } { + s := lower(t, usageBin, "name \"ex\"\nbin \"ex\"\n"+c.decl+"\n") + root, _, help := s.BuildAll() + + got := argv.UsageLine([]string{"ex"}, root, help) + if got != c.want { + t.Errorf("%s\n want %s\n got %s", c.decl, c.want, got) + } + // And the reference agrees, which is what makes `want` above more than an + // assertion about my own code. + if reference := "ex " + s.Cmd.Usage; reference != c.want { + t.Errorf("%s: the oracle says %q, not %q", c.decl, reference, c.want) + } + } +} diff --git a/go/internal/shadow/mise/tables.go b/go/internal/shadow/mise/tables.go index f071cba44..c1e628d3f 100644 --- a/go/internal/shadow/mise/tables.go +++ b/go/internal/shadow/mise/tables.go @@ -4834,3 +4834,1061 @@ var Meta = argv.Metadata{ {Key: FlagWhichVersion, Name: "version", Flag: true}, {Key: ArgWhichBinName, Name: "BIN_NAME"}, } + +// HelpText is the third table, read only when a page is rendered. Neither the +// parser nor the post-binding rules touch it, and a CLI that never prints help +// does not carry it: Go's linker drops an unreferenced table whole. +// +// Indexed by key, like the others. +var HelpText = argv.HelpTable{ + {Key: CmdRoot}, + {Key: FlagContinueOnError, Hide: true, Short: "Continue running tasks even if one fails", Long: "Continue running tasks even if one fails"}, + {Key: FlagCd, ValueName: "DIR", ValueDemanded: true, Short: "Change directory before running command", Long: "Change directory before running command"}, + {Key: FlagEnv, Repeatable: true, ValueName: "ENV", ValueDemanded: true, Short: "Set the environment for loading `mise..toml`", Long: "Set the environment for loading `mise..toml`"}, + {Key: FlagForce, Hide: true, Short: "Force the operation", Long: "Force the operation"}, + {Key: FlagJobs, ValueName: "JOBS", ValueDemanded: true, Short: "How many jobs to run in parallel [default: 8]", Long: "How many jobs to run in parallel [default: 8]"}, + {Key: FlagDryRun, Hide: true, Short: "Dry run, don't actually do anything", Long: "Dry run, don't actually do anything"}, + {Key: FlagProfile, Hide: true, Repeatable: true, ValueName: "PROFILE", ValueDemanded: true, Short: "Set the profile (environment)", Long: "Set the profile (environment)"}, + {Key: FlagQuiet, Short: "Suppress non-error messages", Long: "Suppress non-error messages"}, + {Key: FlagShell, Hide: true, ValueName: "SHELL", ValueDemanded: true}, + {Key: FlagTool, Hide: true, Repeatable: true, ValueName: "TOOL@VERSION", ValueDemanded: true, Short: "Tool(s) to run in addition to what is in mise.toml files e.g.: node@20 python@3.10", Long: "Tool(s) to run in addition to what is in mise.toml files e.g.: node@20 python@3.10"}, + {Key: FlagVerbose, Repeatable: true, Short: "Show extra output (use -vv for even more)", Long: "Show extra output (use -vv for even more)"}, + {Key: FlagVersion, Hide: true}, + {Key: FlagYes, Short: "Answer yes to all confirmation prompts", Long: "Answer yes to all confirmation prompts"}, + {Key: FlagDebug, Hide: true, Short: "Sets log level to debug", Long: "Sets log level to debug"}, + {Key: FlagLogLevel, Hide: true, ValueName: "LEVEL", ValueDemanded: true}, + {Key: FlagNoConfig, Short: "Do not load any config files", Long: "Do not load any config files\n\nCan also use `MISE_NO_CONFIG=1`"}, + {Key: FlagNoEnv, Short: "Do not load environment variables from config files", Long: "Do not load environment variables from config files\n\nCan also use `MISE_NO_ENV=1`"}, + {Key: FlagNoHooks, Short: "Do not execute hooks from config files", Long: "Do not execute hooks from config files\n\nCan also use `MISE_NO_HOOKS=1`"}, + {Key: FlagNoTimings, Hide: true, Short: "Hides elapsed time after each task completes", Long: "Hides elapsed time after each task completes\n\nDefault to always hide with `MISE_TASK_TIMINGS=0`"}, + {Key: FlagOutput, ValueName: "OUTPUT", ValueDemanded: true}, + {Key: FlagRaw, Short: "Read/write directly to stdin/stdout/stderr instead of by line", Long: "Read/write directly to stdin/stdout/stderr instead of by line"}, + {Key: FlagLocked, Short: "Require lockfile URLs to be present during installation", Long: "Require lockfile URLs to be present during installation\n\nFails if tools don't have pre-resolved URLs in the lockfile for the current platform.\nThis prevents API calls to GitHub, aqua registry, etc.\nCan also be enabled via MISE_LOCKED=1 or settings.locked=true"}, + {Key: FlagSilent, Short: "Suppress all task output and mise non-error messages", Long: "Suppress all task output and mise non-error messages"}, + {Key: FlagTimings, Hide: true, Short: "Shows elapsed time after each task completes", Long: "Shows elapsed time after each task completes\n\nDefault to always show with `MISE_TASK_TIMINGS=1`"}, + {Key: FlagTrace, Hide: true, Short: "Sets log level to trace", Long: "Sets log level to trace"}, + {Key: ArgTask, Short: "Task to run", Long: "Task to run.\n\nShorthand for `mise tasks run `."}, + {Key: ArgTaskArgs, Hide: true, Short: "Task arguments", Long: "Task arguments"}, + {Key: ArgTaskArgsLast, Hide: true}, + {Key: CmdActivate, Short: "Initializes mise in the current shell session", Long: "Initializes mise in the current shell session\n\nThis should go into your shell's rc file or login shell.\nOtherwise, it will only take effect in the current session.\n(e.g. ~/.zshrc, ~/.zprofile, ~/.zshenv, ~/.bashrc, ~/.bash_profile, ~/.profile, ~/.config/fish/config.fish, or $PROFILE for powershell)\n\nTypically, this can be added with something like the following:\n\n echo 'eval \"$(mise activate zsh)\"' >> ~/.zshrc\n\nHowever, this requires that \"mise\" is in your PATH. If it is not, you need to\nspecify the full path like this:\n\n echo 'eval \"$(/path/to/mise activate zsh)\"' >> ~/.zshrc\n\nCustomize status output with `status` settings."}, + {Key: FlagActivateQuiet, Short: "Suppress non-error messages", Long: "Suppress non-error messages"}, + {Key: FlagActivateShell, Hide: true, ValueName: "SHELL", ValueDemanded: true, Short: "Shell type to generate the script for", Long: "Shell type to generate the script for"}, + {Key: FlagActivateNoHookEnv, Short: "Do not automatically call hook-env", Long: "Do not automatically call hook-env\n\nThis can be helpful for debugging mise. If you run `eval \"$(mise activate --no-hook-env)\"`, then you can call `mise hook-env` manually which will output the env vars to stdout without actually modifying the environment. That way you can do things like `mise hook-env --trace` to get more information or just see the values that hook-env is outputting."}, + {Key: FlagActivateShims, Short: "Use shims instead of modifying PATH", Long: "Use shims instead of modifying PATH\nEffectively the same as:\n\n PATH=\"$HOME/.local/share/mise/shims:$PATH\"\n\n`mise activate --shims` does not support all the features of `mise activate`.\nSee https://mise.jdx.dev/dev-tools/shims.html#shims-vs-path for more information"}, + {Key: FlagActivateStatus, Hide: true, Short: "Show \"mise: @\" message when changing directories", Long: "Show \"mise: @\" message when changing directories"}, + {Key: ArgActivateShellType, Short: "Shell type to generate the script for", Long: "Shell type to generate the script for"}, + {Key: CmdToolAlias, Short: "Manage tool version aliases."}, + {Key: FlagToolAliasTool, ValueName: "TOOL", ValueDemanded: true, Short: "Filter aliases by tool", Long: "Filter aliases by tool"}, + {Key: FlagToolAliasNoHeader, Short: "Don't show table header", Long: "Don't show table header"}, + {Key: CmdToolAliasGet, Short: "Show an alias for a tool", Long: "Show an alias for a tool\n\nThis is the contents of a tool_alias. entry in ~/.config/mise/config.toml"}, + {Key: ArgToolAliasGetTool, Demanded: true, Short: "The tool to show the alias for", Long: "The tool to show the alias for"}, + {Key: ArgToolAliasGetAlias, Demanded: true, Short: "The alias to show", Long: "The alias to show"}, + {Key: CmdToolAliasLs, Short: "List tool version aliases\nShows the aliases that can be specified.\nThese can come from user config or from plugins in `bin/list-aliases`.", Long: "List tool version aliases\nShows the aliases that can be specified.\nThese can come from user config or from plugins in `bin/list-aliases`.\n\nFor user config, aliases are defined like the following in `~/.config/mise/config.toml`:\n\n [tool_alias.node.versions]\n lts = \"22.0.0\""}, + {Key: FlagToolAliasLsNoHeader, Short: "Don't show table header", Long: "Don't show table header"}, + {Key: ArgToolAliasLsTool, Short: "Show aliases for ", Long: "Show aliases for "}, + {Key: CmdToolAliasSet, Short: "Add/update an alias for a tool/backend", Long: "Add/update an alias for a tool/backend\n\nThis modifies the contents of ~/.config/mise/config.toml"}, + {Key: ArgToolAliasSetTool, Demanded: true, Short: "The tool/backend to set the alias for", Long: "The tool/backend to set the alias for"}, + {Key: ArgToolAliasSetAlias, Demanded: true, Short: "The alias to set", Long: "The alias to set"}, + {Key: ArgToolAliasSetValue, Short: "The value to set the alias to", Long: "The value to set the alias to"}, + {Key: CmdToolAliasUnset, Short: "Clears an alias for a tool/backend", Long: "Clears an alias for a tool/backend\n\nThis modifies the contents of ~/.config/mise/config.toml"}, + {Key: ArgToolAliasUnsetTool, Demanded: true, Short: "The tool/backend to remove the alias from", Long: "The tool/backend to remove the alias from"}, + {Key: ArgToolAliasUnsetAlias, Short: "The alias to remove", Long: "The alias to remove"}, + {Key: CmdAsdf, Hide: true, Short: "[internal] simulates asdf for plugins that call \"asdf\" internally"}, + {Key: ArgAsdfArgs, Short: "all arguments", Long: "all arguments"}, + {Key: CmdBackends, Short: "Manage backends"}, + {Key: CmdBackendsLs, Short: "List built-in backends"}, + {Key: CmdBinPaths, Short: "List all the active runtime bin paths"}, + {Key: FlagBinPathsBinNames, Short: "Output executable names instead of bin directories", Long: "Output executable names instead of bin directories"}, + {Key: FlagBinPathsJson, Short: "Output executable entries in JSON format (implies --bin-names)", Long: "Output executable entries in JSON format (implies --bin-names)"}, + {Key: ArgBinPathsToolVersion, Short: "Tool(s) to look up", Long: "Tool(s) to look up\ne.g.: ruby@3"}, + {Key: CmdBootstrap, Short: "Set up a machine for the current config in one command", Long: "Set up a machine for the current config in one command\n\nRuns the bootstrap steps for the current config in order:\n\n0. `mise bootstrap accounts apply` — converge `[bootstrap.users]` and\n `[bootstrap.groups]` (Linux)\n1. `mise bootstrap plugins apply` — install `[bootstrap.plugins]`\n 1.7. `[bootstrap.hooks.pre-packages]` — optional setup hook\n2. Install built-in-manager entries from `[bootstrap.packages]`\n3. `mise bootstrap files apply` — converge `[bootstrap.files]` and\n `[bootstrap.directories]`\n4. `mise bootstrap services apply` — converge `[bootstrap.services]`\n systemd system services (Linux)\n5. `mise bootstrap firewall apply` — converge `[bootstrap.linux.firewall]`\n host firewall policy and rules (Linux)\n6. `mise bootstrap compose apply` — converge `[bootstrap.compose]`\n Docker Compose projects\n7. `mise bootstrap repos apply` — clone/converge `[bootstrap.repos]`\n surrounded by `pre-repos`/`post-repos` hooks\n8. `mise bootstrap dotfiles apply` — apply dotfiles from `[dotfiles]`\n surrounded by `pre-dotfiles`/`post-dotfiles` hooks\n9. `mise bootstrap mise-shell-activate apply` — configure shell activation\n from `[bootstrap.mise_shell_activate]`\n10. `mise bootstrap macos defaults apply` — write\n `[bootstrap.macos.defaults]` entries (macOS)\n surrounded by `pre-defaults`/`post-defaults` hooks\n11. `mise bootstrap macos launchd-agents apply` — install/load\n `[bootstrap.macos.launchd.agents]`\n12. `mise bootstrap linux systemd-units apply` — install/start\n `[bootstrap.linux.systemd.units]`\n13. `mise bootstrap user apply` — set `[bootstrap.user].login_shell`\n (Unix)\n surrounded by `pre-user`/`post-user` hooks\n14. `mise install` — install missing tools from `[tools]`\n surrounded by `pre-tools`/`post-tools` hooks; package-plugin entries\n from `[bootstrap.packages]` install afterward, followed by\n `[bootstrap.hooks.post-packages]`\n15. `mise run bootstrap` — if a task named `bootstrap` is defined\n16. `[bootstrap.hooks.final]` — optional final hook\n\nThe declarative steps converge — anything already in its desired state\nis skipped, so re-running is safe. The `bootstrap` task runs on every\ninvocation; keep it idempotent. Use it for any project-specific setup\nthat doesn't fit the declarative sections (seeding databases, auth flows,\netc.) — it runs with the installed tools on PATH.\n\nUse `--skip ` to skip named parts, or `--only ` to run just\nnamed parts. Both flags can be repeated or comma-separated, but they\ncannot be used together."}, + {Key: FlagBootstrapDryRun, Short: "Print what would happen without installing anything", Long: "Print what would happen without installing anything"}, + {Key: FlagBootstrapYes, Short: "Skip confirmation prompts", Long: "Skip confirmation prompts"}, + {Key: FlagBootstrapForceDotfiles, Short: "Overwrite existing files that conflict with whole-file dotfile entries", Long: "Overwrite existing files that conflict with whole-file dotfile entries"}, + {Key: FlagBootstrapOnly, Repeatable: true, ValueName: "ONLY", ValueDemanded: true, Short: "Run only one or more bootstrap parts", Long: "Run only one or more bootstrap parts\n\nCan be passed multiple times or as a comma-separated list. Cannot be used with `--skip`."}, + {Key: FlagBootstrapPromptSecrets, Short: "Prompt securely for missing bootstrap secret inputs", Long: "Prompt securely for missing bootstrap secret inputs"}, + {Key: FlagBootstrapSkip, Repeatable: true, ValueName: "SKIP", ValueDemanded: true, Short: "Skip one or more bootstrap parts", Long: "Skip one or more bootstrap parts\n\nCan be passed multiple times or as a comma-separated list."}, + {Key: FlagBootstrapUpdate, Short: "Refresh package manager metadata and update configured repos", Long: "Refresh package manager metadata and update configured repos"}, + {Key: CmdBootstrapApplyAccountPlan, Hide: true}, + {Key: CmdBootstrapApplyServicePlan, Hide: true}, + {Key: CmdBootstrapApplyFirewallPlan, Hide: true}, + {Key: CmdBootstrapApplySystemPlan, Hide: true}, + {Key: CmdBootstrapInspectSystemFiles, Hide: true}, + {Key: CmdBootstrapInspectFirewallPlan, Hide: true}, + {Key: CmdBootstrapAccounts, Short: "Manage Linux users and groups from `[bootstrap.users]` and `[bootstrap.groups]`"}, + {Key: CmdBootstrapAccountsApply, Short: "Apply configured Linux users and groups"}, + {Key: FlagBootstrapAccountsApplyDryRun, Short: "Print what would change without changing anything", Long: "Print what would change without changing anything"}, + {Key: FlagBootstrapAccountsApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapAccountsStatus, Short: "Show configured Linux user and group state"}, + {Key: FlagBootstrapAccountsStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapAccountsStatusMissing, Short: "Exit with code 1 when any account is not converged", Long: "Exit with code 1 when any account is not converged"}, + {Key: CmdBootstrapCompose, Short: "Manage Docker Compose projects from `[bootstrap.compose]`"}, + {Key: CmdBootstrapComposeApply, Short: "Apply configured Docker Compose project state"}, + {Key: FlagBootstrapComposeApplyDryRun, Short: "Print what would change without changing anything", Long: "Print what would change without changing anything"}, + {Key: FlagBootstrapComposeApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapComposeStatus, Short: "Show configured Docker Compose project state"}, + {Key: FlagBootstrapComposeStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapComposeStatusMissing, Short: "Exit with code 1 when any Compose project is not converged", Long: "Exit with code 1 when any Compose project is not converged"}, + {Key: CmdBootstrapDotfiles, Short: "Manage dotfiles from `[dotfiles]`"}, + {Key: CmdBootstrapDotfilesAdd, Short: "Add or update dotfiles in `[dotfiles]`", Long: "Add or update dotfiles in `[dotfiles]`\n\nIf the target is already managed, this updates its source from the live\ntarget. Otherwise it creates a `[dotfiles]` entry and seeds the source\nunder `dotfiles.root` unless `--source` is provided."}, + {Key: FlagBootstrapDotfilesAddForce, Short: "Overwrite existing sources without prompting", Long: "Overwrite existing sources without prompting"}, + {Key: FlagBootstrapDotfilesAddGlobal, Short: "Write to the global config", Long: "Write to the global config"}, + {Key: FlagBootstrapDotfilesAddLocal, Short: "Write to the local config instead of the global config", Long: "Write to the local config instead of the global config"}, + {Key: FlagBootstrapDotfilesAddMode, ValueName: "MODE", ValueDemanded: true, Short: "Dotfile mode to write", Long: "Dotfile mode to write"}, + {Key: FlagBootstrapDotfilesAddDryRun, Short: "Print the config/source updates without writing anything", Long: "Print the config/source updates without writing anything"}, + {Key: FlagBootstrapDotfilesAddNoApply, Short: "Add the entry without applying it", Long: "Add the entry without applying it"}, + {Key: FlagBootstrapDotfilesAddPath, ValueName: "PATH", ValueDemanded: true, Short: "Write to this config file or directory", Long: "Write to this config file or directory"}, + {Key: FlagBootstrapDotfilesAddSource, ValueName: "PATH", ValueDemanded: true, Short: "Source path to use for a single target", Long: "Source path to use for a single target"}, + {Key: FlagBootstrapDotfilesAddYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: ArgBootstrapDotfilesAddTarget, Demanded: true, Short: "Targets to add or update", Long: "Targets to add or update"}, + {Key: CmdBootstrapDotfilesApply, Short: "Apply dotfiles from `[dotfiles]`", Long: "Apply dotfiles from `[dotfiles]`\n\nApplies configured whole-file entries and edits that aren't in their\ndesired state. Whole-file entries may symlink, copy, or render templates.\nEdit entries manage a marker-delimited block or a single line in a file\nmise doesn't otherwise own."}, + {Key: FlagBootstrapDotfilesApplyForce, Short: "Overwrite existing files that conflict with whole-file dotfile entries", Long: "Overwrite existing files that conflict with whole-file dotfile entries"}, + {Key: FlagBootstrapDotfilesApplyDryRun, Short: "Print the actions that would run without writing anything", Long: "Print the actions that would run without writing anything"}, + {Key: FlagBootstrapDotfilesApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: ArgBootstrapDotfilesApplyTarget, Short: "Only apply these targets", Long: "Only apply these targets"}, + {Key: CmdBootstrapDotfilesEdit, Short: "Edit a managed dotfile source"}, + {Key: FlagBootstrapDotfilesEditApply, Short: "Apply this target after the editor exits", Long: "Apply this target after the editor exits"}, + {Key: FlagBootstrapDotfilesEditMode, ValueName: "MODE", ValueDemanded: true, Short: "Dotfile mode to use if the target is not yet managed", Long: "Dotfile mode to use if the target is not yet managed"}, + {Key: FlagBootstrapDotfilesEditSource, ValueName: "PATH", ValueDemanded: true, Short: "Source path to use if the target is not yet managed", Long: "Source path to use if the target is not yet managed"}, + {Key: FlagBootstrapDotfilesEditYes, Short: "Skip the confirmation prompt when adding an unmanaged target", Long: "Skip the confirmation prompt when adding an unmanaged target"}, + {Key: ArgBootstrapDotfilesEditTarget, Demanded: true, Short: "Target to edit", Long: "Target to edit"}, + {Key: CmdBootstrapDotfilesStatus, Short: "Show the status of dotfiles from `[dotfiles]`"}, + {Key: FlagBootstrapDotfilesStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapDotfilesStatusMissing, Short: "Exit with code 1 if any configured dotfiles are not in their desired", Long: "Exit with code 1 if any configured dotfiles are not in their desired\nstate (missing, source missing, differs)"}, + {Key: ArgBootstrapDotfilesStatusTarget, Short: "Only show these targets", Long: "Only show these targets"}, + {Key: CmdBootstrapDotfilesUnapply, Short: "Remove dotfiles applied from `[dotfiles]`", Long: "Remove dotfiles applied from `[dotfiles]`\n\nRemoves configured whole-file entries and edits while preserving files\nmise cannot identify as managed. Modified copies, templates, and plain-line\nedits require `--force`."}, + {Key: FlagBootstrapDotfilesUnapplyForce, Short: "Remove modified or otherwise ambiguous managed files and lines", Long: "Remove modified or otherwise ambiguous managed files and lines"}, + {Key: FlagBootstrapDotfilesUnapplyDryRun, Short: "Print the actions that would run without writing anything", Long: "Print the actions that would run without writing anything"}, + {Key: FlagBootstrapDotfilesUnapplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: ArgBootstrapDotfilesUnapplyTarget, Short: "Only unapply these targets", Long: "Only unapply these targets"}, + {Key: CmdBootstrapFiles, Short: "Manage privileged files and directories from `[bootstrap.files]` and `[bootstrap.directories]`"}, + {Key: CmdBootstrapFilesApply, Short: "Apply configured privileged files and directories"}, + {Key: FlagBootstrapFilesApplyDryRun, Short: "Print what would change without changing anything", Long: "Print what would change without changing anything"}, + {Key: FlagBootstrapFilesApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: FlagBootstrapFilesApplyPromptSecrets, Short: "Prompt securely for missing bootstrap secret inputs", Long: "Prompt securely for missing bootstrap secret inputs"}, + {Key: CmdBootstrapFilesStatus, Short: "Show configured privileged file and directory state"}, + {Key: FlagBootstrapFilesStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapFilesStatusMissing, Short: "Exit with code 1 when any resource is not converged", Long: "Exit with code 1 when any resource is not converged"}, + {Key: FlagBootstrapFilesStatusPromptSecrets, Short: "Prompt securely for missing bootstrap secret inputs", Long: "Prompt securely for missing bootstrap secret inputs"}, + {Key: CmdBootstrapFirewall, Short: "Manage the Linux host firewall from `[bootstrap.linux.firewall]`"}, + {Key: CmdBootstrapFirewallApply, Short: "Apply the configured Linux host firewall"}, + {Key: FlagBootstrapFirewallApplyDryRun, Short: "Print what would change without changing anything", Long: "Print what would change without changing anything"}, + {Key: FlagBootstrapFirewallApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapFirewallStatus, Short: "Show configured Linux host firewall state"}, + {Key: FlagBootstrapFirewallStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapFirewallStatusMissing, Short: "Exit with code 1 when the firewall is not converged", Long: "Exit with code 1 when the firewall is not converged"}, + {Key: CmdBootstrapLaunchd, Hide: true, Short: "Manage macOS LaunchAgents from `[bootstrap.macos.launchd.agents]`"}, + {Key: CmdBootstrapLaunchdApply}, + {Key: FlagBootstrapLaunchdApplyDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapLaunchdApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapLaunchdStatus}, + {Key: FlagBootstrapLaunchdStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapLaunchdStatusMissing, Short: "Exit with code 1 if any configured LaunchAgent is not in its desired state", Long: "Exit with code 1 if any configured LaunchAgent is not in its desired state"}, + {Key: CmdBootstrapLinux, Short: "Manage Linux bootstrap config from `[bootstrap.linux]`"}, + {Key: CmdBootstrapLinuxSystemdUnits, Short: "Manage systemd user services from `[bootstrap.linux.systemd.units]`"}, + {Key: CmdBootstrapLinuxSystemdUnitsApply}, + {Key: FlagBootstrapLinuxSystemdUnitsApplyDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapLinuxSystemdUnitsApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapLinuxSystemdUnitsStatus}, + {Key: FlagBootstrapLinuxSystemdUnitsStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapLinuxSystemdUnitsStatusMissing, Short: "Exit with code 1 if any configured systemd user service is not in its desired state", Long: "Exit with code 1 if any configured systemd user service is not in its desired state"}, + {Key: CmdBootstrapMacos, Short: "Manage macOS bootstrap config from `[bootstrap.macos]`"}, + {Key: CmdBootstrapMacosDefaults, Short: "Manage macOS defaults from `[bootstrap.macos.defaults]`"}, + {Key: CmdBootstrapMacosDefaultsApply}, + {Key: FlagBootstrapMacosDefaultsApplyDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapMacosDefaultsApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapMacosDefaultsStatus}, + {Key: FlagBootstrapMacosDefaultsStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapMacosDefaultsStatusMissing, Short: "Exit with code 1 if any configured defaults are not in their desired state", Long: "Exit with code 1 if any configured defaults are not in their desired state"}, + {Key: CmdBootstrapMacosLaunchdAgents, Short: "Manage macOS LaunchAgents from `[bootstrap.macos.launchd.agents]`"}, + {Key: CmdBootstrapMacosLaunchdAgentsApply}, + {Key: FlagBootstrapMacosLaunchdAgentsApplyDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapMacosLaunchdAgentsApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapMacosLaunchdAgentsStatus}, + {Key: FlagBootstrapMacosLaunchdAgentsStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapMacosLaunchdAgentsStatusMissing, Short: "Exit with code 1 if any configured LaunchAgent is not in its desired state", Long: "Exit with code 1 if any configured LaunchAgent is not in its desired state"}, + {Key: CmdBootstrapMacosDefaults2, Hide: true, Short: "Manage macOS defaults from `[bootstrap.macos.defaults]`"}, + {Key: CmdBootstrapMacosDefaultsApply2}, + {Key: FlagBootstrapMacosDefaultsApplyDryRun2, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapMacosDefaultsApplyYes2, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapMacosDefaultsStatus2}, + {Key: FlagBootstrapMacosDefaultsStatusJson2, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapMacosDefaultsStatusMissing2, Short: "Exit with code 1 if any configured defaults are not in their desired state", Long: "Exit with code 1 if any configured defaults are not in their desired state"}, + {Key: CmdBootstrapMiseShellActivate, Short: "Manage mise shell activation from `[bootstrap.mise_shell_activate]`"}, + {Key: CmdBootstrapMiseShellActivateApply}, + {Key: FlagBootstrapMiseShellActivateApplyDryRun, Short: "Print the actions that would run without writing anything", Long: "Print the actions that would run without writing anything"}, + {Key: FlagBootstrapMiseShellActivateApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapMiseShellActivateStatus}, + {Key: FlagBootstrapMiseShellActivateStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapMiseShellActivateStatusMissing, Short: "Exit with code 1 if any configured shell activation is not in its desired state", Long: "Exit with code 1 if any configured shell activation is not in its desired state"}, + {Key: CmdBootstrapPackages, Short: "Manage bootstrap system packages from `[bootstrap.packages]`"}, + {Key: CmdBootstrapPackagesApply, Short: "Apply system packages from `[bootstrap.packages]`", Long: "Apply system packages from `[bootstrap.packages]`\n\nChecks which configured packages are missing and installs them with the\nsystem package manager. Built-in system managers may elevate with sudo when\nnot running as root (see `system_packages.sudo`); package plugins never do.\n\nPackages can also be given explicitly in `manager:package` form (e.g.\n`apk:zlib-dev`, `apt:curl`, `brew:jq`); they are installed whether or not they appear in\nthe config. Explicit packages and `--manager` scope the run to packages\nonly. `install` is accepted as an alias for this command."}, + {Key: FlagBootstrapPackagesApplyManager, ValueName: "MANAGER", ValueDemanded: true, Short: "Only install packages for this built-in or plugin manager", Long: "Only install packages for this built-in or plugin manager"}, + {Key: FlagBootstrapPackagesApplyDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapPackagesApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: FlagBootstrapPackagesApplyUpdate, Short: "Refresh package manager metadata first (apk: `--update-cache`, apt: `apt-get update`)", Long: "Refresh package manager metadata first (apk: `--update-cache`, apt: `apt-get update`)"}, + {Key: ArgBootstrapPackagesApplyPackage, Short: "Packages in `manager:package` form; defaults to everything configured in [bootstrap.packages]", Long: "Packages in `manager:package` form; defaults to everything configured in [bootstrap.packages]"}, + {Key: CmdBootstrapPackagesBrew, Short: "Manage Homebrew taps used by bootstrap packages", Long: "Manage Homebrew taps used by bootstrap packages\n\nThese commands edit `[bootstrap.brew.taps]` so tapped formulae and casks\ncan be fetched directly by mise without a Homebrew installation."}, + {Key: CmdBootstrapPackagesBrewTap, Short: "Add a Homebrew tap URL to [bootstrap.brew.taps]"}, + {Key: FlagBootstrapPackagesBrewTapLocal, Short: "Write to the local config instead of the global config", Long: "Write to the local config instead of the global config"}, + {Key: FlagBootstrapPackagesBrewTapDryRun, Short: "Print the config change without writing it", Long: "Print the config change without writing it"}, + {Key: FlagBootstrapPackagesBrewTapPath, ValueName: "PATH", ValueDemanded: true, Short: "Write to this config file or directory", Long: "Write to this config file or directory"}, + {Key: ArgBootstrapPackagesBrewTapTap, Demanded: true, Short: "Tap name, e.g. `owner/repo`", Long: "Tap name, e.g. `owner/repo`"}, + {Key: ArgBootstrapPackagesBrewTapUrl, Short: "GitHub URL for the tap. Defaults to https://github.com//homebrew-.git", Long: "GitHub URL for the tap. Defaults to https://github.com//homebrew-.git"}, + {Key: CmdBootstrapPackagesBrewUntap, Short: "Remove Homebrew tap URLs from [bootstrap.brew.taps]"}, + {Key: FlagBootstrapPackagesBrewUntapLocal, Short: "Write to the local config instead of the global config", Long: "Write to the local config instead of the global config"}, + {Key: FlagBootstrapPackagesBrewUntapDryRun, Short: "Print the config change without writing it", Long: "Print the config change without writing it"}, + {Key: FlagBootstrapPackagesBrewUntapPath, ValueName: "PATH", ValueDemanded: true, Short: "Write to this config file or directory", Long: "Write to this config file or directory"}, + {Key: ArgBootstrapPackagesBrewUntapTaps, Demanded: true, Short: "Tap name(s), e.g. `owner/repo`", Long: "Tap name(s), e.g. `owner/repo`"}, + {Key: CmdBootstrapPackagesImport, Short: "Import installed system packages into `[bootstrap.packages]`", Long: "Import installed system packages into `[bootstrap.packages]`\n\nCurrently supports Homebrew formulae only. By default, imports linked\nformulae whose active keg receipt says they were installed on request.\nPass `--all` to import every linked formula, including dependencies."}, + {Key: FlagBootstrapPackagesImportEnv, ValueName: "ENV", ValueDemanded: true, Short: "Write to the config file for this environment (mise..toml)", Long: "Write to the config file for this environment (mise..toml)"}, + {Key: FlagBootstrapPackagesImportGlobal, Short: "Write to the global config (~/.config/mise/config.toml)", Long: "Write to the global config (~/.config/mise/config.toml)"}, + {Key: FlagBootstrapPackagesImportManager, ValueName: "MANAGER", ValueDemanded: true, Short: "Only import packages for this manager. Currently only `brew` is supported", Long: "Only import packages for this manager. Currently only `brew` is supported"}, + {Key: FlagBootstrapPackagesImportAll, Short: "Import every linked formula, including dependencies", Long: "Import every linked formula, including dependencies"}, + {Key: FlagBootstrapPackagesImportDryRun, Short: "Print the config change without writing config", Long: "Print the config change without writing config"}, + {Key: FlagBootstrapPackagesImportPath, ValueName: "PATH", ValueDemanded: true, Short: "Write to this config file or directory", Long: "Write to this config file or directory"}, + {Key: CmdBootstrapPackagesPrune, Short: "Prune installed system packages no longer declared in `[bootstrap.packages]`", Long: "Prune installed system packages no longer declared in `[bootstrap.packages]`\n\nCurrently supports Homebrew formulae only. Pruning removes linked formulae\nthat are not needed by the current config or by trusted, loadable tracked\nconfigs."}, + {Key: FlagBootstrapPackagesPruneManager, ValueName: "MANAGER", ValueDemanded: true, Short: "Only prune packages for this manager. Currently only `brew` is supported", Long: "Only prune packages for this manager. Currently only `brew` is supported"}, + {Key: FlagBootstrapPackagesPruneDryRun, Short: "Print what would be removed without deleting anything", Long: "Print what would be removed without deleting anything"}, + {Key: FlagBootstrapPackagesPruneYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapPackagesStatus, Short: "Show the status of system packages from `[bootstrap.packages]`"}, + {Key: FlagBootstrapPackagesStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapPackagesStatusMissing, Short: "Exit with code 1 if any configured packages are not in their desired state", Long: "Exit with code 1 if any configured packages are not in their desired state"}, + {Key: CmdBootstrapPackagesUpgrade, Short: "Upgrade installed bootstrap packages from `[bootstrap.packages]`", Long: "Upgrade installed bootstrap packages from `[bootstrap.packages]`\n\nRefreshes package manager metadata and upgrades the configured packages\nthat are already installed: apk/apt/dnf/pacman upgrade to the newest available\nversion (apk, apt, and dnf honor a version pinned in config), brew pours the\nformula's current bottle and replaces the old keg, brew-cask installs\nthe current cask artifact, flatpak updates applications and runtimes, and mas upgrades App Store apps. Packages that\nare not installed yet are skipped — use `mise bootstrap packages apply`\nfor those.\n\nPackages can also be given explicitly in `manager:package` form."}, + {Key: FlagBootstrapPackagesUpgradeManager, ValueName: "MANAGER", ValueDemanded: true, Short: "Only upgrade packages for this built-in or plugin manager", Long: "Only upgrade packages for this built-in or plugin manager"}, + {Key: FlagBootstrapPackagesUpgradeDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapPackagesUpgradeYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: ArgBootstrapPackagesUpgradePackage, Short: "Packages in `manager:package` form; defaults to everything configured in [bootstrap.packages]", Long: "Packages in `manager:package` form; defaults to everything configured in [bootstrap.packages]"}, + {Key: CmdBootstrapPackagesUse, Short: "Add bootstrap packages to [bootstrap.packages] and install them", Long: "Add bootstrap packages to [bootstrap.packages] and install them\n\nLike `mise use` for tools: writes `\"manager:package\" = \"version\"` entries\nto mise.toml (the local config by default, the global one with `-g`) and\nthen installs whatever is missing.\n\nVersions are pinned with `@`: `mise bootstrap packages use apt:curl@8.5.0-2`. Without\n`@` (or with `@latest`) no pin is written. brew formulae and casks\nversion through their names instead (for example `brew:postgresql@17`,\n`brew-cask:temurin@17`), where `@` is part of the Homebrew name rather than\na mise version selector. mas uses numeric ADAM IDs and does not support pins."}, + {Key: FlagBootstrapPackagesUseEnv, ValueName: "ENV", ValueDemanded: true, Short: "Write to the config file for this environment (mise..toml)", Long: "Write to the config file for this environment (mise..toml)"}, + {Key: FlagBootstrapPackagesUseGlobal, Short: "Write to the global config (~/.config/mise/config.toml) instead of the local one", Long: "Write to the global config (~/.config/mise/config.toml) instead of the local one"}, + {Key: FlagBootstrapPackagesUseDryRun, Short: "Print the commands that would run without writing config or installing", Long: "Print the commands that would run without writing config or installing"}, + {Key: FlagBootstrapPackagesUsePath, ValueName: "PATH", ValueDemanded: true, Short: "Write to this config file or directory", Long: "Write to this config file or directory"}, + {Key: FlagBootstrapPackagesUseYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: ArgBootstrapPackagesUsePackage, Demanded: true, Short: "Packages in `manager:package[@version]` form", Long: "Packages in `manager:package[@version]` form"}, + {Key: CmdBootstrapPlan, Short: "Show the changes declarative bootstrap resources would make"}, + {Key: FlagBootstrapPlanJson, Short: "Output a stable machine-readable plan in JSON format", Long: "Output a stable machine-readable plan in JSON format"}, + {Key: FlagBootstrapPlanDetailedExitcode, Short: "Exit 2 when the plan contains changes, 0 when unchanged, and 1 on errors", Long: "Exit 2 when the plan contains changes, 0 when unchanged, and 1 on errors"}, + {Key: FlagBootstrapPlanPromptSecrets, Short: "Prompt securely for missing bootstrap secret inputs", Long: "Prompt securely for missing bootstrap secret inputs"}, + {Key: CmdBootstrapPlugins, Short: "Manage package manager plugins declared in `[bootstrap.plugins]`"}, + {Key: CmdBootstrapPluginsApply}, + {Key: FlagBootstrapPluginsApplyDryRun, Short: "Print what would happen without installing plugins", Long: "Print what would happen without installing plugins"}, + {Key: CmdBootstrapPluginsStatus}, + {Key: FlagBootstrapPluginsStatusMissing, Short: "Exit with code 1 if a declared plugin is missing", Long: "Exit with code 1 if a declared plugin is missing"}, + {Key: CmdBootstrapRemote, Short: "Bootstrap one or more machines over OpenSSH"}, + {Key: FlagBootstrapRemoteAll, Short: "Select every configured inventory host", Long: "Select every configured inventory host"}, + {Key: FlagBootstrapRemoteBootstrapCommand, ValueName: "COMMAND", ValueDemanded: true, Short: "Explicit remote shell command that installs mise and places it on PATH", Long: "Explicit remote shell command that installs mise and places it on PATH"}, + {Key: FlagBootstrapRemoteConnectTimeout, ValueName: "CONNECT_TIMEOUT", ValueDemanded: true, Short: "SSH connection timeout in seconds", Long: "SSH connection timeout in seconds"}, + {Key: FlagBootstrapRemoteExclude, Repeatable: true, ValueName: "PATTERN", ValueDemanded: true, Short: "Additional archive pattern to exclude; repeat for multiple patterns", Long: "Additional archive pattern to exclude; repeat for multiple patterns"}, + {Key: FlagBootstrapRemoteFailFast, Short: "Stop after the first failed target", Long: "Stop after the first failed target"}, + {Key: FlagBootstrapRemoteForceDotfiles, Short: "Allow remote dotfile conflicts to be replaced", Long: "Allow remote dotfile conflicts to be replaced"}, + {Key: FlagBootstrapRemoteHost, Repeatable: true, ValueName: "[USER@]HOST", ValueDemanded: true, Short: "Ad-hoc SSH destination (`[user@]host`); repeat for multiple hosts", Long: "Ad-hoc SSH destination (`[user@]host`); repeat for multiple hosts"}, + {Key: FlagBootstrapRemoteIdentityFile, ValueName: "IDENTITY_FILE", ValueDemanded: true, Short: "SSH identity file override", Long: "SSH identity file override"}, + {Key: FlagBootstrapRemoteDryRun, Short: "Print the remote bootstrap changes without applying them", Long: "Print the remote bootstrap changes without applying them"}, + {Key: FlagBootstrapRemoteKeepStaging, Short: "Keep the remote staging directory for debugging", Long: "Keep the remote staging directory for debugging"}, + {Key: FlagBootstrapRemoteMiseBin, ValueName: "MISE_BIN", ValueDemanded: true, Short: "Local mise binary to upload (escape hatch for custom architectures)", Long: "Local mise binary to upload (escape hatch for custom architectures)"}, + {Key: FlagBootstrapRemoteOnly, Repeatable: true, ValueName: "ONLY", ValueDemanded: true, Short: "Run only one or more remote bootstrap parts", Long: "Run only one or more remote bootstrap parts"}, + {Key: FlagBootstrapRemotePort, ValueName: "PORT", ValueDemanded: true, Short: "SSH port override", Long: "SSH port override"}, + {Key: FlagBootstrapRemotePromptSecrets, Short: "Prompt securely for missing secret inputs on the remote host", Long: "Prompt securely for missing secret inputs on the remote host"}, + {Key: FlagBootstrapRemoteRemoteMise, ValueName: "COMMAND", ValueDemanded: true, Short: "Existing mise executable name or path; relative paths use the staged project", Long: "Existing mise executable name or path; relative paths use the staged project"}, + {Key: FlagBootstrapRemoteSkip, Repeatable: true, ValueName: "SKIP", ValueDemanded: true, Short: "Skip one or more remote bootstrap parts", Long: "Skip one or more remote bootstrap parts"}, + {Key: FlagBootstrapRemoteSource, ValueName: "SOURCE", ValueDemanded: true, Short: "Local directory archived and sent to each target", Long: "Local directory archived and sent to each target"}, + {Key: FlagBootstrapRemoteSshOption, Repeatable: true, ValueName: "OPTION", ValueDemanded: true, Short: "OpenSSH `-o` option; repeat for multiple options", Long: "OpenSSH `-o` option; repeat for multiple options"}, + {Key: FlagBootstrapRemoteTag, Repeatable: true, ValueName: "TAG", ValueDemanded: true, Short: "Select configured hosts with this tag; repeat to match any tag", Long: "Select configured hosts with this tag; repeat to match any tag"}, + {Key: FlagBootstrapRemoteUpdate, Short: "Refresh package manager metadata and update configured repos remotely", Long: "Refresh package manager metadata and update configured repos remotely"}, + {Key: FlagBootstrapRemoteYes, Short: "Skip remote confirmation prompts", Long: "Skip remote confirmation prompts"}, + {Key: ArgBootstrapRemoteTarget, Short: "Inventory host names from `[bootstrap.remote.hosts]`", Long: "Inventory host names from `[bootstrap.remote.hosts]`"}, + {Key: CmdBootstrapRepos, Short: "Manage git repo checkouts from `[bootstrap.repos]`"}, + {Key: CmdBootstrapReposApply}, + {Key: FlagBootstrapReposApplyDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapReposApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapReposExec}, + {Key: FlagBootstrapReposExecContinueOnError, Short: "Continue running in other repos after a command fails", Long: "Continue running in other repos after a command fails"}, + {Key: FlagBootstrapReposExecDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: ArgBootstrapReposExecPath, Short: "Run only in matching configured or expanded paths", Long: "Run only in matching configured or expanded paths"}, + {Key: ArgBootstrapReposExecCommand, Demanded: true, Short: "Command and arguments to run in each repo", Long: "Command and arguments to run in each repo"}, + {Key: CmdBootstrapReposStatus}, + {Key: FlagBootstrapReposStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapReposStatusMissing, Short: "Exit with code 1 if any configured repo is not in its desired state", Long: "Exit with code 1 if any configured repo is not in its desired state"}, + {Key: CmdBootstrapReposUpdate}, + {Key: FlagBootstrapReposUpdateDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapReposUpdateYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: ArgBootstrapReposUpdatePath, Short: "Update only matching configured or expanded paths", Long: "Update only matching configured or expanded paths"}, + {Key: CmdBootstrapSecrets, Short: "Inspect bootstrap secret inputs without revealing their values"}, + {Key: CmdBootstrapSecretsStatus, Short: "Show whether declared bootstrap secret inputs are available"}, + {Key: FlagBootstrapSecretsStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapSecretsStatusMissing, Short: "Exit with code 1 if a declared secret input is unavailable", Long: "Exit with code 1 if a declared secret input is unavailable"}, + {Key: CmdBootstrapServices, Short: "Manage Linux system services from `[bootstrap.services]`"}, + {Key: CmdBootstrapServicesApply, Short: "Apply configured Linux system service state"}, + {Key: FlagBootstrapServicesApplyDryRun, Short: "Print what would change without changing anything", Long: "Print what would change without changing anything"}, + {Key: FlagBootstrapServicesApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapServicesStatus, Short: "Show configured Linux system service state"}, + {Key: FlagBootstrapServicesStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapServicesStatusMissing, Short: "Exit with code 1 when any service is not converged", Long: "Exit with code 1 when any service is not converged"}, + {Key: CmdBootstrapStatus, Short: "Show the aggregate bootstrap status"}, + {Key: FlagBootstrapStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapStatusMissing, Short: "Exit with code 1 if any configured bootstrap state is not in its desired state", Long: "Exit with code 1 if any configured bootstrap state is not in its desired state"}, + {Key: FlagBootstrapStatusPromptSecrets, Short: "Prompt securely for missing bootstrap secret inputs", Long: "Prompt securely for missing bootstrap secret inputs"}, + {Key: CmdBootstrapSystemd, Hide: true, Short: "Manage systemd user services from `[bootstrap.linux.systemd.units]`"}, + {Key: CmdBootstrapSystemdApply}, + {Key: FlagBootstrapSystemdApplyDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapSystemdApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapSystemdStatus}, + {Key: FlagBootstrapSystemdStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapSystemdStatusMissing, Short: "Exit with code 1 if any configured systemd user service is not in its desired state", Long: "Exit with code 1 if any configured systemd user service is not in its desired state"}, + {Key: CmdBootstrapUser, Short: "Manage current-user bootstrap settings from `[bootstrap.user]`"}, + {Key: CmdBootstrapUserApply}, + {Key: FlagBootstrapUserApplyDryRun, Short: "Print the commands that would run without running them", Long: "Print the commands that would run without running them"}, + {Key: FlagBootstrapUserApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: CmdBootstrapUserStatus}, + {Key: FlagBootstrapUserStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagBootstrapUserStatusMissing, Short: "Exit with code 1 if any configured user setting is not in its desired state", Long: "Exit with code 1 if any configured user setting is not in its desired state"}, + {Key: CmdCache, Short: "Manage the mise cache", Long: "Manage the mise cache\n\nRun `mise cache` with no args to view the current cache directory."}, + {Key: CmdCacheClear, Short: "Deletes all cache files in mise"}, + {Key: FlagCacheClearOutdate, Hide: true, Short: "Mark all cache files as old", Long: "Mark all cache files as old"}, + {Key: FlagCacheClearTask, ValueName: "TASK", ValueDemanded: true, Short: "Clear output cache entries for a task name or pattern", Long: "Clear output cache entries for a task name or pattern"}, + {Key: ArgCacheClearTool, Short: "Tool(s) to clear cache for e.g.: node, python", Long: "Tool(s) to clear cache for e.g.: node, python"}, + {Key: CmdCachePath, Short: "Show the cache directory path"}, + {Key: CmdCachePrune, Short: "Removes stale mise cache files", Long: "Removes stale mise cache files\n\nBy default, this command will remove files that have not been accessed in 30 days.\nChange this with the MISE_CACHE_PRUNE_AGE environment variable."}, + {Key: FlagCachePruneVerbose, Repeatable: true, Short: "Show pruned files", Long: "Show pruned files"}, + {Key: FlagCachePruneDryRun, Short: "Just show what would be pruned", Long: "Just show what would be pruned"}, + {Key: ArgCachePruneTool, Short: "Tool(s) to prune cache for e.g.: node, python", Long: "Tool(s) to prune cache for e.g.: node, python"}, + {Key: CmdCacheTask, Short: "Inspect output cache entries for a task"}, + {Key: FlagCacheTaskJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: ArgCacheTaskTask, Demanded: true, Short: "Task name or pattern to inspect", Long: "Task name or pattern to inspect"}, + {Key: CmdCompletion, Short: "Generate shell completions"}, + {Key: FlagCompletionShell, Hide: true, ValueName: "SHELL_TYPE", ValueDemanded: true, Short: "Shell type to generate completions for", Long: "Shell type to generate completions for"}, + {Key: FlagCompletionIncludeBashCompletionLib, Short: "Include the bash completion library in the bash completion script", Long: "Include the bash completion library in the bash completion script\n\nThis is required for completions to work in bash, but it is not included by default\nyou may source it separately or enable this flag to enable it in the script."}, + {Key: FlagCompletionUsage, Hide: true, Short: "Always use usage for completions.", Long: "Always use usage for completions.\nCurrently, usage is the default for fish and bash but not zsh since it has a few quirks\nto work out first.\n\nThis requires the `usage` CLI to be installed.\nhttps://usage.jdx.dev"}, + {Key: ArgCompletionShell, Short: "Shell type to generate completions for", Long: "Shell type to generate completions for"}, + {Key: CmdConfig, Short: "Manage config files"}, + {Key: FlagConfigJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagConfigNoHeader, Short: "Do not print table header", Long: "Do not print table header"}, + {Key: FlagConfigTrackedConfigs, Short: "List all tracked config files", Long: "List all tracked config files"}, + {Key: CmdConfigGet, Short: "Display the value of a setting in a mise.toml file"}, + {Key: FlagConfigGetFile, ValueName: "FILE", ValueDemanded: true, Short: "The path to the mise.toml file to read", Long: "The path to the mise.toml file to read\n\nCan be a file path or directory. If a directory is provided, the config file in that directory is used.\n\nIf not provided, the nearest mise.toml file will be used"}, + {Key: ArgConfigGetKey, Short: "The path of the config to display", Long: "The path of the config to display"}, + {Key: CmdConfigLs, Short: "List config files currently in use"}, + {Key: FlagConfigLsJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagConfigLsNoHeader, Short: "Do not print table header", Long: "Do not print table header"}, + {Key: FlagConfigLsTrackedConfigs, Short: "List all tracked config files", Long: "List all tracked config files"}, + {Key: CmdConfigSet, Short: "Set the value of a setting in a mise.toml file"}, + {Key: FlagConfigSetFile, ValueName: "FILE", ValueDemanded: true, Short: "The path to the mise.toml file to edit", Long: "The path to the mise.toml file to edit\n\nCan be a file path or directory. If a directory is provided, the config file in that directory is used.\n\nIf not provided, the nearest mise.toml file will be used"}, + {Key: FlagConfigSetType, ValueName: "TYPE", ValueDemanded: true}, + {Key: ArgConfigSetKey, Demanded: true, Short: "The path of the config to display", Long: "The path of the config to display"}, + {Key: ArgConfigSetValue, Short: "The value to set the key to (optional if provided as KEY=VALUE)", Long: "The value to set the key to (optional if provided as KEY=VALUE)"}, + {Key: CmdCurrent, Hide: true, Short: "Shows current active and installed runtime versions", Long: "Shows current active and installed runtime versions\n\nThis is similar to `mise ls --current`, but this only shows the runtime\nand/or version. It's designed to fit into scripts more easily."}, + {Key: ArgCurrentPlugin, Short: "Plugin to show versions of e.g.: ruby, node, cargo:eza, npm:prettier, etc", Long: "Plugin to show versions of e.g.: ruby, node, cargo:eza, npm:prettier, etc"}, + {Key: CmdDeactivate, Short: "Disable mise for current shell session", Long: "Disable mise for current shell session\n\nThis can be used to temporarily disable mise in a shell session."}, + {Key: CmdDirenv, Hide: true, Short: "Output direnv function to use mise inside direnv", Long: "Output direnv function to use mise inside direnv\n\nSee https://mise.jdx.dev/direnv.html for more information\n\nBecause this generates the idiomatic files based on currently installed plugins,\nyou should run this command after installing new plugins. Otherwise\ndirenv may not know to update environment variables when idiomatic file versions change."}, + {Key: CmdDirenvActivate, Hide: true, Short: "Output direnv function to use mise inside direnv", Long: "Output direnv function to use mise inside direnv\n\nSee https://mise.jdx.dev/direnv.html for more information\n\nBecause this generates the idiomatic files based on currently installed plugins,\nyou should run this command after installing new plugins. Otherwise\ndirenv may not know to update environment variables when idiomatic file versions change."}, + {Key: CmdDirenvEnvrc, Hide: true, Short: "[internal] This is an internal command that writes an envrc file\nfor direnv to consume."}, + {Key: CmdDirenvExec, Hide: true, Short: "[internal] This is an internal command that writes an envrc file\nfor direnv to consume."}, + {Key: CmdDotfiles, Hide: true, Short: "Manage dotfiles from `[dotfiles]` (deprecated)", Long: "Manage dotfiles from `[dotfiles]` (deprecated)\n\nUse `mise bootstrap dotfiles` instead."}, + {Key: CmdDotfilesAdd, Hide: true, Short: "Add or update dotfiles in `[dotfiles]`", Long: "Add or update dotfiles in `[dotfiles]`\n\nIf the target is already managed, this updates its source from the live\ntarget. Otherwise it creates a `[dotfiles]` entry and seeds the source\nunder `dotfiles.root` unless `--source` is provided."}, + {Key: FlagDotfilesAddForce, Short: "Overwrite existing sources without prompting", Long: "Overwrite existing sources without prompting"}, + {Key: FlagDotfilesAddGlobal, Short: "Write to the global config", Long: "Write to the global config"}, + {Key: FlagDotfilesAddLocal, Short: "Write to the local config instead of the global config", Long: "Write to the local config instead of the global config"}, + {Key: FlagDotfilesAddMode, ValueName: "MODE", ValueDemanded: true, Short: "Dotfile mode to write", Long: "Dotfile mode to write"}, + {Key: FlagDotfilesAddDryRun, Short: "Print the config/source updates without writing anything", Long: "Print the config/source updates without writing anything"}, + {Key: FlagDotfilesAddNoApply, Short: "Add the entry without applying it", Long: "Add the entry without applying it"}, + {Key: FlagDotfilesAddPath, ValueName: "PATH", ValueDemanded: true, Short: "Write to this config file or directory", Long: "Write to this config file or directory"}, + {Key: FlagDotfilesAddSource, ValueName: "PATH", ValueDemanded: true, Short: "Source path to use for a single target", Long: "Source path to use for a single target"}, + {Key: FlagDotfilesAddYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: ArgDotfilesAddTarget, Demanded: true, Short: "Targets to add or update", Long: "Targets to add or update"}, + {Key: CmdDotfilesApply, Hide: true, Short: "Apply dotfiles from `[dotfiles]`", Long: "Apply dotfiles from `[dotfiles]`\n\nApplies configured whole-file entries and edits that aren't in their\ndesired state. Whole-file entries may symlink, copy, or render templates.\nEdit entries manage a marker-delimited block or a single line in a file\nmise doesn't otherwise own."}, + {Key: FlagDotfilesApplyForce, Short: "Overwrite existing files that conflict with whole-file dotfile entries", Long: "Overwrite existing files that conflict with whole-file dotfile entries"}, + {Key: FlagDotfilesApplyDryRun, Short: "Print the actions that would run without writing anything", Long: "Print the actions that would run without writing anything"}, + {Key: FlagDotfilesApplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: ArgDotfilesApplyTarget, Short: "Only apply these targets", Long: "Only apply these targets"}, + {Key: CmdDotfilesEdit, Hide: true, Short: "Edit a managed dotfile source"}, + {Key: FlagDotfilesEditApply, Short: "Apply this target after the editor exits", Long: "Apply this target after the editor exits"}, + {Key: FlagDotfilesEditMode, ValueName: "MODE", ValueDemanded: true, Short: "Dotfile mode to use if the target is not yet managed", Long: "Dotfile mode to use if the target is not yet managed"}, + {Key: FlagDotfilesEditSource, ValueName: "PATH", ValueDemanded: true, Short: "Source path to use if the target is not yet managed", Long: "Source path to use if the target is not yet managed"}, + {Key: FlagDotfilesEditYes, Short: "Skip the confirmation prompt when adding an unmanaged target", Long: "Skip the confirmation prompt when adding an unmanaged target"}, + {Key: ArgDotfilesEditTarget, Demanded: true, Short: "Target to edit", Long: "Target to edit"}, + {Key: CmdDotfilesStatus, Hide: true, Short: "Show the status of dotfiles from `[dotfiles]`"}, + {Key: FlagDotfilesStatusJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagDotfilesStatusMissing, Short: "Exit with code 1 if any configured dotfiles are not in their desired", Long: "Exit with code 1 if any configured dotfiles are not in their desired\nstate (missing, source missing, differs)"}, + {Key: ArgDotfilesStatusTarget, Short: "Only show these targets", Long: "Only show these targets"}, + {Key: CmdDotfilesUnapply, Hide: true, Short: "Remove dotfiles applied from `[dotfiles]`", Long: "Remove dotfiles applied from `[dotfiles]`\n\nRemoves configured whole-file entries and edits while preserving files\nmise cannot identify as managed. Modified copies, templates, and plain-line\nedits require `--force`."}, + {Key: FlagDotfilesUnapplyForce, Short: "Remove modified or otherwise ambiguous managed files and lines", Long: "Remove modified or otherwise ambiguous managed files and lines"}, + {Key: FlagDotfilesUnapplyDryRun, Short: "Print the actions that would run without writing anything", Long: "Print the actions that would run without writing anything"}, + {Key: FlagDotfilesUnapplyYes, Short: "Skip the confirmation prompt", Long: "Skip the confirmation prompt"}, + {Key: ArgDotfilesUnapplyTarget, Short: "Only unapply these targets", Long: "Only unapply these targets"}, + {Key: CmdDoctor, Short: "Check mise installation for possible problems"}, + {Key: FlagDoctorJson}, + {Key: CmdDoctorPath, Short: "Print the current PATH entries mise is providing"}, + {Key: FlagDoctorPathFull, Short: "Print all entries including those not provided by mise", Long: "Print all entries including those not provided by mise"}, + {Key: CmdEn, Short: "Starts a new shell with the mise environment built from the current configuration", Long: "Starts a new shell with the mise environment built from the current configuration\n\nThis is an alternative to `mise activate` that allows you to explicitly start a mise session.\nIt will have the tools and environment variables in the configs loaded.\nNote that changing directories will not update the mise environment."}, + {Key: FlagEnShell, ValueName: "SHELL", ValueDemanded: true, Short: "Shell to start", Long: "Shell to start\n\nDefaults to $SHELL"}, + {Key: ArgEnDir, Short: "Directory to start the shell in", Long: "Directory to start the shell in"}, + {Key: CmdEnv, Short: "Exports env vars to activate mise a single time", Long: "Exports env vars to activate mise a single time\n\nUse this if you don't want to permanently install mise. It's not necessary to\nuse this if you have `mise activate` in your shell rc file."}, + {Key: FlagEnvDotenv, Short: "Output in dotenv format", Long: "Output in dotenv format"}, + {Key: FlagEnvJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagEnvShell, ValueName: "SHELL", ValueDemanded: true, Short: "Shell type to generate environment variables for", Long: "Shell type to generate environment variables for"}, + {Key: FlagEnvJsonExtended, Short: "Output in JSON format with additional information (source, tool)", Long: "Output in JSON format with additional information (source, tool)"}, + {Key: FlagEnvRedacted, Short: "Only show redacted environment variables", Long: "Only show redacted environment variables"}, + {Key: FlagEnvValues, Short: "Only show values of environment variables", Long: "Only show values of environment variables"}, + {Key: ArgEnvToolVersion, Short: "Tool(s) to use", Long: "Tool(s) to use"}, + {Key: CmdExec, Short: "Execute a command with tool(s) set", Long: "Execute a command with tool(s) set\n\nuse this to avoid modifying the shell session or running ad-hoc commands with mise tools set.\n\nTools will be loaded from mise.toml, though they can be overridden with args\nNote that only the plugin specified will be overridden, so if a `mise.toml` file\nincludes \"node 20\" but you run `mise exec python@3.11`; it will still load node@20.\n\nThe \"--\" separates runtimes from the commands to pass along to the subprocess."}, + {Key: FlagExecCommand, ValueName: "C", ValueDemanded: true, Short: "Command string to execute", Long: "Command string to execute"}, + {Key: FlagExecJobs, ValueName: "JOBS", ValueDemanded: true, Short: "Number of jobs to run in parallel", Long: "Number of jobs to run in parallel\n[default: 4]"}, + {Key: FlagExecAllowEnv, Repeatable: true, ValueName: "VAR", ValueDemanded: true, Short: "Allow specific env var through (implies --deny-env for everything else)", Long: "Allow specific env var through (implies --deny-env for everything else)\nSupports wildcards, e.g. --allow-env='MYAPP_*'"}, + {Key: FlagExecAllowNet, Repeatable: true, ValueName: "HOST", ValueDemanded: true, Short: "Allow network to specific host (implies --deny-net for everything else)", Long: "Allow network to specific host (implies --deny-net for everything else)\nmacOS only in v1; on Linux falls back to allowing all network"}, + {Key: FlagExecAllowRead, Repeatable: true, ValueName: "PATH", ValueDemanded: true, Short: "Allow reads from specific path (implies --deny-read for everything else)", Long: "Allow reads from specific path (implies --deny-read for everything else)"}, + {Key: FlagExecAllowWrite, Repeatable: true, ValueName: "PATH", ValueDemanded: true, Short: "Allow writes to specific path (implies --deny-write for everything else)", Long: "Allow writes to specific path (implies --deny-write for everything else)"}, + {Key: FlagExecDenyAll, Short: "Block reads, writes, network, and env vars", Long: "Block reads, writes, network, and env vars"}, + {Key: FlagExecDenyEnv, Short: "Block env var inheritance (only PATH, HOME, USER, SHELL, TERM, LANG pass through)", Long: "Block env var inheritance (only PATH, HOME, USER, SHELL, TERM, LANG pass through)"}, + {Key: FlagExecDenyNet, Short: "Block all network access", Long: "Block all network access"}, + {Key: FlagExecDenyRead, Short: "Block filesystem reads (system libs and tool dirs still accessible)", Long: "Block filesystem reads (system libs and tool dirs still accessible)"}, + {Key: FlagExecDenyWrite, Short: "Block all filesystem writes", Long: "Block all filesystem writes"}, + {Key: FlagExecFreshEnv, Short: "Bypass the environment cache and recompute the environment", Long: "Bypass the environment cache and recompute the environment"}, + {Key: FlagExecNoDeps, Short: "Skip automatic dependency preparation", Long: "Skip automatic dependency preparation"}, + {Key: FlagExecRaw, Short: "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1", Long: "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1"}, + {Key: ArgExecToolVersion, Short: "Tool(s) to start e.g.: node@20 python@3.10", Long: "Tool(s) to start e.g.: node@20 python@3.10"}, + {Key: ArgExecCommand, Short: "Command string to execute (same as --command)", Long: "Command string to execute (same as --command)"}, + {Key: CmdFmt, Short: "Formats mise.toml", Long: "Formats mise.toml\n\nSorts keys and cleans up whitespace in mise.toml"}, + {Key: FlagFmtAll, Short: "Format all files from the current directory", Long: "Format all files from the current directory"}, + {Key: FlagFmtCheck, Short: "Check if the configs are formatted, no formatting is done", Long: "Check if the configs are formatted, no formatting is done"}, + {Key: FlagFmtStdin, Short: "Read config from stdin and write its formatted version into stdout", Long: "Read config from stdin and write its formatted version into stdout"}, + {Key: CmdGenerate, Short: "Generate files for various tools/services"}, + {Key: CmdGenerateBootstrap, Short: "Generate a script to download+execute mise", Long: "Generate a script to download+execute mise\n\nThis is designed to be used in a project where contributors may not have mise installed."}, + {Key: FlagGenerateBootstrapLocalize, Short: "Sandboxes mise internal directories like MISE_DATA_DIR and MISE_CACHE_DIR into a `.mise` directory in the project", Long: "Sandboxes mise internal directories like MISE_DATA_DIR and MISE_CACHE_DIR into a `.mise` directory in the project\n\nThis is necessary if users may use a different version of mise outside the project."}, + {Key: FlagGenerateBootstrapVersion, ValueName: "VERSION", ValueDemanded: true, Short: "Specify mise version to fetch", Long: "Specify mise version to fetch"}, + {Key: FlagGenerateBootstrapWrite, ValueName: "WRITE", ValueDemanded: true, Short: "instead of outputting the script to stdout, write to a file and make it executable", Long: "instead of outputting the script to stdout, write to a file and make it executable"}, + {Key: FlagGenerateBootstrapLocalizedDir, ValueName: "LOCALIZED_DIR", ValueDemanded: true, Short: "Directory to put localized data into", Long: "Directory to put localized data into"}, + {Key: CmdGenerateConfig, Short: "Generate a mise.toml file"}, + {Key: FlagGenerateConfigGlobal, Short: "Generate the global config file (~/.config/mise/config.toml)", Long: "Generate the global config file (~/.config/mise/config.toml)"}, + {Key: FlagGenerateConfigDryRun, Short: "Show what would be generated without writing to file", Long: "Show what would be generated without writing to file"}, + {Key: FlagGenerateConfigToolVersions, ValueName: "TOOL_VERSIONS", ValueDemanded: true, Short: "Path to a .tool-versions file to import tools from", Long: "Path to a .tool-versions file to import tools from"}, + {Key: ArgGenerateConfigPath, Short: "Path to the config file to create", Long: "Path to the config file to create"}, + {Key: CmdGenerateDevcontainer, Short: "Generate a devcontainer to execute mise"}, + {Key: FlagGenerateDevcontainerImage, ValueName: "IMAGE", ValueDemanded: true, Short: "The image to use for the devcontainer", Long: "The image to use for the devcontainer"}, + {Key: FlagGenerateDevcontainerMountMiseData, Short: "Bind the mise-data-volume to the devcontainer", Long: "Bind the mise-data-volume to the devcontainer"}, + {Key: FlagGenerateDevcontainerName, ValueName: "NAME", ValueDemanded: true, Short: "The name of the devcontainer", Long: "The name of the devcontainer"}, + {Key: FlagGenerateDevcontainerWrite, Short: "write to .devcontainer/devcontainer.json", Long: "write to .devcontainer/devcontainer.json"}, + {Key: CmdGenerateGitPreCommit, Short: "Generate a git pre-commit hook", Long: "Generate a git pre-commit hook\n\nThis command generates a git pre-commit hook that runs a mise task like `mise run pre-commit`\nwhen you commit changes to your repository.\n\nStaged files are passed to the task as `STAGED`.\n\nFor more advanced pre-commit functionality, see mise's sister project: https://hk.jdx.dev/"}, + {Key: FlagGenerateGitPreCommitTask, ValueName: "TASK", ValueDemanded: true, Short: "The task to run when the pre-commit hook is triggered", Long: "The task to run when the pre-commit hook is triggered"}, + {Key: FlagGenerateGitPreCommitWrite, Short: "write to .git/hooks/pre-commit and make it executable", Long: "write to .git/hooks/pre-commit and make it executable"}, + {Key: FlagGenerateGitPreCommitHook, ValueName: "HOOK", ValueDemanded: true, Short: "Which hook to generate (saves to .git/hooks/$hook)", Long: "Which hook to generate (saves to .git/hooks/$hook)"}, + {Key: CmdGenerateGithubAction, Short: "Generate a GitHub Action workflow file", Long: "Generate a GitHub Action workflow file\n\nThis command generates a GitHub Action workflow file that runs a mise task like `mise run ci`\nwhen you push changes to your repository."}, + {Key: FlagGenerateGithubActionTask, ValueName: "TASK", ValueDemanded: true, Short: "The task to run when the workflow is triggered", Long: "The task to run when the workflow is triggered"}, + {Key: FlagGenerateGithubActionWrite, Short: "write to .github/workflows/$name.yml", Long: "write to .github/workflows/$name.yml"}, + {Key: FlagGenerateGithubActionName, ValueName: "NAME", ValueDemanded: true, Short: "the name of the workflow to generate", Long: "the name of the workflow to generate"}, + {Key: CmdGenerateTaskDocs, Short: "Generate documentation for tasks in a project"}, + {Key: FlagGenerateTaskDocsInject, Short: "inserts the documentation into an existing file", Long: "inserts the documentation into an existing file\n\nThis will look for a special comment, ``, and replace it with the generated documentation.\nIt will replace everything between the comment and the next comment, `` so it can be\nrun multiple times on the same file to update the documentation.\nThe file must already contain both comments; mise errors instead of modifying the file if they are missing."}, + {Key: FlagGenerateTaskDocsIndex, Short: "write only an index of tasks, intended for use with `--multi`", Long: "write only an index of tasks, intended for use with `--multi`"}, + {Key: FlagGenerateTaskDocsMulti, Short: "render each task as a separate document, requires `--output` to be a directory", Long: "render each task as a separate document, requires `--output` to be a directory"}, + {Key: FlagGenerateTaskDocsOutput, ValueName: "OUTPUT", ValueDemanded: true, Short: "writes the generated docs to a file/directory", Long: "writes the generated docs to a file/directory"}, + {Key: FlagGenerateTaskDocsRoot, ValueName: "ROOT", ValueDemanded: true, Short: "root directory to search for tasks", Long: "root directory to search for tasks"}, + {Key: FlagGenerateTaskDocsStyle, ValueName: "STYLE", ValueDemanded: true}, + {Key: CmdGenerateTaskStubs, Short: "Generates shims to run mise tasks", Long: "Generates shims to run mise tasks\n\nBy default, this will build shims like ./bin/. These can be paired with `mise generate bootstrap`\nso contributors to a project can execute mise tasks without installing mise into their system."}, + {Key: FlagGenerateTaskStubsDir, ValueName: "DIR", ValueDemanded: true, Short: "Directory to create task stubs inside of", Long: "Directory to create task stubs inside of"}, + {Key: FlagGenerateTaskStubsMiseBin, ValueName: "MISE_BIN", ValueDemanded: true, Short: "Path to a mise bin to use when running the task stub.", Long: "Path to a mise bin to use when running the task stub.\n\nUse `--mise-bin=./bin/mise` to use a mise bin generated from `mise generate bootstrap`"}, + {Key: CmdGenerateToolStub, Short: "Generate a tool stub for HTTP-based tools", Long: "Generate a tool stub for HTTP-based tools\n\nThis command generates tool stubs that can automatically download and execute\ntools from HTTP URLs. It can detect checksums, file sizes, and binary paths\nautomatically by downloading and analyzing the tool.\n\nWhen generating stubs with platform-specific URLs, the command will append new\nplatforms to existing stub files rather than overwriting them. This allows you\nto incrementally build cross-platform tool stubs."}, + {Key: FlagGenerateToolStubBin, ValueName: "BIN", ValueDemanded: true, Short: "Binary path within the extracted archive", Long: "Binary path within the extracted archive\n\nIf not specified and the archive is downloaded, will auto-detect the most likely binary"}, + {Key: FlagGenerateToolStubBootstrap, Short: "Wrap stub in a bootstrap script that installs mise if not already present", Long: "Wrap stub in a bootstrap script that installs mise if not already present\n\nWhen enabled, generates a bash script that:\n1. Checks if mise is installed at the expected path\n2. If not, downloads and installs mise using the embedded installer\n3. Executes the tool stub using mise"}, + {Key: FlagGenerateToolStubBootstrapVersion, ValueName: "BOOTSTRAP_VERSION", ValueDemanded: true, Short: "Specify mise version for the bootstrap script", Long: "Specify mise version for the bootstrap script\n\nBy default, uses the latest version from the install script.\nUse this to pin to a specific version (e.g., \"2025.1.0\")."}, + {Key: FlagGenerateToolStubFetch, Short: "Fetch checksums and sizes for an existing tool stub file", Long: "Fetch checksums and sizes for an existing tool stub file\n\nThis reads an existing stub file and fills in any missing checksum/size fields by downloading the files. URLs must already be present in the stub."}, + {Key: FlagGenerateToolStubHttp, ValueName: "HTTP", ValueDemanded: true, Short: "HTTP backend type to use", Long: "HTTP backend type to use"}, + {Key: FlagGenerateToolStubLock, Short: "Resolve and embed lockfile data (exact version + platform URLs/checksums) into an existing stub file for reproducible installs without runtime API calls", Long: "Resolve and embed lockfile data (exact version + platform URLs/checksums) into an existing stub file for reproducible installs without runtime API calls"}, + {Key: FlagGenerateToolStubPlatformBin, Repeatable: true, ValueName: "PLATFORM_BIN", ValueDemanded: true, Short: "Platform-specific binary paths in the format platform:path", Long: "Platform-specific binary paths in the format platform:path\n\nExamples: --platform-bin windows-x64:tool.exe --platform-bin linux-x64:bin/tool"}, + {Key: FlagGenerateToolStubPlatformUrl, Repeatable: true, ValueName: "PLATFORM_URL", ValueDemanded: true, Short: "Platform-specific URLs in the format platform:url or just url (auto-detect platform)", Long: "Platform-specific URLs in the format platform:url or just url (auto-detect platform)\n\nWhen the output file already exists, new platforms will be appended to the existing platforms table. Existing platform URLs will be updated if specified again.\n\nIf only a URL is provided (without platform:), the platform will be automatically detected from the URL filename.\n\nExamples: --platform-url linux-x64:https://... --platform-url https://nodejs.org/dist/v22.17.1/node-v22.17.1-darwin-arm64.tar.gz"}, + {Key: FlagGenerateToolStubSkipDownload, Short: "Skip downloading for checksum and binary path detection (faster but less informative)", Long: "Skip downloading for checksum and binary path detection (faster but less informative)"}, + {Key: FlagGenerateToolStubUrl, ValueName: "URL", ValueDemanded: true, Short: "URL for downloading the tool", Long: "URL for downloading the tool\n\nExample: https://github.com/owner/repo/releases/download/v2.0.0/tool-linux-x64.tar.gz"}, + {Key: FlagGenerateToolStubVersion, ValueName: "VERSION", ValueDemanded: true, Short: "Version of the tool", Long: "Version of the tool"}, + {Key: ArgGenerateToolStubOutput, Demanded: true, Short: "Output file path for the tool stub", Long: "Output file path for the tool stub"}, + {Key: CmdGithub, Hide: true, Short: "GitHub related commands"}, + {Key: CmdGithubToken, Hide: true, Short: "Display the GitHub token mise will use for a given host", Long: "Display the GitHub token mise will use for a given host\n\nShows which token source mise would use, useful for debugging\nauthentication issues. The token is masked by default."}, + {Key: FlagGithubTokenOauth, Short: "Force native GitHub OAuth device flow instead of normal token resolution", Long: "Force native GitHub OAuth device flow instead of normal token resolution"}, + {Key: FlagGithubTokenRaw, Short: "Print only the token value", Long: "Print only the token value"}, + {Key: FlagGithubTokenRefresh, Short: "Mint a fresh OAuth token even if the cached one has not expired, via the refresh-token grant or a new device-code flow", Long: "Mint a fresh OAuth token even if the cached one has not expired, via the refresh-token grant or a new device-code flow"}, + {Key: FlagGithubTokenUnmask, Short: "Show the full unmasked token", Long: "Show the full unmasked token"}, + {Key: ArgGithubTokenHost, Short: "GitHub hostname", Long: "GitHub hostname"}, + {Key: CmdGlobal, Hide: true, Short: "Sets/gets the global tool version(s)", Long: "Sets/gets the global tool version(s)\n\nDisplays the contents of global config after writing.\nThe file is `$HOME/.config/mise/config.toml` by default. It can be changed with `$MISE_GLOBAL_CONFIG_FILE`.\nIf `$MISE_GLOBAL_CONFIG_FILE` is set to anything that ends in `.toml`, it will be parsed as `mise.toml`.\nOtherwise, it will be parsed as a `.tool-versions` file.\n\nUse MISE_ASDF_COMPAT=1 to default the global config to ~/.tool-versions\n\nUse `mise local` to set a tool version locally in the current directory."}, + {Key: FlagGlobalFuzzy, Short: "Save fuzzy version to `~/.tool-versions`", Long: "Save fuzzy version to `~/.tool-versions`\ne.g.: `mise global --fuzzy node@20` will save `node 20` to ~/.tool-versions\nthis is the default behavior unless MISE_ASDF_COMPAT=1"}, + {Key: FlagGlobalPath, Short: "Get the path of the global config file", Long: "Get the path of the global config file"}, + {Key: FlagGlobalPin, Short: "Save exact version to `~/.tool-versions`", Long: "Save exact version to `~/.tool-versions`\ne.g.: `mise global --pin node@20` will save `node 20.0.0` to ~/.tool-versions"}, + {Key: FlagGlobalRemove, Repeatable: true, ValueName: "TOOL", ValueDemanded: true, Short: "Remove the tool(s) from ~/.tool-versions", Long: "Remove the tool(s) from ~/.tool-versions"}, + {Key: ArgGlobalToolVersion, Short: "Tool(s) to add to .tool-versions", Long: "Tool(s) to add to .tool-versions\ne.g.: node@20\nIf this is a single tool with no version, the current value of the global\n.tool-versions will be displayed"}, + {Key: CmdHookEnv, Hide: true, Short: "[internal] called by activate hook to update env vars directory change"}, + {Key: FlagHookEnvForce, Short: "Skip early exit check", Long: "Skip early exit check"}, + {Key: FlagHookEnvQuiet, Short: "Hide warnings such as when a tool is not installed", Long: "Hide warnings such as when a tool is not installed"}, + {Key: FlagHookEnvShell, ValueName: "SHELL", ValueDemanded: true, Short: "Shell type to generate script for", Long: "Shell type to generate script for"}, + {Key: FlagHookEnvReason, Hide: true, ValueName: "REASON", ValueDemanded: true, Short: "Reason for calling hook-env (e.g., \"precmd\", \"chpwd\")", Long: "Reason for calling hook-env (e.g., \"precmd\", \"chpwd\")"}, + {Key: FlagHookEnvStatus, Hide: true, Short: "Show \"mise: @\" message when changing directories", Long: "Show \"mise: @\" message when changing directories"}, + {Key: CmdHookNotFound, Hide: true, Short: "[internal] called by shell when a command is not found"}, + {Key: FlagHookNotFoundShell, ValueName: "SHELL", ValueDemanded: true, Short: "Shell type to generate script for", Long: "Shell type to generate script for"}, + {Key: ArgHookNotFoundBin, Demanded: true, Short: "Attempted bin to run", Long: "Attempted bin to run"}, + {Key: CmdImplode, Short: "Removes mise CLI and all related data", Long: "Removes mise CLI and all related data\n\nSkips config directory by default."}, + {Key: FlagImplodeDryRun, Short: "List directories that would be removed without actually removing them", Long: "List directories that would be removed without actually removing them"}, + {Key: FlagImplodeConfig, Short: "Also remove config directory", Long: "Also remove config directory"}, + {Key: CmdEdit, Short: "Edit mise.toml interactively"}, + {Key: FlagEditGlobal, Short: "Edit the global config file (~/.config/mise/config.toml)", Long: "Edit the global config file (~/.config/mise/config.toml)"}, + {Key: FlagEditDryRun, Short: "Show what would be generated without writing to file", Long: "Show what would be generated without writing to file"}, + {Key: FlagEditToolVersions, ValueName: "TOOL_VERSIONS", ValueDemanded: true, Short: "Path to a .tool-versions file to import tools from", Long: "Path to a .tool-versions file to import tools from"}, + {Key: ArgEditPath, Short: "Path to the config file to create", Long: "Path to the config file to create"}, + {Key: CmdInstall, Short: "Install a tool version", Long: "Install a tool version\n\nInstalls a tool version to `~/.local/share/mise/installs//`\nInstalling alone will not activate the tools so they won't be in PATH.\nTo install and/or activate in one command, use `mise use` which will create a `mise.toml` file\nin the current directory to activate this tool when inside the directory.\nAlternatively, run `mise exec @ -- ` to execute a tool without creating config files.\n\nTools will be installed in parallel. To disable, set `--jobs=1` or `MISE_JOBS=1`"}, + {Key: FlagInstallForce, Short: "Force reinstall even if already installed", Long: "Force reinstall even if already installed"}, + {Key: FlagInstallJobs, ValueName: "JOBS", ValueDemanded: true, Short: "Number of jobs to run in parallel", Long: "Number of jobs to run in parallel\n[default: 4]"}, + {Key: FlagInstallDryRun, Short: "Show what would be installed without actually installing", Long: "Show what would be installed without actually installing"}, + {Key: FlagInstallVerbose, Repeatable: true, Short: "Show installation output", Long: "Show installation output\n\nThis argument will print backend output such as download, configuration, and compilation output."}, + {Key: FlagInstallDryRunCode, Short: "Like --dry-run but exits with code 1 if there are tools to install", Long: "Like --dry-run but exits with code 1 if there are tools to install\n\nThis is useful for scripts to check if tools need to be installed."}, + {Key: FlagInstallMinimumReleaseAge, ValueName: "MINIMUM_RELEASE_AGE", ValueDemanded: true, Short: "Only install versions released before this date or older than this duration", Long: "Only install versions released before this date or older than this duration\n\nSupports absolute dates like \"2024-06-01\" and relative durations like \"90d\" or \"1y\"."}, + {Key: FlagInstallMonorepo, Short: "Install tools from every [monorepo].config_roots config root", Long: "Install tools from every [monorepo].config_roots config root\n\nUses the active MISE_ENV and requires monorepo_root = true plus explicit\n[monorepo].config_roots in the monorepo root config."}, + {Key: FlagInstallRaw, Short: "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1", Long: "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1"}, + {Key: FlagInstallShared, ValueName: "SHARED", ValueDemanded: true, Short: "Install tool(s) to a shared directory", Long: "Install tool(s) to a shared directory\n\nInstalls to the specified directory instead of the default install location.\nMay require elevated permissions depending on the path."}, + {Key: FlagInstallSystem, Short: "Install tool(s) to the system-wide shared directory", Long: "Install tool(s) to the system-wide shared directory\n\nInstalls to /usr/local/share/mise/installs (or MISE_SYSTEM_DATA_DIR/installs).\nMay require elevated permissions (e.g. sudo)."}, + {Key: ArgInstallToolVersion, Short: "Tool(s) to install e.g.: node@20", Long: "Tool(s) to install e.g.: node@20"}, + {Key: CmdInstallInto, Short: "Install a tool version to a specific path", Long: "Install a tool version to a specific path\n\nUsed for building a tool to a directory for use outside of mise"}, + {Key: ArgInstallIntoToolVersion, Demanded: true, Short: "Tool to install e.g.: node@20", Long: "Tool to install e.g.: node@20"}, + {Key: ArgInstallIntoPath, Demanded: true, Short: "Path to install the tool into", Long: "Path to install the tool into"}, + {Key: CmdLatest, Short: "Gets the latest available version for a plugin", Long: "Gets the latest available version for a plugin\n\nSupports prefixes such as `node@20` to get the latest version of node 20."}, + {Key: FlagLatestInstalled, Short: "Show latest installed instead of available version", Long: "Show latest installed instead of available version"}, + {Key: FlagLatestMinimumReleaseAge, ValueName: "MINIMUM_RELEASE_AGE", ValueDemanded: true, Short: "Only consider versions released before this date or older than this duration", Long: "Only consider versions released before this date or older than this duration\n\nSupports absolute dates like \"2024-06-01\" and relative durations like \"90d\" or \"1y\".\nOverrides per-tool `minimum_release_age` options and the global `minimum_release_age` setting."}, + {Key: ArgLatestToolVersion, Demanded: true, Short: "Tool to get the latest version of", Long: "Tool to get the latest version of"}, + {Key: ArgLatestAsdfVersion, Hide: true, Short: "The version prefix to use when querying the latest version same as the first argument after the \"@\" used for asdf compatibility", Long: "The version prefix to use when querying the latest version same as the first argument after the \"@\" used for asdf compatibility"}, + {Key: CmdLink, Short: "Symlinks a tool version into mise", Long: "Symlinks a tool version into mise\n\nUse this for adding installs either custom compiled outside mise or built with a different tool."}, + {Key: FlagLinkForce, Short: "Overwrite an existing tool version if it exists", Long: "Overwrite an existing tool version if it exists"}, + {Key: ArgLinkToolVersion, Demanded: true, Short: "Tool name and version to create a symlink for", Long: "Tool name and version to create a symlink for"}, + {Key: ArgLinkPath, Demanded: true, Short: "The local path to the tool version", Long: "The local path to the tool version\ne.g.: ~/.nvm/versions/node/v20.0.0"}, + {Key: CmdLocal, Hide: true, Short: "Sets/gets tool version in local .tool-versions or mise.toml", Long: "Sets/gets tool version in local .tool-versions or mise.toml\n\nUse this to set a tool's version when within a directory\nUse `mise global` to set a tool version globally\nThis uses `.tool-version` by default unless there is a `mise.toml` file or if `MISE_USE_TOML`\nis set. A future v2 release of mise will default to using `mise.toml`."}, + {Key: FlagLocalParent, Short: "Recurse up to find a .tool-versions file rather than using the current directory only", Long: "Recurse up to find a .tool-versions file rather than using the current directory only\nby default this command will only set the tool in the current directory (\"$PWD/.tool-versions\")"}, + {Key: FlagLocalFuzzy, Short: "Save fuzzy version to `.tool-versions` e.g.: `mise local --fuzzy node@20` will save `node 20` to .tool-versions This is the default behavior unless MISE_ASDF_COMPAT=1", Long: "Save fuzzy version to `.tool-versions` e.g.: `mise local --fuzzy node@20` will save `node 20` to .tool-versions This is the default behavior unless MISE_ASDF_COMPAT=1"}, + {Key: FlagLocalPath, Short: "Get the path of the config file", Long: "Get the path of the config file"}, + {Key: FlagLocalPin, Short: "Save exact version to `.tool-versions`", Long: "Save exact version to `.tool-versions`\ne.g.: `mise local --pin node@20` will save `node 20.0.0` to .tool-versions"}, + {Key: FlagLocalRemove, Repeatable: true, ValueName: "TOOL", ValueDemanded: true, Short: "Remove the tool(s) from .tool-versions", Long: "Remove the tool(s) from .tool-versions"}, + {Key: ArgLocalToolVersion, Short: "Tool(s) to add to .tool-versions/mise.toml", Long: "Tool(s) to add to .tool-versions/mise.toml\ne.g.: node@20\nif this is a single tool with no version,\nthe current value of .tool-versions/mise.toml will be displayed"}, + {Key: CmdLock, Short: "Update lockfile checksums and URLs for all specified platforms", Long: "Update lockfile checksums and URLs for all specified platforms\n\nUpdates checksums and download URLs for all platforms already specified in the lockfile.\nIf no lockfile exists, shows what would be created based on the current configuration.\nThis allows you to refresh lockfile data for platforms other than the one you're currently on.\nOperates on the lockfile in the current config root. Use TOOL arguments to target specific tools."}, + {Key: FlagLockGlobal, Short: "Target only global config lockfiles (~/.config/mise/mise.lock and system config)", Long: "Target only global config lockfiles (~/.config/mise/mise.lock and system config)\nBy default, only the active project config root is locked"}, + {Key: FlagLockJobs, ValueName: "JOBS", ValueDemanded: true, Short: "Number of jobs to run in parallel", Long: "Number of jobs to run in parallel"}, + {Key: FlagLockDryRun, Short: "Show what would be updated without making changes", Long: "Show what would be updated without making changes"}, + {Key: FlagLockPlatform, Repeatable: true, ValueName: "PLATFORM", ValueDemanded: true, Short: "Comma-separated list of platforms to target", Long: "Comma-separated list of platforms to target\ne.g.: linux-x64,macos-arm64,windows-x64\nIf not specified, all platforms already in lockfile will be updated"}, + {Key: FlagLockBump, Short: "Re-resolve fuzzy version selectors against the latest available versions", Long: "Re-resolve fuzzy version selectors against the latest available versions\n\nBy default, `mise lock` refreshes metadata for the currently locked versions.\nWith this flag, selectors like \"latest\", \"lts\", or prefixes like \"20\" are\nre-resolved against the latest matching remote versions, so the lockfile\nadvances without installing anything. Config files are never modified:\nexactly pinned versions resolve to themselves and stay unchanged\n(use `mise upgrade --bump` to rewrite pins in mise.toml)."}, + {Key: FlagLockJson, Short: "Output version changes as JSON", Long: "Output version changes as JSON\n\nPrints an array of objects describing lockfile version changes:\nname, backend, lockfile, old_versions, new_versions.\nVersion lists keep config/lockfile order; they are not sorted.\nOnly version-level changes are reported: checksum/URL refreshes for\nunchanged versions produce no entries, so plain `mise lock --json`\ntypically prints `[]` while still updating the lockfile.\nSuppresses the human-readable output. Combine with `--dry-run` to\ndetect available updates without writing the lockfile."}, + {Key: FlagLockLocal, Short: "Update mise.local.lock instead of mise.lock", Long: "Update mise.local.lock instead of mise.lock\nUse for tools defined in .local.toml configs"}, + {Key: FlagLockMinimumReleaseAge, ValueName: "MINIMUM_RELEASE_AGE", ValueDemanded: true, Short: "Only lock versions released before this age or date", Long: "Only lock versions released before this age or date\n\nSupports absolute dates like \"2024-06-01\" and relative durations like \"90d\" or \"1y\".\nThis only affects fuzzy version matches like \"20\" or \"latest\".\nExplicitly pinned versions like \"22.5.0\" are not filtered.\nExisting matching lockfile entries are preserved and are not downgraded solely by this flag."}, + {Key: ArgLockTool, Short: "Tool(s) to update in lockfile", Long: "Tool(s) to update in lockfile\ne.g.: node python\nIf not specified, all tools in lockfile will be updated"}, + {Key: CmdLs, Short: "List installed and active tool versions", Long: "List installed and active tool versions\n\nThis command lists tools that mise \"knows about\".\nThese may be tools that are currently installed, or those\nthat are in a config file (active) but may or may not be installed.\n\nIt's a useful command to get the current state of your tools."}, + {Key: FlagLsCurrent, Short: "Only show tool versions currently specified in a mise.toml", Long: "Only show tool versions currently specified in a mise.toml"}, + {Key: FlagLsGlobal, Short: "Only show tool versions currently specified in the global mise.toml", Long: "Only show tool versions currently specified in the global mise.toml"}, + {Key: FlagLsInstalled, Short: "Only show tool versions that are installed (Hides tools defined in mise.toml but not installed)", Long: "Only show tool versions that are installed (Hides tools defined in mise.toml but not installed)"}, + {Key: FlagLsJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagLsLocal, Short: "Only show tool versions currently specified in the local mise.toml", Long: "Only show tool versions currently specified in the local mise.toml"}, + {Key: FlagLsMissing, Short: "Display missing tool versions", Long: "Display missing tool versions"}, + {Key: FlagLsOffline, Hide: true, Short: "Don't fetch information such as outdated versions", Long: "Don't fetch information such as outdated versions"}, + {Key: FlagLsPlugin, Hide: true, ValueName: "TOOL_FLAG", ValueDemanded: true}, + {Key: FlagLsAllSources, Short: "Display all tracked config sources for tools", Long: "Display all tracked config sources for tools"}, + {Key: FlagLsMonorepo, Short: "List tools from every [monorepo].config_roots config root", Long: "List tools from every [monorepo].config_roots config root\n\nUses the active MISE_ENV and requires monorepo_root = true plus explicit\n[monorepo].config_roots in the monorepo root config."}, + {Key: FlagLsNoHeader, Short: "Don't display headers", Long: "Don't display headers"}, + {Key: FlagLsOutdated, Short: "Display whether a version is outdated", Long: "Display whether a version is outdated"}, + {Key: FlagLsPrefix, ValueName: "PREFIX", ValueDemanded: true, Short: "Display versions matching this prefix", Long: "Display versions matching this prefix"}, + {Key: FlagLsPrunable, Short: "List only tools that can be pruned with `mise prune`", Long: "List only tools that can be pruned with `mise prune`"}, + {Key: ArgLsInstalledTool, Short: "Only show tool versions from [TOOL]", Long: "Only show tool versions from [TOOL]"}, + {Key: CmdLsRemote, Short: "List runtime versions available for install.", Long: "List runtime versions available for install.\n\nNote that the results may be cached, run `mise cache clean` to clear the cache and get fresh results."}, + {Key: FlagLsRemoteAll, Short: "Show all installed plugins and versions", Long: "Show all installed plugins and versions"}, + {Key: FlagLsRemoteMinimumReleaseAge, ValueName: "MINIMUM_RELEASE_AGE", ValueDemanded: true, Short: "Only show versions released before this age or date", Long: "Only show versions released before this age or date\n\nSupports absolute dates like \"2024-06-01\" and relative durations like \"90d\" or \"1y\"."}, + {Key: FlagLsRemoteJson, Short: "Output in JSON format (includes version metadata like created_at timestamps when available)", Long: "Output in JSON format (includes version metadata like created_at timestamps when available)"}, + {Key: FlagLsRemoteNoVersionsHost, Short: "Disable checking the mise-versions host", Long: "Disable checking the mise-versions host"}, + {Key: FlagLsRemotePrerelease, Short: "Include pre-release versions in the output for backends that report", Long: "Include pre-release versions in the output for backends that report\nupstream prerelease metadata or opt in to regex-based prerelease\ndetection. Equivalent to setting `MISE_PRERELEASES=1` or the\n`prereleases` setting for the duration of this command."}, + {Key: FlagLsRemoteStrictMetadata, Short: "Fail if release metadata fetches fail", Long: "Fail if release metadata fetches fail\n\nRequires --json and --no-versions-host.\n\nThis prevents metadata consumers from accepting empty fallback results\nwhen a backend's metadata-producing upstream request fails."}, + {Key: ArgLsRemoteToolVersion, Short: "Tool to get versions for", Long: "Tool to get versions for"}, + {Key: ArgLsRemotePrefix, Short: "The version prefix to use when querying the latest version", Long: "The version prefix to use when querying the latest version\nsame as the first argument after the \"@\""}, + {Key: CmdMcp, Short: "Run Model Context Protocol (MCP) server", Long: "Run Model Context Protocol (MCP) server\n\nThis command starts an MCP server that exposes mise functionality\nto AI assistants over stdin/stdout using JSON-RPC protocol.\n\nThe MCP server provides access to:\n- Installed and available tools\n- Task definitions and execution\n- Environment variables\n- Configuration information\n- Task execution via the run_task tool\n\nResources available:\n- mise://tools - List all tools (use ?include_inactive=true to include inactive tools)\n- mise://tasks - List all tasks with their configurations\n- mise://env - List all environment variables\n- mise://config - Show configuration files and project root\n\nTools available:\n- list_commands - Every mise command, with its declared effect on the world\n- install_tool - Install a tool with an optional version (not yet implemented)\n- run_task - Execute a mise task with optional arguments\n\nNote: This is primarily intended for integration with AI assistants like Claude,\nCursor, or other tools that support the Model Context Protocol."}, + {Key: CmdOci, Short: "[experimental] Build OCI container images from a mise.toml", Long: "[experimental] Build OCI container images from a mise.toml\n\nEach tool becomes its own OCI layer, so bumping any single tool version\nonly invalidates one content-addressable blob — unlike a Dockerfile where\nchanging an early `RUN` invalidates every layer above it.\n\nThis command is experimental and requires `mise settings experimental=true`\n(or `MISE_EXPERIMENTAL=1`). Behavior, flags, and output layout may change\nin future releases."}, + {Key: CmdOciBuild, Short: "[experimental] Build an OCI image from the current mise.toml", Long: "[experimental] Build an OCI image from the current mise.toml\n\nEach tool version becomes its own content-addressable OCI layer. Bumping a\ntool version only invalidates that tool's layer — other tools, the base\nimage, and config are reused unchanged. The output directory conforms to\nthe OCI image-layout spec and can be consumed by `skopeo`, `crane`, or\n`podman load`.\n\nRequires `mise settings experimental=true` (or `MISE_EXPERIMENTAL=1`)."}, + {Key: FlagOciBuildCopy, Repeatable: true, ValueName: "HOST_PATH:IMAGE_PATH", ValueDemanded: true, Short: "Copy a host file, directory, or symlink into the image (repeatable, HOST:IMAGE)", Long: "Copy a host file, directory, or symlink into the image (repeatable, HOST:IMAGE)"}, + {Key: FlagOciBuildOutput, ValueName: "OUTPUT", ValueDemanded: true, Short: "Output directory for the OCI image layout", Long: "Output directory for the OCI image layout"}, + {Key: FlagOciBuildFrom, ValueName: "FROM", ValueDemanded: true, Short: "Base image reference (overrides [oci].from and the oci.default_from setting)", Long: "Base image reference (overrides [oci].from and the oci.default_from setting)"}, + {Key: FlagOciBuildIncludeGlobal, Short: "Also include tools from the global / system config (default: project-only)", Long: "Also include tools from the global / system config (default: project-only)\n\nBy default `mise oci build` only packages tools declared in the project's mise config (and any parent configs at-or-below the project root, e.g. a monorepo root config). Personal dev tools in `~/.config/mise/config.toml` are excluded so they don't bake into a project image. Pass `--include-global` to revert to the old \"merge all loaded configs\" behavior."}, + {Key: FlagOciBuildTag, ValueName: "TAG", ValueDemanded: true, Short: "Tag to record in the image index (the org.opencontainers.image.ref.name annotation)", Long: "Tag to record in the image index (the org.opencontainers.image.ref.name annotation)"}, + {Key: FlagOciBuildMountPoint, ValueName: "MOUNT_POINT", ValueDemanded: true, Short: "Where to place tool installs inside the image (default: /mise)", Long: "Where to place tool installs inside the image (default: /mise)"}, + {Key: FlagOciBuildNoMise, Short: "Do not embed the currently-running mise binary at /usr/local/bin/mise", Long: "Do not embed the currently-running mise binary at /usr/local/bin/mise"}, + {Key: FlagOciBuildOwner, ValueName: "UID[:GID]", ValueDemanded: true, Short: "UID[:GID] to assign to every tar entry in generated layers", Long: "UID[:GID] to assign to every tar entry in generated layers\n\nOverrides [oci].user_id / [oci].group_id. Defaults to 0:0. If GID is omitted, it defaults to UID. This affects file ownership only; [oci].user controls the image USER directive."}, + {Key: CmdOciPush, Short: "[experimental] Build an OCI image and push it to a registry", Long: "[experimental] Build an OCI image and push it to a registry\n\nPushes with mise's built-in registry client — no skopeo/crane/docker\nrequired. If `--image-dir` is not passed, builds fresh from the current\nmise.toml first. Only blobs the registry doesn't already have are\nuploaded, so repeat pushes of mostly-unchanged toolsets are cheap.\n\nTool layers whose tool, version, mount point, and file owner match the\npreviously pushed image (or `--cache-from`) are reused without being\nrebuilt — those tools don't even need to be installed locally. Pass\n`--no-cache` to force a full local rebuild.\n\nCredentials are read from the same places docker and podman use:\n`$REGISTRY_AUTH_FILE`, `$XDG_RUNTIME_DIR/containers/auth.json`,\n`~/.config/containers/auth.json`, and `~/.docker/config.json`\n(including credential helpers) — so `docker login` / `podman login`\nis all the setup needed.\n\nRequires `mise settings experimental=true` (or `MISE_EXPERIMENTAL=1`)."}, + {Key: FlagOciPushCacheFrom, ValueName: "REF", ValueDemanded: true, Short: "Reuse unchanged tool layers from this image instead of the destination ref", Long: "Reuse unchanged tool layers from this image instead of the destination ref\n\nMust live in the same repository as the destination. Useful when each push gets a unique tag (e.g. per-commit tags in CI): `--cache-from ghcr.io/me/dev:latest ghcr.io/me/dev:$SHA`."}, + {Key: FlagOciPushFrom, ValueName: "FROM", ValueDemanded: true, Short: "Base image for the build (ignored with --image-dir)", Long: "Base image for the build (ignored with --image-dir)"}, + {Key: FlagOciPushImageDir, ValueName: "IMAGE_DIR", ValueDemanded: true, Short: "Push an already-built OCI image layout (skip the build step)", Long: "Push an already-built OCI image layout (skip the build step)"}, + {Key: FlagOciPushIncludeGlobal, Short: "Also include tools from the global / system config (default: project-only)", Long: "Also include tools from the global / system config (default: project-only)\n\nSee `mise oci build --help` for details."}, + {Key: FlagOciPushMountPoint, ValueName: "MOUNT_POINT", ValueDemanded: true, Short: "Override in-image mount point (ignored with --image-dir)", Long: "Override in-image mount point (ignored with --image-dir)"}, + {Key: FlagOciPushNoCache, Short: "Don't reuse tool layers from the previously pushed image", Long: "Don't reuse tool layers from the previously pushed image"}, + {Key: FlagOciPushNoMise, Short: "Don't embed the mise binary (ignored with --image-dir)", Long: "Don't embed the mise binary (ignored with --image-dir)"}, + {Key: FlagOciPushOwner, ValueName: "UID[:GID]", ValueDemanded: true, Short: "UID[:GID] to assign to every tar entry when building (conflicts with --image-dir)", Long: "UID[:GID] to assign to every tar entry when building (conflicts with --image-dir)\n\nOverrides [oci].user_id / [oci].group_id. Defaults to 0:0. If GID is omitted, it defaults to UID. This affects file ownership only; [oci].user controls the image USER directive."}, + {Key: FlagOciPushUpdateIndex, Short: "Maintain the tag as a multi-arch image index", Long: "Maintain the tag as a multi-arch image index\n\nPushes this build's manifest by digest and points the tag at an OCI image index containing one entry per platform, preserving entries other architectures pushed. Run `mise oci push --update-index` from one runner per platform to assemble a multi-arch tag."}, + {Key: ArgOciPushRef, Demanded: true, Short: "Destination registry reference (e.g. `ghcr.io/me/devenv:latest`)", Long: "Destination registry reference (e.g. `ghcr.io/me/devenv:latest`)"}, + {Key: CmdOciRun, Short: "[experimental] Build an OCI image from the current mise.toml and run a command in it", Long: "[experimental] Build an OCI image from the current mise.toml and run a command in it\n\nEquivalent to `mise oci build` followed by `docker run` / `podman run`.\nThe built image is loaded into the local container engine (podman pulls\nthe OCI layout natively; docker receives it via `docker load`) and the\ngiven command is executed inside it with stdin/stdout/stderr inherited.\n\nRequires `mise settings experimental=true` (or `MISE_EXPERIMENTAL=1`) and\none of: `podman`, `docker`."}, + {Key: FlagOciRunEngine, ValueName: "ENGINE", ValueDemanded: true, Short: "Container engine to use (`auto`, `podman`, or `docker`)", Long: "Container engine to use (`auto`, `podman`, or `docker`)"}, + {Key: FlagOciRunFrom, ValueName: "FROM", ValueDemanded: true, Short: "Base image reference for the build (ignored with --image-dir)", Long: "Base image reference for the build (ignored with --image-dir)"}, + {Key: FlagOciRunImageDir, ValueName: "IMAGE_DIR", ValueDemanded: true, Short: "Use an already-built OCI image layout instead of building fresh", Long: "Use an already-built OCI image layout instead of building fresh"}, + {Key: FlagOciRunIncludeGlobal, Short: "Also include tools from the global / system config (default: project-only)", Long: "Also include tools from the global / system config (default: project-only)\n\nSee `mise oci build --help` for details."}, + {Key: FlagOciRunKeep, Short: "Keep the loaded image in the engine's storage after the run", Long: "Keep the loaded image in the engine's storage after the run\n\nBy default, both the container (`--rm`) and the loaded image are removed when the command exits, so repeated `mise oci run` calls don't accumulate images in podman / docker storage. Pass `--keep` to retain the image under the tag mise used (`mise-oci:run-*` for docker; the pulled image ID for podman)."}, + {Key: FlagOciRunMountPoint, ValueName: "MOUNT_POINT", ValueDemanded: true, Short: "Override in-image mount point (ignored with --image-dir)", Long: "Override in-image mount point (ignored with --image-dir)"}, + {Key: FlagOciRunNoMise, Short: "Don't embed the mise binary (ignored with --image-dir)", Long: "Don't embed the mise binary (ignored with --image-dir)"}, + {Key: FlagOciRunOwner, ValueName: "UID[:GID]", ValueDemanded: true, Short: "UID[:GID] to assign to every tar entry when building (conflicts with --image-dir)", Long: "UID[:GID] to assign to every tar entry when building (conflicts with --image-dir)\n\nOverrides [oci].user_id / [oci].group_id. Defaults to 0:0. If GID is omitted, it defaults to UID. This affects file ownership only; [oci].user controls the image USER directive."}, + {Key: FlagOciRunVolume, Repeatable: true, ValueName: "HOST:CONTAINER", ValueDemanded: true, Short: "Bind-mount a host path (repeatable, `HOST:CONTAINER[:MODE]`)", Long: "Bind-mount a host path (repeatable, `HOST:CONTAINER[:MODE]`)\n\nNote: unlike `docker run -v`, there's no `-v` short flag here because mise reserves `-v` for --verbose. Use `--volume` or `--mount`."}, + {Key: FlagOciRunEnv, Repeatable: true, ValueName: "KEY=VAL", ValueDemanded: true, Short: "Set environment variable in the container (repeatable, `KEY=VAL`)", Long: "Set environment variable in the container (repeatable, `KEY=VAL`)"}, + {Key: FlagOciRunInteractive, Short: "Run interactively (pass `-i` to the engine)", Long: "Run interactively (pass `-i` to the engine)"}, + {Key: FlagOciRunTty, Short: "Allocate a TTY (pass `-t` to the engine)", Long: "Allocate a TTY (pass `-t` to the engine)"}, + {Key: FlagOciRunWorkdir, ValueName: "WORKDIR", ValueDemanded: true, Short: "Working directory inside the container", Long: "Working directory inside the container"}, + {Key: ArgOciRunCmd, Short: "Command and arguments to run inside the container (after `--`)", Long: "Command and arguments to run inside the container (after `--`)"}, + {Key: CmdOutdated, Short: "Shows outdated tool versions", Long: "Shows outdated tool versions\n\nSee `mise upgrade` to upgrade these versions."}, + {Key: FlagOutdatedJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagOutdatedBump, Short: "Compares against the latest versions available, not what matches the current config", Long: "Compares against the latest versions available, not what matches the current config\n\nFor example, if you have `node = \"20\"` in your config by default `mise outdated` will only\nshow other 20.x versions, not 21.x or 22.x versions.\n\nUsing this flag, if there are 21.x or newer versions it will display those instead of 20.x."}, + {Key: FlagOutdatedInactive, Short: "Show outdated tools including installed-but-inactive tools not present in the current config", Long: "Show outdated tools including installed-but-inactive tools not present in the current config\n\nBy default, `mise outdated` only shows tools that come from the current config."}, + {Key: FlagOutdatedLocal, Short: "Only show outdated tools defined in local config files", Long: "Only show outdated tools defined in local config files\n\nThis will only show tools that are defined in project-local mise.toml and\nwill skip tools defined in the global config (~/.config/mise/config.toml)."}, + {Key: FlagOutdatedMonorepo, Short: "Placeholder for future monorepo outdated checks; `mise outdated --monorepo` is not implemented yet.", Long: "Placeholder for future monorepo outdated checks; `mise outdated --monorepo` is not implemented yet."}, + {Key: FlagOutdatedNoHeader, Short: "Don't show table header", Long: "Don't show table header"}, + {Key: ArgOutdatedToolVersion, Short: "Tool(s) to show outdated versions for", Long: "Tool(s) to show outdated versions for\ne.g.: node@20 python@3.10\nIf not specified, all tools in global and local configs will be shown"}, + {Key: CmdPatrons, Short: "Show the individuals supporting mise as Patron-tier members", Long: "Show the individuals supporting mise as Patron-tier members\n\nLists the individuals on the Patron tier from .\nThe list refreshes daily; supporting terminals will render each patron's\nname as a clickable link via OSC 8 hyperlinks.\n\nTo appear here, become a patron at ."}, + {Key: FlagPatronsJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagPatronsRefresh, Short: "Bypass the local cache and re-fetch", Long: "Bypass the local cache and re-fetch"}, + {Key: CmdPlugins, Short: "Manage plugins"}, + {Key: FlagPluginsAll, Hide: true, Short: "list all available remote plugins", Long: "list all available remote plugins\n\nsame as `mise plugins ls-remote`"}, + {Key: FlagPluginsCore, Short: "The built-in plugins only", Long: "The built-in plugins only\nNormally these are not shown"}, + {Key: FlagPluginsUrls, Short: "Show the git url for each plugin", Long: "Show the git url for each plugin\ne.g.: https://github.com/mise-plugins/vfox-cmake.git"}, + {Key: FlagPluginsRefs, Hide: true, Short: "Show the git refs for each plugin", Long: "Show the git refs for each plugin\ne.g.: main 1234abc"}, + {Key: FlagPluginsUser, Short: "List installed plugins", Long: "List installed plugins\n\nThis is the default behavior but can be used with --core\nto show core and user plugins"}, + {Key: CmdPluginsInstall, Short: "Install a plugin", Long: "Install a plugin\n\nnote that mise can automatically install plugins when you install a tool\ne.g.: `mise install cmake@3.30` will autoinstall the cmake plugin\n\nThis behavior can be modified in ~/.config/mise/config.toml"}, + {Key: FlagPluginsInstallAll, Short: "Install all missing plugins", Long: "Install all missing plugins\nThis will only install plugins that have matching shorthands.\ni.e.: they don't need the full git repo url"}, + {Key: FlagPluginsInstallForce, Short: "Reinstall even if plugin exists", Long: "Reinstall even if plugin exists"}, + {Key: FlagPluginsInstallJobs, ValueName: "JOBS", ValueDemanded: true, Short: "Number of jobs to run in parallel", Long: "Number of jobs to run in parallel"}, + {Key: FlagPluginsInstallVerbose, Repeatable: true, Short: "Show installation output", Long: "Show installation output"}, + {Key: ArgPluginsInstallNewPlugin, Short: "The name of the plugin to install", Long: "The name of the plugin to install\ne.g.: cmake, poetry\nCan specify multiple plugins: `mise plugins install cmake poetry`"}, + {Key: ArgPluginsInstallGitUrl, Short: "The git url of the plugin", Long: "The git url of the plugin"}, + {Key: ArgPluginsInstallRest, Hide: true}, + {Key: CmdPluginsLink, Short: "Symlinks a plugin into mise", Long: "Symlinks a plugin into mise\n\nThis is used for developing a plugin."}, + {Key: FlagPluginsLinkForce, Short: "Overwrite existing plugin", Long: "Overwrite existing plugin"}, + {Key: ArgPluginsLinkName, Demanded: true, Short: "The name of the plugin", Long: "The name of the plugin\ne.g.: cmake, poetry"}, + {Key: ArgPluginsLinkDir, Short: "The local path to the plugin", Long: "The local path to the plugin\ne.g.: ./vfox-cmake"}, + {Key: CmdPluginsLs, Short: "List installed plugins", Long: "List installed plugins\n\nCan also show remotely available plugins to install."}, + {Key: FlagPluginsLsAll, Hide: true, Short: "List all available remote plugins", Long: "List all available remote plugins\nSame as `mise plugins ls-remote`"}, + {Key: FlagPluginsLsCore, Hide: true, Short: "The built-in plugins only", Long: "The built-in plugins only\nNormally these are not shown"}, + {Key: FlagPluginsLsOutdated, Short: "Show plugins with available updates", Long: "Show plugins with available updates\nChecks the remote for newer versions and only displays plugins that are outdated"}, + {Key: FlagPluginsLsUrls, Short: "Show the git url for each plugin", Long: "Show the git url for each plugin\ne.g.: https://github.com/mise-plugins/vfox-cmake.git"}, + {Key: FlagPluginsLsRefs, Hide: true, Short: "Show the git refs for each plugin", Long: "Show the git refs for each plugin\ne.g.: main 1234abc"}, + {Key: FlagPluginsLsUser, Hide: true, Short: "List installed plugins", Long: "List installed plugins"}, + {Key: CmdPluginsLsRemote, Short: "List all available remote plugins", Long: "\nList all available remote plugins\n\nThe full list is here: https://github.com/jdx/mise/blob/main/registry/\n\nExamples:\n\n $ mise plugins ls-remote\n"}, + {Key: FlagPluginsLsRemoteUrls, Short: "Show the git url for each plugin e.g.: https://github.com/mise-plugins/mise-poetry.git", Long: "Show the git url for each plugin e.g.: https://github.com/mise-plugins/mise-poetry.git"}, + {Key: FlagPluginsLsRemoteOnlyNames, Short: "Only show the name of each plugin by default it will show a \"*\" next to installed plugins", Long: "Only show the name of each plugin by default it will show a \"*\" next to installed plugins"}, + {Key: CmdPluginsUninstall, Short: "Removes a plugin"}, + {Key: FlagPluginsUninstallAll, Short: "Remove all plugins", Long: "Remove all plugins"}, + {Key: FlagPluginsUninstallPurge, Short: "Also remove the plugin's installs, downloads, and cache", Long: "Also remove the plugin's installs, downloads, and cache"}, + {Key: ArgPluginsUninstallPlugin, Short: "Plugin(s) to remove", Long: "Plugin(s) to remove"}, + {Key: CmdPluginsUpdate, Short: "Updates a plugin to the latest version", Long: "Updates a plugin to the latest version\n\nnote: this updates the plugin itself, not the runtime versions"}, + {Key: FlagPluginsUpdateJobs, ValueName: "JOBS", ValueDemanded: true, Short: "Number of jobs to run in parallel", Long: "Number of jobs to run in parallel\nDefault: 4"}, + {Key: ArgPluginsUpdatePlugin, Short: "Plugin(s) to update", Long: "Plugin(s) to update"}, + {Key: CmdDeps, Short: "[experimental] Manage project dependencies", Long: "[experimental] Manage project dependencies\n\nRuns all applicable dependency install steps for the current project.\nThis checks if dependency lockfiles are newer than installed outputs\n(e.g., package-lock.json vs node_modules/) and runs install commands\nif needed.\n\nProviders with `auto = true` are automatically invoked before `mise x` and `mise run`\nunless skipped with the --no-deps flag."}, + {Key: FlagDepsExplain, Short: "Show why a provider is fresh or stale (requires a provider argument)", Long: "Show why a provider is fresh or stale (requires a provider argument)"}, + {Key: FlagDepsForce, Short: "Force run all deps steps even if outputs are fresh", Long: "Force run all deps steps even if outputs are fresh"}, + {Key: FlagDepsDryRun, Short: "Only check if deps install is needed, don't run commands", Long: "Only check if deps install is needed, don't run commands"}, + {Key: FlagDepsList, Short: "Show what deps providers are available", Long: "Show what deps providers are available"}, + {Key: FlagDepsMonorepo, Short: "Install dependencies from every [monorepo].config_roots config root", Long: "Install dependencies from every [monorepo].config_roots config root\n\nRequires monorepo_root = true plus explicit [monorepo].config_roots in\nthe monorepo root config. Providers are named like //apps/api:uv."}, + {Key: FlagDepsOnly, Repeatable: true, ValueName: "ONLY", ValueDemanded: true, Short: "Run specific deps rule(s) only", Long: "Run specific deps rule(s) only"}, + {Key: FlagDepsSkip, Repeatable: true, ValueName: "SKIP", ValueDemanded: true, Short: "Skip specific deps rule(s)", Long: "Skip specific deps rule(s)"}, + {Key: ArgDepsProvider, Short: "Provider to operate on (runs only this provider, or use with --explain)", Long: "Provider to operate on (runs only this provider, or use with --explain)"}, + {Key: CmdDepsAdd, Short: "Add a dependency", Long: "Add a dependency\n\nAdds one or more packages to the project using the appropriate package manager.\nPackage specs use the format `ecosystem:package`, e.g., `npm:react` or `npm:@types/react@19`."}, + {Key: FlagDepsAddDev, Short: "Add as a development dependency", Long: "Add as a development dependency"}, + {Key: ArgDepsAddPackages, Demanded: true, Short: "Package(s) to add (e.g., npm:react, npm:@types/react@19)", Long: "Package(s) to add (e.g., npm:react, npm:@types/react@19)"}, + {Key: CmdDepsInstall, Short: "Install all project dependencies", Long: "Install all project dependencies\n\nChecks if dependency lockfiles are newer than installed outputs\nand runs install commands if needed."}, + {Key: FlagDepsInstallExplain, Short: "Show why a provider is fresh or stale (requires a provider argument)", Long: "Show why a provider is fresh or stale (requires a provider argument)"}, + {Key: FlagDepsInstallForce, Short: "Force run all deps steps even if outputs are fresh", Long: "Force run all deps steps even if outputs are fresh"}, + {Key: FlagDepsInstallDryRun, Short: "Only check if deps install is needed, don't run commands", Long: "Only check if deps install is needed, don't run commands"}, + {Key: FlagDepsInstallList, Short: "Show what deps providers are available", Long: "Show what deps providers are available"}, + {Key: FlagDepsInstallMonorepo, Short: "Install dependencies from every [monorepo].config_roots config root", Long: "Install dependencies from every [monorepo].config_roots config root\n\nRequires monorepo_root = true plus explicit [monorepo].config_roots in\nthe monorepo root config. Providers are named like //apps/api:uv."}, + {Key: FlagDepsInstallOnly, Repeatable: true, ValueName: "ONLY", ValueDemanded: true, Short: "Run specific deps rule(s) only", Long: "Run specific deps rule(s) only"}, + {Key: FlagDepsInstallSkip, Repeatable: true, ValueName: "SKIP", ValueDemanded: true, Short: "Skip specific deps rule(s)", Long: "Skip specific deps rule(s)"}, + {Key: ArgDepsInstallProvider, Short: "Provider to operate on (runs only this provider, or use with --explain)", Long: "Provider to operate on (runs only this provider, or use with --explain)"}, + {Key: CmdDepsRemove, Short: "Remove a dependency", Long: "Remove a dependency\n\nRemoves one or more packages from the project using the appropriate package manager.\nPackage specs use the format `ecosystem:package`, e.g., `npm:lodash`."}, + {Key: ArgDepsRemovePackages, Demanded: true, Short: "Package(s) to remove (e.g., npm:lodash)", Long: "Package(s) to remove (e.g., npm:lodash)"}, + {Key: CmdPrune, Short: "Delete unused versions of tools", Long: "Delete unused versions of tools\n\nmise tracks which config files have been used in ~/.local/state/mise/tracked-configs\nVersions which are no longer the latest specified in any of those configs are deleted.\nVersions installed only with environment variables `MISE__VERSION` will be deleted,\nas will versions only referenced on the command line `mise exec @`.\n\nTool stubs that have been executed are tracked in ~/.local/state/mise/tracked-stubs.\nVersions still referenced by a tracked stub are not deleted.\n\nYou can list prunable tools with `mise ls --prunable`"}, + {Key: FlagPruneDryRun, Short: "Do not actually delete anything", Long: "Do not actually delete anything"}, + {Key: FlagPruneConfigs, Short: "Prune only tracked and trusted configuration links that point to nonexistent configurations", Long: "Prune only tracked and trusted configuration links that point to nonexistent configurations"}, + {Key: FlagPruneDryRunCode, Short: "Like --dry-run but exits with code 1 if there are tools to prune", Long: "Like --dry-run but exits with code 1 if there are tools to prune\n\nThis is useful for scripts to check if tools need to be pruned."}, + {Key: FlagPruneMonorepo, Short: "Placeholder for future monorepo pruning; `mise prune --monorepo` is not implemented yet.", Long: "Placeholder for future monorepo pruning; `mise prune --monorepo` is not implemented yet."}, + {Key: FlagPruneTools, Short: "Prune only unused versions of tools", Long: "Prune only unused versions of tools"}, + {Key: ArgPruneInstalledTool, Short: "Prune only these tools", Long: "Prune only these tools"}, + {Key: CmdRegistry, Short: "List available tools to install", Long: "List available tools to install\n\nThis command lists the tools available in the registry as shorthand names.\n\nFor example, `poetry` is shorthand for `asdf:mise-plugins/mise-poetry`."}, + {Key: FlagRegistryBackend, ValueName: "BACKEND", ValueDemanded: true, Short: "Show only tools for this backend", Long: "Show only tools for this backend"}, + {Key: FlagRegistryComplete, Hide: true, Short: "Print all tools with descriptions for shell completions", Long: "Print all tools with descriptions for shell completions"}, + {Key: FlagRegistryHideAliased, Short: "Hide aliased tools", Long: "Hide aliased tools"}, + {Key: FlagRegistryJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagRegistrySecurity, Short: "Include security features for each tool's backends in JSON output", Long: "Include security features for each tool's backends in JSON output.\n\nRequires --json. Security info is de-duplicated across all of a tool's backends. This can add noticeable time for large listings since each backend's security info is resolved individually."}, + {Key: ArgRegistryName, Short: "Show only the specified tool's full name", Long: "Show only the specified tool's full name"}, + {Key: CmdRenderHelp, Hide: true, Short: "internal command to generate markdown from help"}, + {Key: CmdReshim, Short: "Creates new shims based on bin paths from currently installed tools.", Long: "Creates new shims based on bin paths from currently installed tools.\n\nThis creates new shims in ~/.local/share/mise/shims for CLIs that have been added.\nmise will try to do this automatically for commands like `npm i -g` but there are\nother ways to install things (like using yarn or pnpm for node) that mise does\nnot know about and so it will be necessary to call this explicitly.\n\nIf you think mise should automatically call this for a particular command, please\nopen an issue on the mise repo. You can also set up a shell function to reshim\nautomatically (it's really fast so you don't need to worry about overhead):\n\n npm() {\n command npm \"$@\"\n mise reshim\n }\n\nNote that this creates shims for _all_ installed tools, not just the ones that are\ncurrently active in mise.toml."}, + {Key: FlagReshimForce, Short: "Removes all shims before reshimming", Long: "Removes all shims before reshimming"}, + {Key: ArgReshimTool, Hide: true}, + {Key: ArgReshimVersion, Hide: true}, + {Key: CmdRun, Short: "Run task(s)", Long: "Run task(s)\n\nThis command will run a task, or multiple tasks in parallel.\nTasks may have dependencies on other tasks or on source files.\nIf source is configured on a task, it will only run if the source\nfiles have changed.\n\nTasks can be defined in mise.toml or as standalone scripts.\nIn mise.toml, tasks take this form:\n\n [tasks.build]\n run = \"npm run build\"\n sources = [\"src/**/*.ts\"]\n outputs = [\"dist/**/*.js\"]\n\nAlternatively, tasks can be defined as standalone scripts.\nThese must be located in `mise-tasks`, `.mise-tasks`, `.mise/tasks`, `mise/tasks` or\n`.config/mise/tasks`.\nThe name of the script will be the name of the tasks.\n\n $ cat .mise/tasks/build<` to create/modify environment-specific config files like `mise..toml`."}, + {Key: FlagSetEnv, ValueName: "ENV", ValueDemanded: true, Short: "Create/modify an environment-specific config file like .mise..toml", Long: "Create/modify an environment-specific config file like .mise..toml"}, + {Key: FlagSetGlobal, Short: "Set the environment variable in the global config file", Long: "Set the environment variable in the global config file"}, + {Key: FlagSetAgeEncrypt, Short: "[experimental] Encrypt the value with age before storing", Long: "[experimental] Encrypt the value with age before storing"}, + {Key: FlagSetAgeKeyFile, ValueName: "PATH", ValueDemanded: true, Short: "[experimental] Age identity file for encryption", Long: "[experimental] Age identity file for encryption\n\nDefaults to ~/.config/mise/age.txt if it exists"}, + {Key: FlagSetAgeRecipient, Repeatable: true, ValueName: "RECIPIENT", ValueDemanded: true, Short: "[experimental] Age recipient (x25519 public key) for encryption", Long: "[experimental] Age recipient (x25519 public key) for encryption\n\nCan be used multiple times. Requires --age-encrypt."}, + {Key: FlagSetAgeSshRecipient, Repeatable: true, ValueName: "PATH_OR_PUBKEY", ValueDemanded: true, Short: "[experimental] SSH recipient (public key or path) for age encryption", Long: "[experimental] SSH recipient (public key or path) for age encryption\n\nCan be used multiple times. Requires --age-encrypt."}, + {Key: FlagSetComplete, Hide: true, Short: "Render completions", Long: "Render completions"}, + {Key: FlagSetFile, ValueName: "FILE", ValueDemanded: true, Short: "The TOML file to update", Long: "The TOML file to update\n\nCan be a file path or directory. If a directory is provided, will create/use mise.toml in that directory.\nDefaults to [`MISE_DEFAULT_CONFIG_FILENAME`](https://mise.jdx.dev/configuration.html#mise_default_config_filename) environment variable, or `mise.toml`.\nUse [`MISE_GLOBAL_CONFIG_FILE`](https://mise.jdx.dev/configuration.html#mise_global_config_file) to choose a different global config path."}, + {Key: FlagSetNoRedact, Short: "Show raw values instead of redacting secrets", Long: "Show raw values instead of redacting secrets"}, + {Key: FlagSetPrompt, Short: "Prompt for environment variable values", Long: "Prompt for environment variable values"}, + {Key: FlagSetRemove, Hide: true, Repeatable: true, ValueName: "ENV_KEY", ValueDemanded: true, Short: "Remove the environment variable from config file", Long: "Remove the environment variable from config file\n\nCan be used multiple times."}, + {Key: FlagSetStdin, Short: "Read the value from stdin (for multiline input)", Long: "Read the value from stdin (for multiline input)\n\nWhen using --stdin, provide a single key without a value. The value will be read from stdin until EOF."}, + {Key: ArgSetEnvVar, Short: "Environment variable(s) to set", Long: "Environment variable(s) to set\ne.g.: NODE_ENV=production"}, + {Key: CmdSettings, Short: "Manage settings", Long: "Show current settings\n\nThis is the contents of ~/.config/mise/config.toml\n\nNote that aliases are also stored in this file\nbut managed separately with `mise tool-alias`"}, + {Key: FlagSettingsAll, Short: "List all settings", Long: "List all settings"}, + {Key: FlagSettingsJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagSettingsLocal, Short: "Use the local config file instead of the global one", Long: "Use the local config file instead of the global one"}, + {Key: FlagSettingsToml, Short: "Output in TOML format", Long: "Output in TOML format"}, + {Key: FlagSettingsComplete, Hide: true, Short: "Print all settings with descriptions for shell completions", Long: "Print all settings with descriptions for shell completions"}, + {Key: FlagSettingsJsonExtended, Short: "Output in JSON format with sources", Long: "Output in JSON format with sources"}, + {Key: ArgSettingsSetting, Short: "Name of setting", Long: "Name of setting"}, + {Key: ArgSettingsValue, Short: "Setting value to set", Long: "Setting value to set"}, + {Key: CmdSettingsAdd, Short: "Adds a setting to the configuration file", Long: "Adds a setting to the configuration file\n\nUsed with an array setting, this will append the value to the array.\nThis modifies the contents of ~/.config/mise/config.toml"}, + {Key: FlagSettingsAddLocal, Short: "Use the local config file instead of the global one", Long: "Use the local config file instead of the global one"}, + {Key: ArgSettingsAddSetting, Demanded: true, Short: "The setting to set", Long: "The setting to set"}, + {Key: ArgSettingsAddValue, Short: "The value to set (optional if provided as KEY=VALUE)", Long: "The value to set (optional if provided as KEY=VALUE)"}, + {Key: CmdSettingsGet, Short: "Show a current setting", Long: "Show a current setting\n\nThis is the contents of a single entry in ~/.config/mise/config.toml\n\nNote that aliases are also stored in this file\nbut managed separately with `mise tool-alias get`"}, + {Key: FlagSettingsGetLocal, Short: "Use the local config file instead of the global one", Long: "Use the local config file instead of the global one"}, + {Key: ArgSettingsGetSetting, Demanded: true, Short: "The setting to show", Long: "The setting to show"}, + {Key: CmdSettingsLs, Short: "Show current settings", Long: "Show current settings\n\nThis is the contents of ~/.config/mise/config.toml\n\nNote that aliases are also stored in this file\nbut managed separately with `mise tool-alias`"}, + {Key: FlagSettingsLsAll, Short: "List all settings", Long: "List all settings"}, + {Key: FlagSettingsLsJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagSettingsLsLocal, Short: "Use the local config file instead of the global one", Long: "Use the local config file instead of the global one"}, + {Key: FlagSettingsLsToml, Short: "Output in TOML format", Long: "Output in TOML format"}, + {Key: FlagSettingsLsComplete, Hide: true, Short: "Print all settings with descriptions for shell completions", Long: "Print all settings with descriptions for shell completions"}, + {Key: FlagSettingsLsJsonExtended, Short: "Output in JSON format with sources", Long: "Output in JSON format with sources"}, + {Key: ArgSettingsLsSetting, Short: "Name of setting", Long: "Name of setting"}, + {Key: CmdSettingsSet, Short: "Add/update a setting", Long: "Add/update a setting\n\nThis modifies the contents of ~/.config/mise/config.toml by default.\nWith `--local`, modifies the local config file instead.\nSee https://mise.jdx.dev/configuration.html#target-file-for-write-operations"}, + {Key: FlagSettingsSetLocal, Short: "Use the local config file instead of the global one", Long: "Use the local config file instead of the global one"}, + {Key: ArgSettingsSetSetting, Demanded: true, Short: "The setting to set", Long: "The setting to set"}, + {Key: ArgSettingsSetValue, Short: "The value to set (optional if provided as KEY=VALUE)", Long: "The value to set (optional if provided as KEY=VALUE)"}, + {Key: CmdSettingsUnset, Short: "Clears a setting", Long: "Clears a setting\n\nThis modifies the contents of ~/.config/mise/config.toml"}, + {Key: FlagSettingsUnsetLocal, Short: "Use the local config file instead of the global one", Long: "Use the local config file instead of the global one"}, + {Key: ArgSettingsUnsetKey, Demanded: true, Short: "The setting to remove", Long: "The setting to remove"}, + {Key: CmdShell, Short: "Sets a tool version for the current session.", Long: "Sets a tool version for the current session.\n\nOnly works in a session where mise is already activated.\n\nThis works by setting environment variables for the current shell session\nsuch as `MISE_NODE_VERSION=20` which is \"eval\"ed as a shell function created by `mise activate`."}, + {Key: FlagShellJobs, ValueName: "JOBS", ValueDemanded: true, Short: "Number of jobs to run in parallel", Long: "Number of jobs to run in parallel\n[default: 4]"}, + {Key: FlagShellUnset, Short: "Removes a previously set version", Long: "Removes a previously set version"}, + {Key: FlagShellRaw, Short: "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1", Long: "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1"}, + {Key: ArgShellToolVersion, Demanded: true, Short: "Tool(s) to use", Long: "Tool(s) to use"}, + {Key: CmdShellAlias, Short: "Manage shell aliases."}, + {Key: FlagShellAliasNoHeader, Short: "Don't show table header", Long: "Don't show table header"}, + {Key: CmdShellAliasGet, Short: "Show the command for a shell alias"}, + {Key: ArgShellAliasGetShellAlias, Demanded: true, Short: "The alias to show", Long: "The alias to show"}, + {Key: CmdShellAliasLs, Short: "List shell aliases", Long: "List shell aliases\n\nShows the shell aliases that are set in the current directory.\nThese are defined in `mise.toml` under the `[shell_alias]` section."}, + {Key: FlagShellAliasLsNoHeader, Short: "Don't show table header", Long: "Don't show table header"}, + {Key: CmdShellAliasSet, Short: "Add/update a shell alias", Long: "Add/update a shell alias\n\nThis modifies the contents of ~/.config/mise/config.toml"}, + {Key: ArgShellAliasSetShellAlias, Demanded: true, Short: "The alias name", Long: "The alias name"}, + {Key: ArgShellAliasSetCommand, Short: "The command to run (optional if provided as ALIAS=COMMAND)", Long: "The command to run (optional if provided as ALIAS=COMMAND)"}, + {Key: CmdShellAliasUnset, Short: "Removes a shell alias", Long: "Removes a shell alias\n\nThis modifies the contents of ~/.config/mise/config.toml"}, + {Key: ArgShellAliasUnsetShellAlias, Demanded: true, Short: "The alias to remove", Long: "The alias to remove"}, + {Key: CmdSponsors, Short: "Show the companies sponsoring mise and the jdx.dev open source tools"}, + {Key: CmdSync, Short: "Synchronize tools from other version managers with mise"}, + {Key: CmdSyncNode, Short: "Symlinks all tool versions from an external tool into mise", Long: "Symlinks all tool versions from an external tool into mise\n\nFor example, use this to import all Homebrew node installs into mise\n\nThis won't overwrite any existing installs but will overwrite any existing symlinks"}, + {Key: FlagSyncNodeBrew, Short: "Get tool versions from Homebrew", Long: "Get tool versions from Homebrew"}, + {Key: FlagSyncNodeNodenv, Short: "Get tool versions from nodenv", Long: "Get tool versions from nodenv"}, + {Key: FlagSyncNodeNvm, Short: "Get tool versions from nvm", Long: "Get tool versions from nvm"}, + {Key: CmdSyncPython, Short: "Symlinks all tool versions from an external tool into mise", Long: "Symlinks all tool versions from an external tool into mise\n\nFor example, use this to import all pyenv installs into mise\n\nThis won't overwrite any existing installs but will overwrite any existing symlinks"}, + {Key: FlagSyncPythonPyenv, Short: "Get tool versions from pyenv", Long: "Get tool versions from pyenv"}, + {Key: FlagSyncPythonUv, Short: "Sync tool versions with uv (2-way sync)", Long: "Sync tool versions with uv (2-way sync)"}, + {Key: CmdSyncRuby, Short: "Symlinks all ruby tool versions from an external tool into mise"}, + {Key: FlagSyncRubyBrew, Short: "Get tool versions from Homebrew", Long: "Get tool versions from Homebrew"}, + {Key: CmdTasks, Short: "Manage tasks"}, + {Key: FlagTasksGlobal, Short: "Only show global tasks", Long: "Only show global tasks"}, + {Key: FlagTasksJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagTasksLocal, Short: "Only show non-global tasks", Long: "Only show non-global tasks"}, + {Key: FlagTasksExtended, Short: "Show all columns", Long: "Show all columns"}, + {Key: FlagTasksAll, Short: "Load all tasks from the entire monorepo, including sibling directories.", Long: "Load all tasks from the entire monorepo, including sibling directories.\nBy default, only tasks from the current directory hierarchy are loaded."}, + {Key: FlagTasksComplete, Hide: true, Short: "Display tasks for usage completion", Long: "Display tasks for usage completion"}, + {Key: FlagTasksHidden, Short: "Show hidden tasks", Long: "Show hidden tasks"}, + {Key: FlagTasksNameOnly, Short: "Only show task names, one per line. Useful for piping to fzf and similar tools.", Long: "Only show task names, one per line. Useful for piping to fzf and similar tools."}, + {Key: FlagTasksNoHeader, Short: "Do not print table header", Long: "Do not print table header"}, + {Key: FlagTasksSort, ValueName: "COLUMN", ValueDemanded: true, Short: "Sort by column. Default is name.", Long: "Sort by column. Default is name."}, + {Key: FlagTasksSortOrder, ValueName: "SORT_ORDER", ValueDemanded: true, Short: "Sort order. Default is asc.", Long: "Sort order. Default is asc."}, + {Key: FlagTasksUsage, Hide: true}, + {Key: ArgTasksTask, Short: "Task name to get info of", Long: "Task name to get info of"}, + {Key: CmdTasksAdd, Short: "Create a new task", Long: "Create a new task\n\nAdds a task to the local mise.toml file.\nSee https://mise.jdx.dev/configuration.html#target-file-for-write-operations"}, + {Key: FlagTasksAddAlias, Repeatable: true, ValueName: "ALIAS", ValueDemanded: true, Short: "Other names for the task", Long: "Other names for the task"}, + {Key: FlagTasksAddDepends, Repeatable: true, ValueName: "DEPENDS", ValueDemanded: true, Short: "Add dependencies to the task", Long: "Add dependencies to the task"}, + {Key: FlagTasksAddDir, ValueName: "DIR", ValueDemanded: true, Short: "Run the task in a specific directory", Long: "Run the task in a specific directory"}, + {Key: FlagTasksAddFile, Short: "Create a file task instead of a toml task", Long: "Create a file task instead of a toml task"}, + {Key: FlagTasksAddHide, Short: "Hide the task from `mise tasks` and completions", Long: "Hide the task from `mise tasks` and completions"}, + {Key: FlagTasksAddQuiet, Short: "Do not print the command before running", Long: "Do not print the command before running"}, + {Key: FlagTasksAddRaw, Short: "Directly connect stdin/stdout/stderr", Long: "Directly connect stdin/stdout/stderr"}, + {Key: FlagTasksAddSources, Repeatable: true, ValueName: "SOURCES", ValueDemanded: true, Short: "Glob patterns of files this task uses as input", Long: "Glob patterns of files this task uses as input"}, + {Key: FlagTasksAddWaitFor, Repeatable: true, ValueName: "WAIT_FOR", ValueDemanded: true, Short: "Wait for these tasks to complete if they are to run", Long: "Wait for these tasks to complete if they are to run"}, + {Key: FlagTasksAddDependsPost, Repeatable: true, ValueName: "DEPENDS_POST", ValueDemanded: true, Short: "Dependencies to run after the task runs", Long: "Dependencies to run after the task runs"}, + {Key: FlagTasksAddDescription, ValueName: "DESCRIPTION", ValueDemanded: true, Short: "Description of the task", Long: "Description of the task"}, + {Key: FlagTasksAddOutputs, Repeatable: true, ValueName: "OUTPUTS", ValueDemanded: true, Short: "Glob patterns of files this task creates, to skip if they are not modified", Long: "Glob patterns of files this task creates, to skip if they are not modified"}, + {Key: FlagTasksAddRunWindows, ValueName: "RUN_WINDOWS", ValueDemanded: true, Short: "Command to run on windows", Long: "Command to run on windows"}, + {Key: FlagTasksAddShell, ValueName: "SHELL", ValueDemanded: true, Short: "Run the task in a specific shell", Long: "Run the task in a specific shell"}, + {Key: FlagTasksAddSilent, Short: "Do not print the command or its output", Long: "Do not print the command or its output"}, + {Key: ArgTasksAddTask, Demanded: true, Short: "Tasks name to add", Long: "Tasks name to add"}, + {Key: ArgTasksAddRun}, + {Key: CmdTasksDeps, Short: "Display a tree visualization of a dependency graph"}, + {Key: FlagTasksDepsCompact, Short: "Collapse repeated dependencies after their first occurrence", Long: "Collapse repeated dependencies after their first occurrence"}, + {Key: FlagTasksDepsDot, Short: "Display dependencies in DOT format", Long: "Display dependencies in DOT format"}, + {Key: FlagTasksDepsHidden, Short: "Show hidden tasks", Long: "Show hidden tasks"}, + {Key: ArgTasksDepsTasks, Short: "Tasks to show dependencies for", Long: "Tasks to show dependencies for\nCan specify multiple tasks by separating with spaces\ne.g.: mise tasks deps lint test check"}, + {Key: CmdTasksEdit, Short: "Edit a task with $EDITOR", Long: "Edit a task with $EDITOR\n\nThe task will be created as a standalone script if it does not already exist."}, + {Key: FlagTasksEditPath, Short: "Display the path to the task instead of editing it", Long: "Display the path to the task instead of editing it"}, + {Key: ArgTasksEditTask, Demanded: true, Short: "Task to edit", Long: "Task to edit"}, + {Key: CmdTasksGraph, Short: "[experimental] Inspect the workspace project graph"}, + {Key: FlagTasksGraphJson, Short: "Output the project graph as JSON", Long: "Output the project graph as JSON"}, + {Key: FlagTasksGraphExplain, Short: "Explain provider attribution for inferred projects and tasks", Long: "Explain provider attribution for inferred projects and tasks"}, + {Key: FlagTasksGraphNoHeader, Short: "Do not print table headers", Long: "Do not print table headers"}, + {Key: CmdTasksInfo, Short: "Get information about a task"}, + {Key: FlagTasksInfoJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: ArgTasksInfoTask, Demanded: true, Short: "Name of the task to get information about", Long: "Name of the task to get information about"}, + {Key: CmdTasksLs, Short: "List available tasks to execute\nThese may be included from the config file or from the project's .mise/tasks directory\nmise will merge all tasks from all parent directories into this list.", Long: "List available tasks to execute\nThese may be included from the config file or from the project's .mise/tasks directory\nmise will merge all tasks from all parent directories into this list.\n\nSo if you have global tasks in `~/.config/mise/tasks/*` and project-specific tasks in\n~/myproject/.mise/tasks/*, then they'll both be available but the project-specific\ntasks will override the global ones if they have the same name."}, + {Key: FlagTasksLsGlobal, Short: "Only show global tasks", Long: "Only show global tasks"}, + {Key: FlagTasksLsJson, Short: "Output in JSON format", Long: "Output in JSON format"}, + {Key: FlagTasksLsLocal, Short: "Only show non-global tasks", Long: "Only show non-global tasks"}, + {Key: FlagTasksLsExtended, Short: "Show all columns", Long: "Show all columns"}, + {Key: FlagTasksLsAll, Short: "Load all tasks from the entire monorepo, including sibling directories.", Long: "Load all tasks from the entire monorepo, including sibling directories.\nBy default, only tasks from the current directory hierarchy are loaded."}, + {Key: FlagTasksLsComplete, Hide: true, Short: "Display tasks for usage completion", Long: "Display tasks for usage completion"}, + {Key: FlagTasksLsHidden, Short: "Show hidden tasks", Long: "Show hidden tasks"}, + {Key: FlagTasksLsNameOnly, Short: "Only show task names, one per line. Useful for piping to fzf and similar tools.", Long: "Only show task names, one per line. Useful for piping to fzf and similar tools."}, + {Key: FlagTasksLsNoHeader, Short: "Do not print table header", Long: "Do not print table header"}, + {Key: FlagTasksLsSort, ValueName: "COLUMN", ValueDemanded: true, Short: "Sort by column. Default is name.", Long: "Sort by column. Default is name."}, + {Key: FlagTasksLsSortOrder, ValueName: "SORT_ORDER", ValueDemanded: true, Short: "Sort order. Default is asc.", Long: "Sort order. Default is asc."}, + {Key: FlagTasksLsUsage, Hide: true}, + {Key: CmdTasksRun, Short: "Run task(s)", Long: "Run task(s)\n\nThis command will run a task, or multiple tasks in parallel.\nTasks may have dependencies on other tasks or on source files.\nIf source is configured on a task, it will only run if the source\nfiles have changed.\n\nTasks can be defined in mise.toml or as standalone scripts.\nIn mise.toml, tasks take this form:\n\n [tasks.build]\n run = \"npm run build\"\n sources = [\"src/**/*.ts\"]\n outputs = [\"dist/**/*.js\"]\n\nAlternatively, tasks can be defined as standalone scripts.\nThese must be located in `mise-tasks`, `.mise-tasks`, `.mise/tasks`, `mise/tasks` or\n`.config/mise/tasks`.\nThe name of the script will be the name of the tasks.\n\n $ cat .mise/tasks/build<