// Code generated by `xtask gen-shadow benches/mise.usage.kdl <out> cobra`. DO NOT EDIT.
//
// mise declared in cobra, from the same spec the usage tables are generated from, so
// that the two rows of `go/README.md`'s table describe the same CLI. Regenerate with
// `mise run gen-shadow` rather than editing: a hand-edit here is a difference no
// reviewer can see, in a program whose whole job is to be comparable.
//
// The tree is built inside the loop on purpose. That is what cobra does on every
// process start — a `&cobra.Command` per subcommand, each with its own flag set — and
// it is the cost the comparison is about. Hoisting it out would measure a parser
// against a program that had already paid for its model.
package main

import (
	"fmt"
	"os"
	"strconv"

	"github.com/spf13/cobra"
)

// build declares the whole CLI, as a cobra program's `init` or `main` would.
func build() *cobra.Command {
	root := &cobra.Command{Use: "mise", Run: func(*cobra.Command, []string) {}}
	root.Flags().BoolP("continue-on-error", "c", false, "Continue running tasks even if one fails")
	_ = root.Flags().MarkHidden("continue-on-error")
	root.PersistentFlags().StringP("cd", "C", "", "Change directory before running command")
	root.PersistentFlags().StringArrayP("env", "E", nil, "Set the environment for loading `mise.<ENV>.toml`")
	root.Flags().BoolP("force", "f", false, "Force the operation")
	_ = root.Flags().MarkHidden("force")
	root.PersistentFlags().StringP("jobs", "j", "", "How many jobs to run in parallel; values below 1 are treated as 1 [default: 8]")
	root.Flags().BoolP("dry-run", "n", false, "Dry run, don't actually do anything")
	_ = root.Flags().MarkHidden("dry-run")
	root.PersistentFlags().StringArrayP("profile", "P", nil, "Set the profile (environment)")
	_ = root.PersistentFlags().MarkHidden("profile")
	root.PersistentFlags().BoolP("quiet", "q", false, "Suppress non-error messages")
	root.Flags().StringP("shell", "s", "", "")
	_ = root.Flags().MarkHidden("shell")
	root.Flags().StringArrayP("tool", "t", nil, "Tool(s) to run in addition to what is in mise.toml files e.g.: node@20 python@3.10")
	_ = root.Flags().MarkHidden("tool")
	root.PersistentFlags().CountP("verbose", "v", "Show extra output (use -vv for even more)")
	root.Flags().BoolP("version", "V", false, "")
	_ = root.Flags().MarkHidden("version")
	root.PersistentFlags().BoolP("yes", "y", false, "Answer yes to all confirmation prompts")
	root.PersistentFlags().Bool("debug", false, "Sets log level to debug")
	_ = root.PersistentFlags().MarkHidden("debug")
	root.PersistentFlags().String("log-level", "", "")
	_ = root.PersistentFlags().MarkHidden("log-level")
	root.Flags().Bool("no-config", false, "Do not load any config files")
	root.Flags().Bool("no-env", false, "Do not load environment variables from config files")
	root.Flags().Bool("no-hooks", false, "Do not execute hooks from config files")
	root.Flags().Bool("no-timings", false, "Hides elapsed time after each task completes")
	_ = root.Flags().MarkHidden("no-timings")
	root.Flags().String("output", "", "")
	root.PersistentFlags().Bool("raw", false, "Read/write directly to stdin/stdout/stderr instead of by line")
	root.PersistentFlags().Bool("locked", false, "Require lockfile URLs to be present during installation")
	root.PersistentFlags().Bool("silent", false, "Suppress all task output and mise non-error messages")
	root.Flags().Bool("timings", false, "Shows elapsed time after each task completes")
	_ = root.Flags().MarkHidden("timings")
	root.PersistentFlags().Bool("trace", false, "Sets log level to trace")
	_ = root.PersistentFlags().MarkHidden("trace")
	cmd1 := &cobra.Command{Use: "activate", 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. Otherwise, it will only take effect in the current session. (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 specify the full path like this:\n\n    echo 'eval \"$(/path/to/mise activate zsh)\"' >> ~/.zshrc\n\nCustomize status output with `status` settings.", Run: func(*cobra.Command, []string) {}}
	cmd1.Flags().BoolP("quiet", "q", false, "Suppress non-error messages")
	cmd1.Flags().StringP("shell", "s", "", "Shell type to generate the script for")
	_ = cmd1.Flags().MarkHidden("shell")
	cmd1.Flags().Bool("no-hook-env", false, "Do not automatically call hook-env")
	cmd1.Flags().Bool("shims", false, "Use shims instead of modifying PATH\nEffectively the same as:")
	cmd1.Flags().Bool("status", false, "Show \"mise: <TOOL>@<VERSION>\" message when changing directories")
	_ = cmd1.Flags().MarkHidden("status")
	root.AddCommand(cmd1)
	cmd2 := &cobra.Command{Use: "tool-alias", Short: "Manage tool version aliases.", Aliases: []string{"alias", "aliases"}, Run: func(*cobra.Command, []string) {}}
	cmd2.Flags().StringP("tool", "p", "", "Filter aliases by tool")
	cmd2.Flags().Bool("no-header", false, "Don't show table header")
	cmd3 := &cobra.Command{Use: "get", Short: "Show an alias for a tool", Long: "Show an alias for a tool\n\nThis is the contents of a tool_alias.<TOOL> entry in ~/.config/mise/config.toml", Run: func(*cobra.Command, []string) {}}
	cmd2.AddCommand(cmd3)
	cmd4 := &cobra.Command{Use: "ls", 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\"", Aliases: []string{"list"}, Run: func(*cobra.Command, []string) {}}
	cmd4.Flags().Bool("no-header", false, "Don't show table header")
	cmd2.AddCommand(cmd4)
	cmd5 := &cobra.Command{Use: "set", 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", Aliases: []string{"add", "create"}, Run: func(*cobra.Command, []string) {}}
	cmd2.AddCommand(cmd5)
	cmd6 := &cobra.Command{Use: "unset", 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", Aliases: []string{"rm", "remove", "delete", "del"}, Run: func(*cobra.Command, []string) {}}
	cmd2.AddCommand(cmd6)
	root.AddCommand(cmd2)
	cmd7 := &cobra.Command{Use: "asdf", Short: "[internal] simulates asdf for plugins that call \"asdf\" internally", Hidden: true, Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd7)
	cmd8 := &cobra.Command{Use: "backends", Short: "Manage backends", Aliases: []string{"b", "backend", "backend-list"}, Run: func(*cobra.Command, []string) {}}
	cmd9 := &cobra.Command{Use: "ls", Short: "List built-in backends", Aliases: []string{"list"}, Run: func(*cobra.Command, []string) {}}
	cmd8.AddCommand(cmd9)
	root.AddCommand(cmd8)
	cmd10 := &cobra.Command{Use: "bin-paths", Short: "List all the active runtime bin paths", Run: func(*cobra.Command, []string) {}}
	cmd10.Flags().Bool("bin-names", false, "Output executable names instead of bin directories")
	cmd10.Flags().BoolP("json", "J", false, "Output executable entries in JSON format (implies --bin-names)")
	root.AddCommand(cmd10)
	cmd11 := &cobra.Command{Use: "bootstrap", 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]` 3. `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 16. `[bootstrap.hooks.final]` — optional final hook\n\nThe declarative steps converge — anything already in its desired state is skipped, so re-running is safe. The `bootstrap` task runs on every invocation; keep it idempotent. Use it for any project-specific setup that doesn't fit the declarative sections (seeding databases, auth flows, etc.) — it runs with the installed tools on PATH.\n\nUse `--skip <part>` to skip named parts, or `--only <part>` to run just named parts. Both flags can be repeated or comma-separated, but they cannot be used together.", Aliases: []string{"bs"}, Run: func(*cobra.Command, []string) {}}
	cmd11.Flags().BoolP("dry-run", "n", false, "Print what would happen without installing anything")
	cmd11.Flags().BoolP("yes", "y", false, "Skip confirmation prompts")
	cmd11.Flags().Bool("force-dotfiles", false, "Overwrite existing files that conflict with whole-file dotfile entries")
	cmd11.Flags().StringArray("only", nil, "Run only one or more bootstrap parts")
	cmd11.Flags().Bool("prompt-secrets", false, "Prompt securely for missing bootstrap secret inputs")
	cmd11.Flags().StringArray("skip", nil, "Skip one or more bootstrap parts")
	cmd11.Flags().Bool("update", false, "Refresh package manager metadata and update configured repos")
	cmd12 := &cobra.Command{Use: "__apply-account-plan", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd11.AddCommand(cmd12)
	cmd13 := &cobra.Command{Use: "__apply-service-plan", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd11.AddCommand(cmd13)
	cmd14 := &cobra.Command{Use: "__apply-firewall-plan", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd11.AddCommand(cmd14)
	cmd15 := &cobra.Command{Use: "__apply-system-plan", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd11.AddCommand(cmd15)
	cmd16 := &cobra.Command{Use: "__inspect-system-files", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd11.AddCommand(cmd16)
	cmd17 := &cobra.Command{Use: "__inspect-firewall-plan", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd11.AddCommand(cmd17)
	cmd18 := &cobra.Command{Use: "accounts", Short: "Manage Linux users and groups from `[bootstrap.users]` and `[bootstrap.groups]`", Run: func(*cobra.Command, []string) {}}
	cmd19 := &cobra.Command{Use: "apply", Short: "Apply configured Linux users and groups", Run: func(*cobra.Command, []string) {}}
	cmd19.Flags().BoolP("dry-run", "n", false, "Print what would change without changing anything")
	cmd19.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd18.AddCommand(cmd19)
	cmd20 := &cobra.Command{Use: "status", Short: "Show configured Linux user and group state", Run: func(*cobra.Command, []string) {}}
	cmd20.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd20.Flags().Bool("missing", false, "Exit with code 1 when any account is not converged")
	cmd18.AddCommand(cmd20)
	cmd11.AddCommand(cmd18)
	cmd21 := &cobra.Command{Use: "compose", Short: "Manage Docker Compose projects from `[bootstrap.compose]`", Run: func(*cobra.Command, []string) {}}
	cmd22 := &cobra.Command{Use: "apply", Short: "Apply configured Docker Compose project state", Run: func(*cobra.Command, []string) {}}
	cmd22.Flags().BoolP("dry-run", "n", false, "Print what would change without changing anything")
	cmd22.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd21.AddCommand(cmd22)
	cmd23 := &cobra.Command{Use: "status", Short: "Show configured Docker Compose project state", Run: func(*cobra.Command, []string) {}}
	cmd23.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd23.Flags().Bool("missing", false, "Exit with code 1 when any Compose project is not converged")
	cmd21.AddCommand(cmd23)
	cmd11.AddCommand(cmd21)
	cmd24 := &cobra.Command{Use: "dotfiles", Short: "Manage dotfiles from `[dotfiles]`", Run: func(*cobra.Command, []string) {}}
	cmd25 := &cobra.Command{Use: "add", 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 target. Otherwise it creates a `[dotfiles]` entry and seeds the source under `dotfiles.root` unless `--source` is provided.", Run: func(*cobra.Command, []string) {}}
	cmd25.Flags().BoolP("force", "f", false, "Overwrite existing sources without prompting")
	cmd25.Flags().BoolP("global", "g", false, "Write to the global config")
	cmd25.Flags().BoolP("local", "l", false, "Write to the local config instead of the global config")
	cmd25.Flags().StringP("mode", "m", "", "Dotfile mode to write")
	cmd25.Flags().BoolP("dry-run", "n", false, "Print the config/source updates without writing anything")
	cmd25.Flags().Bool("no-apply", false, "Add the entry without applying it")
	cmd25.Flags().StringP("path", "p", "", "Write to this config file or directory")
	cmd25.Flags().StringP("source", "s", "", "Source path to use for a single target")
	cmd25.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd24.AddCommand(cmd25)
	cmd26 := &cobra.Command{Use: "apply", Short: "Apply dotfiles from `[dotfiles]`", Long: "Apply dotfiles from `[dotfiles]`\n\nApplies configured whole-file entries and edits that aren't in their desired state. Whole-file entries may symlink, copy, or render templates. Edit entries manage a marker-delimited block or a single line in a file mise doesn't otherwise own.", Run: func(*cobra.Command, []string) {}}
	cmd26.Flags().BoolP("force", "f", false, "Overwrite existing files that conflict with whole-file dotfile entries")
	cmd26.Flags().BoolP("dry-run", "n", false, "Print the actions that would run without writing anything")
	cmd26.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd24.AddCommand(cmd26)
	cmd27 := &cobra.Command{Use: "edit", Short: "Edit a managed dotfile source", Run: func(*cobra.Command, []string) {}}
	cmd27.Flags().Bool("apply", false, "Apply this target after the editor exits")
	cmd27.Flags().StringP("mode", "m", "", "Dotfile mode to use if the target is not yet managed")
	cmd27.Flags().StringP("source", "s", "", "Source path to use if the target is not yet managed")
	cmd27.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt when adding an unmanaged target")
	cmd24.AddCommand(cmd27)
	cmd28 := &cobra.Command{Use: "status", Short: "Show the status of dotfiles from `[dotfiles]`", Run: func(*cobra.Command, []string) {}}
	cmd28.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd28.Flags().Bool("missing", false, "Exit with code 1 if any configured dotfiles are not in their desired\nstate (missing, source missing, differs)")
	cmd24.AddCommand(cmd28)
	cmd29 := &cobra.Command{Use: "unapply", Short: "Remove dotfiles applied from `[dotfiles]`", Long: "Remove dotfiles applied from `[dotfiles]`\n\nRemoves configured whole-file entries and edits while preserving files mise cannot identify as managed. Modified copies, templates, and plain-line edits require `--force`.", Run: func(*cobra.Command, []string) {}}
	cmd29.Flags().BoolP("force", "f", false, "Remove modified or otherwise ambiguous managed files and lines")
	cmd29.Flags().BoolP("dry-run", "n", false, "Print the actions that would run without writing anything")
	cmd29.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd24.AddCommand(cmd29)
	cmd11.AddCommand(cmd24)
	cmd30 := &cobra.Command{Use: "files", Short: "Manage privileged files and directories from `[bootstrap.files]` and `[bootstrap.directories]`", Run: func(*cobra.Command, []string) {}}
	cmd31 := &cobra.Command{Use: "apply", Short: "Apply configured privileged files and directories", Run: func(*cobra.Command, []string) {}}
	cmd31.Flags().BoolP("dry-run", "n", false, "Print what would change without changing anything")
	cmd31.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd31.Flags().Bool("prompt-secrets", false, "Prompt securely for missing bootstrap secret inputs")
	cmd30.AddCommand(cmd31)
	cmd32 := &cobra.Command{Use: "status", Short: "Show configured privileged file and directory state", Run: func(*cobra.Command, []string) {}}
	cmd32.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd32.Flags().Bool("missing", false, "Exit with code 1 when any resource is not converged")
	cmd32.Flags().Bool("prompt-secrets", false, "Prompt securely for missing bootstrap secret inputs")
	cmd30.AddCommand(cmd32)
	cmd11.AddCommand(cmd30)
	cmd33 := &cobra.Command{Use: "firewall", Short: "Manage the Linux host firewall from `[bootstrap.linux.firewall]`", Run: func(*cobra.Command, []string) {}}
	cmd34 := &cobra.Command{Use: "apply", Short: "Apply the configured Linux host firewall", Run: func(*cobra.Command, []string) {}}
	cmd34.Flags().BoolP("dry-run", "n", false, "Print what would change without changing anything")
	cmd34.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd33.AddCommand(cmd34)
	cmd35 := &cobra.Command{Use: "status", Short: "Show configured Linux host firewall state", Run: func(*cobra.Command, []string) {}}
	cmd35.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd35.Flags().Bool("missing", false, "Exit with code 1 when the firewall is not converged")
	cmd33.AddCommand(cmd35)
	cmd11.AddCommand(cmd33)
	cmd36 := &cobra.Command{Use: "launchd", Short: "Manage macOS LaunchAgents from `[bootstrap.macos.launchd.agents]`", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd37 := &cobra.Command{Use: "apply", Run: func(*cobra.Command, []string) {}}
	cmd37.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd37.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd36.AddCommand(cmd37)
	cmd38 := &cobra.Command{Use: "status", Run: func(*cobra.Command, []string) {}}
	cmd38.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd38.Flags().Bool("missing", false, "Exit with code 1 if any configured LaunchAgent is not in its desired state")
	cmd36.AddCommand(cmd38)
	cmd11.AddCommand(cmd36)
	cmd39 := &cobra.Command{Use: "linux", Short: "Manage Linux bootstrap config from `[bootstrap.linux]`", Run: func(*cobra.Command, []string) {}}
	cmd40 := &cobra.Command{Use: "systemd-units", Short: "Manage systemd user services from `[bootstrap.linux.systemd.units]`", Aliases: []string{"systemd"}, Run: func(*cobra.Command, []string) {}}
	cmd41 := &cobra.Command{Use: "apply", Run: func(*cobra.Command, []string) {}}
	cmd41.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd41.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd40.AddCommand(cmd41)
	cmd42 := &cobra.Command{Use: "status", Run: func(*cobra.Command, []string) {}}
	cmd42.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd42.Flags().Bool("missing", false, "Exit with code 1 if any configured systemd user service is not in its desired state")
	cmd40.AddCommand(cmd42)
	cmd39.AddCommand(cmd40)
	cmd11.AddCommand(cmd39)
	cmd43 := &cobra.Command{Use: "macos", Short: "Manage macOS bootstrap config from `[bootstrap.macos]`", Run: func(*cobra.Command, []string) {}}
	cmd44 := &cobra.Command{Use: "defaults", Short: "Manage macOS defaults from `[bootstrap.macos.defaults]`", Run: func(*cobra.Command, []string) {}}
	cmd45 := &cobra.Command{Use: "apply", Run: func(*cobra.Command, []string) {}}
	cmd45.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd45.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd44.AddCommand(cmd45)
	cmd46 := &cobra.Command{Use: "status", Run: func(*cobra.Command, []string) {}}
	cmd46.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd46.Flags().Bool("missing", false, "Exit with code 1 if any configured defaults are not in their desired state")
	cmd44.AddCommand(cmd46)
	cmd43.AddCommand(cmd44)
	cmd47 := &cobra.Command{Use: "launchd-agents", Short: "Manage macOS LaunchAgents from `[bootstrap.macos.launchd.agents]`", Aliases: []string{"launchd"}, Run: func(*cobra.Command, []string) {}}
	cmd48 := &cobra.Command{Use: "apply", Run: func(*cobra.Command, []string) {}}
	cmd48.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd48.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd47.AddCommand(cmd48)
	cmd49 := &cobra.Command{Use: "status", Run: func(*cobra.Command, []string) {}}
	cmd49.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd49.Flags().Bool("missing", false, "Exit with code 1 if any configured LaunchAgent is not in its desired state")
	cmd47.AddCommand(cmd49)
	cmd43.AddCommand(cmd47)
	cmd11.AddCommand(cmd43)
	cmd50 := &cobra.Command{Use: "macos-defaults", Short: "Manage macOS defaults from `[bootstrap.macos.defaults]`", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd51 := &cobra.Command{Use: "apply", Run: func(*cobra.Command, []string) {}}
	cmd51.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd51.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd50.AddCommand(cmd51)
	cmd52 := &cobra.Command{Use: "status", Run: func(*cobra.Command, []string) {}}
	cmd52.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd52.Flags().Bool("missing", false, "Exit with code 1 if any configured defaults are not in their desired state")
	cmd50.AddCommand(cmd52)
	cmd11.AddCommand(cmd50)
	cmd53 := &cobra.Command{Use: "mise-shell-activate", Short: "Manage mise shell activation from `[bootstrap.mise_shell_activate]`", Aliases: []string{"shell"}, Run: func(*cobra.Command, []string) {}}
	cmd54 := &cobra.Command{Use: "apply", Run: func(*cobra.Command, []string) {}}
	cmd54.Flags().BoolP("dry-run", "n", false, "Print the actions that would run without writing anything")
	cmd54.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd53.AddCommand(cmd54)
	cmd55 := &cobra.Command{Use: "status", Run: func(*cobra.Command, []string) {}}
	cmd55.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd55.Flags().Bool("missing", false, "Exit with code 1 if any configured shell activation is not in its desired state")
	cmd53.AddCommand(cmd55)
	cmd11.AddCommand(cmd53)
	cmd56 := &cobra.Command{Use: "packages", Short: "Manage bootstrap system packages from `[bootstrap.packages]`", Run: func(*cobra.Command, []string) {}}
	cmd57 := &cobra.Command{Use: "apply", 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 system package manager. Built-in system managers may elevate with sudo when not running as root (see `system_packages.sudo`); package plugins never do.\n\nPackages can also be given explicitly in `manager:package` form (e.g. `apk:zlib-dev`, `apt:curl`, `brew:jq`); they are installed whether or not they appear in the config. Explicit packages and `--manager` scope the run to packages only. `install` is accepted as an alias for this command.", Aliases: []string{"i", "install"}, Run: func(*cobra.Command, []string) {}}
	cmd57.Flags().StringP("manager", "m", "", "Only install packages for this built-in or plugin manager")
	cmd57.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd57.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd57.Flags().Bool("update", false, "Refresh package manager metadata first (apk: `--update-cache`, apt: `apt-get update`)")
	cmd56.AddCommand(cmd57)
	cmd58 := &cobra.Command{Use: "brew", 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 can be fetched directly by mise without a Homebrew installation.", Run: func(*cobra.Command, []string) {}}
	cmd59 := &cobra.Command{Use: "tap", Short: "Add a Homebrew tap URL to [bootstrap.brew.taps]", Run: func(*cobra.Command, []string) {}}
	cmd59.Flags().BoolP("local", "l", false, "Write to the local config instead of the global config")
	cmd59.Flags().BoolP("dry-run", "n", false, "Print the config change without writing it")
	cmd59.Flags().StringP("path", "p", "", "Write to this config file or directory")
	cmd58.AddCommand(cmd59)
	cmd60 := &cobra.Command{Use: "untap", Short: "Remove Homebrew tap URLs from [bootstrap.brew.taps]", Aliases: []string{"remove", "rm"}, Run: func(*cobra.Command, []string) {}}
	cmd60.Flags().BoolP("local", "l", false, "Write to the local config instead of the global config")
	cmd60.Flags().BoolP("dry-run", "n", false, "Print the config change without writing it")
	cmd60.Flags().StringP("path", "p", "", "Write to this config file or directory")
	cmd58.AddCommand(cmd60)
	cmd56.AddCommand(cmd58)
	cmd61 := &cobra.Command{Use: "import", 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 formulae whose active keg receipt says they were installed on request. Pass `--all` to import every linked formula, including dependencies.", Run: func(*cobra.Command, []string) {}}
	cmd61.Flags().StringP("env", "e", "", "Write to the config file for this environment (mise.<ENV>.toml)")
	cmd61.Flags().BoolP("global", "g", false, "Write to the global config (~/.config/mise/config.toml)")
	cmd61.Flags().StringP("manager", "m", "brew", "Only import packages for this manager. Currently only `brew` is supported.")
	cmd61.Flags().Bool("all", false, "Import every linked formula, including dependencies")
	cmd61.Flags().BoolP("dry-run", "n", false, "Print the config change without writing config")
	cmd61.Flags().StringP("path", "p", "", "Write to this config file or directory")
	cmd56.AddCommand(cmd61)
	cmd62 := &cobra.Command{Use: "prune", Short: "Prune installed system packages no longer declared in `[bootstrap.packages]`", Long: "Prune installed system packages no longer declared in `[bootstrap.packages]`\n\nSupports Homebrew formulae and conservatively removable, mise-owned casks. Pruning keeps packages needed by the current config or by trusted, loadable tracked configs.", Run: func(*cobra.Command, []string) {}}
	cmd62.Flags().StringP("manager", "m", "brew", "Only prune packages for this manager")
	cmd62.Flags().BoolP("dry-run", "n", false, "Print what would be removed without deleting anything")
	cmd62.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd56.AddCommand(cmd62)
	cmd63 := &cobra.Command{Use: "status", Short: "Show the status of system packages from `[bootstrap.packages]`", Aliases: []string{"ls"}, Run: func(*cobra.Command, []string) {}}
	cmd63.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd63.Flags().Bool("missing", false, "Exit with code 1 if any configured packages are not in their desired state")
	cmd56.AddCommand(cmd63)
	cmd64 := &cobra.Command{Use: "upgrade", 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 that are already installed: apk/apt/dnf/pacman upgrade to the newest available version (apk, apt, and dnf honor a version pinned in config), brew pours the formula's current bottle and replaces the old keg, brew-cask installs the current cask artifact, flatpak and flatpak-user update applications and runtimes, and mas upgrades App Store apps. Packages that are not installed yet are skipped — use `mise bootstrap packages apply` for those.\n\nPackages can also be given explicitly in `manager:package` form.", Aliases: []string{"up"}, Run: func(*cobra.Command, []string) {}}
	cmd64.Flags().StringP("manager", "m", "", "Only upgrade packages for this built-in or plugin manager")
	cmd64.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd64.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd56.AddCommand(cmd64)
	cmd65 := &cobra.Command{Use: "use", 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 to mise.toml (the local config by default, the global one with `-g`) and then installs whatever is missing.\n\nVersions are pinned with `@`: `mise bootstrap packages use apt:curl@8.5.0-2`. Without `@` (or with `@latest`) no pin is written. brew formulae and casks version through their names instead (for example `brew:postgresql@17`, `brew-cask:temurin@17`), where `@` is part of the Homebrew name rather than a mise version selector. mas uses numeric ADAM IDs and does not support pins.", Aliases: []string{"u"}, Run: func(*cobra.Command, []string) {}}
	cmd65.Flags().StringP("env", "e", "", "Write to the config file for this environment (mise.<ENV>.toml)")
	cmd65.Flags().BoolP("global", "g", false, "Write to the global config (~/.config/mise/config.toml) instead of the local one")
	cmd65.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without writing config or installing")
	cmd65.Flags().StringP("path", "p", "", "Write to this config file or directory")
	cmd65.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd56.AddCommand(cmd65)
	cmd11.AddCommand(cmd56)
	cmd66 := &cobra.Command{Use: "plan", Short: "Show the changes declarative bootstrap resources would make", Run: func(*cobra.Command, []string) {}}
	cmd66.Flags().BoolP("json", "J", false, "Output a stable machine-readable plan in JSON format")
	cmd66.Flags().Bool("detailed-exitcode", false, "Exit 2 when the plan contains changes, 0 when unchanged, and 1 on errors")
	cmd66.Flags().Bool("prompt-secrets", false, "Prompt securely for missing bootstrap secret inputs")
	cmd11.AddCommand(cmd66)
	cmd67 := &cobra.Command{Use: "plugins", Short: "Manage package manager plugins declared in `[bootstrap.plugins]`", Run: func(*cobra.Command, []string) {}}
	cmd68 := &cobra.Command{Use: "apply", Run: func(*cobra.Command, []string) {}}
	cmd68.Flags().BoolP("dry-run", "n", false, "Print what would happen without installing plugins")
	cmd67.AddCommand(cmd68)
	cmd69 := &cobra.Command{Use: "status", Run: func(*cobra.Command, []string) {}}
	cmd69.Flags().Bool("missing", false, "Exit with code 1 if a declared plugin is missing")
	cmd67.AddCommand(cmd69)
	cmd11.AddCommand(cmd67)
	cmd70 := &cobra.Command{Use: "remote", Short: "Bootstrap one or more machines over OpenSSH", Run: func(*cobra.Command, []string) {}}
	cmd70.Flags().Bool("all", false, "Select every configured inventory host")
	cmd70.Flags().String("bootstrap-command", "", "Explicit remote shell command that installs mise and places it on PATH")
	cmd70.Flags().String("connect-timeout", "10", "SSH connection timeout in seconds")
	cmd70.Flags().StringArray("copy-link", nil, "Dereference one source-relative symbolic link; repeat for multiple links")
	cmd70.Flags().Bool("copy-links", false, "Dereference every symbolic link in the source archive")
	cmd70.Flags().StringArray("exclude", nil, "Additional archive pattern to exclude; repeat for multiple patterns")
	cmd70.Flags().Bool("fail-fast", false, "Stop after the first failed target")
	cmd70.Flags().Bool("force-dotfiles", false, "Allow remote dotfile conflicts to be replaced")
	cmd70.Flags().StringArray("host", nil, "Ad-hoc SSH destination (`[user@]host`); repeat for multiple hosts")
	cmd70.Flags().StringP("identity-file", "i", "", "SSH identity file override")
	cmd70.Flags().BoolP("dry-run", "n", false, "Print the remote bootstrap changes without applying them")
	cmd70.Flags().Bool("keep-staging", false, "Keep the remote staging directory for debugging")
	cmd70.Flags().String("mise-bin", "", "Local mise binary to upload (escape hatch for custom architectures)")
	cmd70.Flags().StringArray("only", nil, "Run only one or more remote bootstrap parts")
	cmd70.Flags().String("port", "", "SSH port override")
	cmd70.Flags().Bool("prompt-secrets", false, "Prompt securely for missing secret inputs on the remote host")
	cmd70.Flags().StringArray("remote-env", nil, "Config environments to load on the remote host; repeat or delimit with commas (for example, ci,dotfiles)")
	cmd70.Flags().String("remote-mise", "", "Existing mise executable name or path; relative paths use the staged project")
	cmd70.Flags().StringArray("skip", nil, "Skip one or more remote bootstrap parts")
	cmd70.Flags().String("source", "", "Local directory archived and sent to each target")
	cmd70.Flags().StringArray("ssh-option", nil, "OpenSSH `-o` option; repeat for multiple options")
	cmd70.Flags().StringArray("tag", nil, "Select configured hosts with this tag; repeat to match any tag")
	cmd70.Flags().Bool("update", false, "Refresh package manager metadata and update configured repos remotely")
	cmd70.Flags().BoolP("yes", "y", false, "Skip remote confirmation prompts")
	cmd11.AddCommand(cmd70)
	cmd71 := &cobra.Command{Use: "repos", Short: "Manage git repo checkouts from `[bootstrap.repos]`", Run: func(*cobra.Command, []string) {}}
	cmd72 := &cobra.Command{Use: "apply", Run: func(*cobra.Command, []string) {}}
	cmd72.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd72.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd71.AddCommand(cmd72)
	cmd73 := &cobra.Command{Use: "exec", Run: func(*cobra.Command, []string) {}}
	cmd73.Flags().BoolP("continue-on-error", "c", false, "Continue running in other repos after a command fails")
	cmd73.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd71.AddCommand(cmd73)
	cmd74 := &cobra.Command{Use: "status", Run: func(*cobra.Command, []string) {}}
	cmd74.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd74.Flags().Bool("missing", false, "Exit with code 1 if any configured repo is not in its desired state")
	cmd71.AddCommand(cmd74)
	cmd75 := &cobra.Command{Use: "update", Run: func(*cobra.Command, []string) {}}
	cmd75.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd75.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd71.AddCommand(cmd75)
	cmd11.AddCommand(cmd71)
	cmd76 := &cobra.Command{Use: "secrets", Short: "Inspect bootstrap secret inputs without revealing their values", Run: func(*cobra.Command, []string) {}}
	cmd77 := &cobra.Command{Use: "status", Short: "Show whether declared bootstrap secret inputs are available", Run: func(*cobra.Command, []string) {}}
	cmd77.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd77.Flags().Bool("missing", false, "Exit with code 1 if a declared secret input is unavailable")
	cmd76.AddCommand(cmd77)
	cmd11.AddCommand(cmd76)
	cmd78 := &cobra.Command{Use: "services", Short: "Manage Linux system services from `[bootstrap.services]`", Run: func(*cobra.Command, []string) {}}
	cmd79 := &cobra.Command{Use: "apply", Short: "Apply configured Linux system service state", Run: func(*cobra.Command, []string) {}}
	cmd79.Flags().BoolP("dry-run", "n", false, "Print what would change without changing anything")
	cmd79.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd78.AddCommand(cmd79)
	cmd80 := &cobra.Command{Use: "status", Short: "Show configured Linux system service state", Run: func(*cobra.Command, []string) {}}
	cmd80.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd80.Flags().Bool("missing", false, "Exit with code 1 when any service is not converged")
	cmd78.AddCommand(cmd80)
	cmd11.AddCommand(cmd78)
	cmd81 := &cobra.Command{Use: "status", Short: "Show the aggregate bootstrap status", Aliases: []string{"ls"}, Run: func(*cobra.Command, []string) {}}
	cmd81.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd81.Flags().Bool("missing", false, "Exit with code 1 if any configured bootstrap state is not in its desired state")
	cmd81.Flags().Bool("prompt-secrets", false, "Prompt securely for missing bootstrap secret inputs")
	cmd11.AddCommand(cmd81)
	cmd82 := &cobra.Command{Use: "systemd", Short: "Manage systemd user services from `[bootstrap.linux.systemd.units]`", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd83 := &cobra.Command{Use: "apply", Run: func(*cobra.Command, []string) {}}
	cmd83.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd83.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd82.AddCommand(cmd83)
	cmd84 := &cobra.Command{Use: "status", Run: func(*cobra.Command, []string) {}}
	cmd84.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd84.Flags().Bool("missing", false, "Exit with code 1 if any configured systemd user service is not in its desired state")
	cmd82.AddCommand(cmd84)
	cmd11.AddCommand(cmd82)
	cmd85 := &cobra.Command{Use: "user", Short: "Manage current-user bootstrap settings from `[bootstrap.user]`", Run: func(*cobra.Command, []string) {}}
	cmd86 := &cobra.Command{Use: "apply", Run: func(*cobra.Command, []string) {}}
	cmd86.Flags().BoolP("dry-run", "n", false, "Print the commands that would run without running them")
	cmd86.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd85.AddCommand(cmd86)
	cmd87 := &cobra.Command{Use: "status", Run: func(*cobra.Command, []string) {}}
	cmd87.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd87.Flags().Bool("missing", false, "Exit with code 1 if any configured user setting is not in its desired state")
	cmd85.AddCommand(cmd87)
	cmd11.AddCommand(cmd85)
	root.AddCommand(cmd11)
	cmd88 := &cobra.Command{Use: "cache", Short: "Manage the mise cache", Long: "Manage the mise cache\n\nRun `mise cache` with no args to view the current cache directory.", Run: func(*cobra.Command, []string) {}}
	cmd89 := &cobra.Command{Use: "clear", Short: "Deletes all cache files in mise", Aliases: []string{"c", "clean"}, Run: func(*cobra.Command, []string) {}}
	cmd89.Flags().Bool("outdate", false, "Mark all cache files as old")
	_ = cmd89.Flags().MarkHidden("outdate")
	cmd89.Flags().String("task", "", "Clear output cache entries for a task name or pattern")
	cmd88.AddCommand(cmd89)
	cmd90 := &cobra.Command{Use: "path", Short: "Show the cache directory path", Aliases: []string{"dir"}, Run: func(*cobra.Command, []string) {}}
	cmd88.AddCommand(cmd90)
	cmd91 := &cobra.Command{Use: "prune", 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. Change this with the MISE_CACHE_PRUNE_AGE environment variable.", Aliases: []string{"p"}, Run: func(*cobra.Command, []string) {}}
	cmd91.Flags().CountP("verbose", "v", "Show pruned files")
	cmd91.Flags().Bool("dry-run", false, "Just show what would be pruned")
	cmd88.AddCommand(cmd91)
	cmd92 := &cobra.Command{Use: "task", Short: "Inspect output cache entries for a task", Run: func(*cobra.Command, []string) {}}
	cmd92.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd88.AddCommand(cmd92)
	root.AddCommand(cmd88)
	cmd93 := &cobra.Command{Use: "completion", Short: "Generate shell completions", Aliases: []string{"complete", "completions"}, Run: func(*cobra.Command, []string) {}}
	cmd93.Flags().StringP("shell", "s", "", "Shell type to generate completions for")
	_ = cmd93.Flags().MarkHidden("shell")
	cmd93.Flags().Bool("include-bash-completion-lib", false, "Include the bash completion library in the bash completion script")
	cmd93.Flags().Bool("usage", false, "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.")
	_ = cmd93.Flags().MarkHidden("usage")
	root.AddCommand(cmd93)
	cmd94 := &cobra.Command{Use: "config", Short: "Manage config files", Aliases: []string{"cfg", "toml"}, Run: func(*cobra.Command, []string) {}}
	cmd94.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd94.Flags().Bool("no-header", false, "Do not print table header")
	cmd94.Flags().Bool("tracked-configs", false, "List all tracked config files")
	cmd95 := &cobra.Command{Use: "get", Short: "Display the value of a setting in a mise.toml file", Run: func(*cobra.Command, []string) {}}
	cmd95.Flags().StringP("file", "f", "", "The path to the mise.toml file to read")
	cmd94.AddCommand(cmd95)
	cmd96 := &cobra.Command{Use: "ls", Short: "List config files currently in use", Aliases: []string{"list"}, Run: func(*cobra.Command, []string) {}}
	cmd96.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd96.Flags().Bool("no-header", false, "Do not print table header")
	cmd96.Flags().Bool("tracked-configs", false, "List all tracked config files")
	cmd94.AddCommand(cmd96)
	cmd97 := &cobra.Command{Use: "set", Short: "Set the value of a setting in a mise.toml file", Run: func(*cobra.Command, []string) {}}
	cmd97.Flags().StringP("file", "f", "", "The path to the mise.toml file to edit")
	cmd97.Flags().StringP("type", "t", "infer", "")
	cmd94.AddCommand(cmd97)
	root.AddCommand(cmd94)
	cmd98 := &cobra.Command{Use: "current", 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 and/or version. It's designed to fit into scripts more easily.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd98)
	cmd99 := &cobra.Command{Use: "deactivate", 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.", Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd99)
	cmd100 := &cobra.Command{Use: "direnv", 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, you should run this command after installing new plugins. Otherwise direnv may not know to update environment variables when idiomatic file versions change.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd101 := &cobra.Command{Use: "activate", 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, you should run this command after installing new plugins. Otherwise direnv may not know to update environment variables when idiomatic file versions change.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd100.AddCommand(cmd101)
	cmd102 := &cobra.Command{Use: "envrc", Short: "[internal] This is an internal command that writes an envrc file\nfor direnv to consume.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd100.AddCommand(cmd102)
	cmd103 := &cobra.Command{Use: "exec", Short: "[internal] This is an internal command that writes an envrc file\nfor direnv to consume.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd100.AddCommand(cmd103)
	root.AddCommand(cmd100)
	cmd104 := &cobra.Command{Use: "dotfiles", Short: "Manage dotfiles from `[dotfiles]` (deprecated)", Long: "Manage dotfiles from `[dotfiles]` (deprecated)\n\nUse `mise bootstrap dotfiles` instead.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd105 := &cobra.Command{Use: "add", 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 target. Otherwise it creates a `[dotfiles]` entry and seeds the source under `dotfiles.root` unless `--source` is provided.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd105.Flags().BoolP("force", "f", false, "Overwrite existing sources without prompting")
	cmd105.Flags().BoolP("global", "g", false, "Write to the global config")
	cmd105.Flags().BoolP("local", "l", false, "Write to the local config instead of the global config")
	cmd105.Flags().StringP("mode", "m", "", "Dotfile mode to write")
	cmd105.Flags().BoolP("dry-run", "n", false, "Print the config/source updates without writing anything")
	cmd105.Flags().Bool("no-apply", false, "Add the entry without applying it")
	cmd105.Flags().StringP("path", "p", "", "Write to this config file or directory")
	cmd105.Flags().StringP("source", "s", "", "Source path to use for a single target")
	cmd105.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd104.AddCommand(cmd105)
	cmd106 := &cobra.Command{Use: "apply", Short: "Apply dotfiles from `[dotfiles]`", Long: "Apply dotfiles from `[dotfiles]`\n\nApplies configured whole-file entries and edits that aren't in their desired state. Whole-file entries may symlink, copy, or render templates. Edit entries manage a marker-delimited block or a single line in a file mise doesn't otherwise own.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd106.Flags().BoolP("force", "f", false, "Overwrite existing files that conflict with whole-file dotfile entries")
	cmd106.Flags().BoolP("dry-run", "n", false, "Print the actions that would run without writing anything")
	cmd106.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd104.AddCommand(cmd106)
	cmd107 := &cobra.Command{Use: "edit", Short: "Edit a managed dotfile source", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd107.Flags().Bool("apply", false, "Apply this target after the editor exits")
	cmd107.Flags().StringP("mode", "m", "", "Dotfile mode to use if the target is not yet managed")
	cmd107.Flags().StringP("source", "s", "", "Source path to use if the target is not yet managed")
	cmd107.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt when adding an unmanaged target")
	cmd104.AddCommand(cmd107)
	cmd108 := &cobra.Command{Use: "status", Short: "Show the status of dotfiles from `[dotfiles]`", Aliases: []string{"ls"}, Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd108.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd108.Flags().Bool("missing", false, "Exit with code 1 if any configured dotfiles are not in their desired\nstate (missing, source missing, differs)")
	cmd104.AddCommand(cmd108)
	cmd109 := &cobra.Command{Use: "unapply", Short: "Remove dotfiles applied from `[dotfiles]`", Long: "Remove dotfiles applied from `[dotfiles]`\n\nRemoves configured whole-file entries and edits while preserving files mise cannot identify as managed. Modified copies, templates, and plain-line edits require `--force`.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd109.Flags().BoolP("force", "f", false, "Remove modified or otherwise ambiguous managed files and lines")
	cmd109.Flags().BoolP("dry-run", "n", false, "Print the actions that would run without writing anything")
	cmd109.Flags().BoolP("yes", "y", false, "Skip the confirmation prompt")
	cmd104.AddCommand(cmd109)
	root.AddCommand(cmd104)
	cmd110 := &cobra.Command{Use: "doctor", Short: "Check mise installation for possible problems", Aliases: []string{"dr"}, Run: func(*cobra.Command, []string) {}}
	cmd110.Flags().BoolP("json", "J", false, "")
	cmd111 := &cobra.Command{Use: "path", Short: "Print the current PATH entries mise is providing", Aliases: []string{"paths"}, Run: func(*cobra.Command, []string) {}}
	cmd111.Flags().BoolP("full", "f", false, "Print all entries including those not provided by mise")
	cmd110.AddCommand(cmd111)
	root.AddCommand(cmd110)
	cmd112 := &cobra.Command{Use: "en", 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. It will have the tools and environment variables in the configs loaded. Note that changing directories will not update the mise environment.", Run: func(*cobra.Command, []string) {}}
	cmd112.Flags().StringP("shell", "s", "", "Shell to start")
	root.AddCommand(cmd112)
	cmd113 := &cobra.Command{Use: "env", 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 use this if you have `mise activate` in your shell rc file.", Aliases: []string{"e"}, Run: func(*cobra.Command, []string) {}}
	cmd113.Flags().BoolP("dotenv", "D", false, "Output in dotenv format")
	cmd113.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd113.Flags().StringP("shell", "s", "", "Shell type to generate environment variables for")
	cmd113.Flags().Bool("json-extended", false, "Output in JSON format with additional information (source, tool)")
	cmd113.Flags().Bool("redacted", false, "Only show redacted environment variables")
	cmd113.Flags().Bool("values", false, "Only show values of environment variables")
	root.AddCommand(cmd113)
	cmd114 := &cobra.Command{Use: "exec", 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 <RUNTIME> args Note that only the plugin specified will be overridden, so if a `mise.toml` file includes \"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.", Aliases: []string{"x"}, Run: func(*cobra.Command, []string) {}}
	cmd114.Flags().StringP("command", "c", "", "Command string to execute")
	cmd114.Flags().StringP("jobs", "j", "", "Number of jobs to run in parallel\nValues below 1 are treated as 1\n[default: 4]")
	cmd114.Flags().StringArray("allow-env", nil, "Allow specific env var through (implies --deny-env for everything else)\nSupports wildcards, e.g. --allow-env='MYAPP_*'")
	cmd114.Flags().StringArray("allow-net", nil, "Allow network to specific host (implies --deny-net for everything else)\nmacOS only in v1; on Linux falls back to allowing all network")
	cmd114.Flags().StringArray("allow-read", nil, "Allow reads from specific path (implies --deny-read for everything else)")
	cmd114.Flags().StringArray("allow-write", nil, "Allow writes to specific path (implies --deny-write for everything else)")
	cmd114.Flags().Bool("deny-all", false, "Block reads, writes, network, and env vars")
	cmd114.Flags().Bool("deny-env", false, "Block env var inheritance (only PATH, HOME, USER, SHELL, TERM, LANG pass through)")
	cmd114.Flags().Bool("deny-net", false, "Block all network access")
	cmd114.Flags().Bool("deny-read", false, "Block filesystem reads (system libs and tool dirs still accessible)")
	cmd114.Flags().Bool("deny-write", false, "Block all filesystem writes")
	cmd114.Flags().Bool("fresh-env", false, "Bypass the environment cache and recompute the environment")
	cmd114.Flags().Bool("no-deps", false, "Skip automatic dependency preparation")
	cmd114.Flags().Bool("raw", false, "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1")
	root.AddCommand(cmd114)
	cmd115 := &cobra.Command{Use: "fmt", Short: "Formats mise.toml", Long: "Formats mise.toml\n\nSorts keys and cleans up whitespace in mise.toml", Run: func(*cobra.Command, []string) {}}
	cmd115.Flags().BoolP("all", "a", false, "Format all files from the current directory")
	cmd115.Flags().BoolP("check", "c", false, "Check if the configs are formatted, no formatting is done")
	cmd115.Flags().BoolP("stdin", "s", false, "Read config from stdin and write its formatted version into stdout")
	root.AddCommand(cmd115)
	cmd116 := &cobra.Command{Use: "generate", Short: "Generate files for various tools/services", Aliases: []string{"gen", "g"}, Run: func(*cobra.Command, []string) {}}
	cmd117 := &cobra.Command{Use: "bootstrap", 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.", Run: func(*cobra.Command, []string) {}}
	cmd117.Flags().BoolP("localize", "l", false, "Sandboxes mise internal directories like MISE_DATA_DIR and MISE_CACHE_DIR into a `.mise` directory in the project")
	cmd117.Flags().StringP("version", "V", "", "Specify mise version to fetch")
	cmd117.Flags().StringP("write", "w", "", "instead of outputting the script to stdout, write to a file and make it executable")
	cmd117.Flags().String("localized-dir", ".mise", "Directory to put localized data into")
	cmd117.Flags().Bool("windows", false, "Also write a Windows launcher, `<WRITE>.cmd`")
	cmd116.AddCommand(cmd117)
	cmd118 := &cobra.Command{Use: "config", Short: "Generate a mise.toml file", Run: func(*cobra.Command, []string) {}}
	cmd118.Flags().BoolP("global", "g", false, "Generate the global config file (~/.config/mise/config.toml)")
	cmd118.Flags().BoolP("dry-run", "n", false, "Show what would be generated without writing to file")
	cmd118.Flags().StringP("tool-versions", "t", "", "Path to a .tool-versions file to import tools from")
	cmd116.AddCommand(cmd118)
	cmd119 := &cobra.Command{Use: "devcontainer", Short: "Generate a devcontainer to execute mise", Run: func(*cobra.Command, []string) {}}
	cmd119.Flags().StringP("image", "i", "", "The image to use for the devcontainer")
	cmd119.Flags().BoolP("mount-mise-data", "m", false, "Bind the mise-data-volume to the devcontainer")
	cmd119.Flags().StringP("name", "n", "", "The name of the devcontainer")
	cmd119.Flags().BoolP("write", "w", false, "write to .devcontainer/devcontainer.json")
	cmd116.AddCommand(cmd119)
	cmd120 := &cobra.Command{Use: "git-pre-commit", 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` when 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/", Aliases: []string{"pre-commit"}, Run: func(*cobra.Command, []string) {}}
	cmd120.Flags().StringP("task", "t", "pre-commit", "The task to run when the pre-commit hook is triggered")
	cmd120.Flags().BoolP("write", "w", false, "write to .git/hooks/pre-commit and make it executable")
	cmd120.Flags().String("hook", "pre-commit", "Which hook to generate (saves to .git/hooks/$hook)")
	cmd116.AddCommand(cmd120)
	cmd121 := &cobra.Command{Use: "github-action", 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` when you push changes to your repository.", Run: func(*cobra.Command, []string) {}}
	cmd121.Flags().StringP("task", "t", "ci", "The task to run when the workflow is triggered")
	cmd121.Flags().BoolP("write", "w", false, "write to .github/workflows/$name.yml")
	cmd121.Flags().String("name", "ci", "the name of the workflow to generate")
	cmd116.AddCommand(cmd121)
	cmd122 := &cobra.Command{Use: "task-docs", Short: "Generate documentation for tasks in a project", Run: func(*cobra.Command, []string) {}}
	cmd122.Flags().BoolP("inject", "i", false, "inserts the documentation into an existing file")
	cmd122.Flags().BoolP("index", "I", false, "write only an index of tasks, intended for use with `--multi`")
	cmd122.Flags().BoolP("multi", "m", false, "render each task as a separate document, requires `--output` to be a directory")
	cmd122.Flags().StringP("output", "o", "", "writes the generated docs to a file/directory")
	cmd122.Flags().StringP("root", "r", "", "root directory to search for tasks")
	cmd122.Flags().StringP("style", "s", "simple", "")
	cmd116.AddCommand(cmd122)
	cmd123 := &cobra.Command{Use: "task-stubs", Short: "Generates shims to run mise tasks", Long: "Generates shims to run mise tasks\n\nBy default, this will build shims like ./bin/<task>. These can be paired with `mise generate bootstrap` so contributors to a project can execute mise tasks without installing mise into their system. When a parent and nested task both exist, the parent stub is written to `<parent>/_default`.", Run: func(*cobra.Command, []string) {}}
	cmd123.Flags().StringP("dir", "d", "bin", "Directory to create task stubs inside of")
	cmd123.Flags().StringP("mise-bin", "m", "mise", "Path to a mise bin to use when running the task stub.")
	cmd116.AddCommand(cmd123)
	cmd124 := &cobra.Command{Use: "tool-stub", 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 tools from HTTP URLs. It can detect checksums, file sizes, and binary paths automatically by downloading and analyzing the tool.\n\nWhen generating stubs with platform-specific URLs, the command will append new platforms to existing stub files rather than overwriting them. This allows you to incrementally build cross-platform tool stubs.", Run: func(*cobra.Command, []string) {}}
	cmd124.Flags().StringP("bin", "b", "", "Binary path within the extracted archive")
	cmd124.Flags().Bool("bootstrap", false, "Wrap stub in a bootstrap script that installs mise if not already present")
	cmd124.Flags().String("bootstrap-version", "", "Specify mise version for the bootstrap script")
	cmd124.Flags().String("checksum-algorithm", "blake3", "Checksum algorithm to use when downloading artifacts")
	cmd124.Flags().Bool("fetch", false, "Fetch checksums and sizes for an existing tool stub file")
	cmd124.Flags().String("http", "http", "HTTP backend type to use")
	cmd124.Flags().Bool("lock", false, "Resolve and embed lockfile data (exact version + platform URLs/checksums) into an existing stub file for reproducible installs without runtime API calls")
	cmd124.Flags().StringArray("platform-bin", nil, "Platform-specific binary paths in the format platform:path")
	cmd124.Flags().StringArray("platform-url", nil, "Platform-specific URLs in the format platform:url or just url (auto-detect platform)")
	cmd124.Flags().Bool("skip-download", false, "Skip downloading for checksum and binary path detection (faster but less informative)")
	cmd124.Flags().StringP("url", "u", "", "URL for downloading the tool")
	cmd124.Flags().String("version", "latest", "Version of the tool")
	cmd116.AddCommand(cmd124)
	root.AddCommand(cmd116)
	cmd125 := &cobra.Command{Use: "github", Short: "GitHub related commands", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd126 := &cobra.Command{Use: "token", 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 authentication issues. The token is masked by default.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd126.Flags().Bool("oauth", false, "Force native GitHub OAuth device flow instead of normal token resolution")
	cmd126.Flags().Bool("raw", false, "Print only the token value")
	cmd126.Flags().Bool("refresh", false, "Mint a fresh OAuth token even if the cached one has not expired, via the refresh-token grant or a new device-code flow")
	cmd126.Flags().Bool("unmask", false, "Show the full unmasked token")
	cmd125.AddCommand(cmd126)
	root.AddCommand(cmd125)
	cmd127 := &cobra.Command{Use: "global", 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. The file is `$HOME/.config/mise/config.toml` by default. It can be changed with `$MISE_GLOBAL_CONFIG_FILE`. If `$MISE_GLOBAL_CONFIG_FILE` is set to anything that ends in `.toml`, it will be parsed as `mise.toml`. Otherwise, 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.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd127.Flags().Bool("fuzzy", false, "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")
	cmd127.Flags().Bool("path", false, "Get the path of the global config file")
	cmd127.Flags().Bool("pin", false, "Save exact version to `~/.tool-versions`\ne.g.: `mise global --pin node@20` will save `node 20.0.0` to ~/.tool-versions")
	cmd127.Flags().StringArray("remove", nil, "Remove the tool(s) from ~/.tool-versions")
	root.AddCommand(cmd127)
	cmd128 := &cobra.Command{Use: "hook-env", Short: "[internal] called by activate hook to update env vars directory change", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd128.Flags().BoolP("force", "f", false, "Skip early exit check")
	cmd128.Flags().BoolP("quiet", "q", false, "Hide warnings such as when a tool is not installed")
	cmd128.Flags().StringP("shell", "s", "", "Shell type to generate script for")
	cmd128.Flags().String("reason", "", "Reason for calling hook-env (e.g., \"precmd\", \"chpwd\")")
	_ = cmd128.Flags().MarkHidden("reason")
	cmd128.Flags().Bool("status", false, "Show \"mise: <TOOL>@<VERSION>\" message when changing directories")
	_ = cmd128.Flags().MarkHidden("status")
	root.AddCommand(cmd128)
	cmd129 := &cobra.Command{Use: "hook-not-found", Short: "[internal] called by shell when a command is not found", Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd129.Flags().StringP("shell", "s", "", "Shell type to generate script for")
	root.AddCommand(cmd129)
	cmd130 := &cobra.Command{Use: "implode", Short: "Removes mise CLI and all related data", Long: "Removes mise CLI and all related data\n\nSkips config directory by default.", Run: func(*cobra.Command, []string) {}}
	cmd130.Flags().BoolP("dry-run", "n", false, "List directories that would be removed without actually removing them")
	cmd130.Flags().Bool("config", false, "Also remove config directory")
	root.AddCommand(cmd130)
	cmd131 := &cobra.Command{Use: "edit", Short: "Edit mise.toml interactively", Run: func(*cobra.Command, []string) {}}
	cmd131.Flags().BoolP("global", "g", false, "Edit the global config file (~/.config/mise/config.toml)")
	cmd131.Flags().BoolP("dry-run", "n", false, "Show what would be generated without writing to file")
	cmd131.Flags().StringP("tool-versions", "t", "", "Path to a .tool-versions file to import tools from")
	root.AddCommand(cmd131)
	cmd132 := &cobra.Command{Use: "install", Short: "Install a tool version", Long: "Install a tool version\n\nInstalls a tool version to `~/.local/share/mise/installs/<TOOL>/<VERSION>` Installing alone will not activate the tools so they won't be in PATH. To install and/or activate in one command, use `mise use` which will create a `mise.toml` file in the current directory to activate this tool when inside the directory. Alternatively, run `mise exec <TOOL>@<VERSION> -- <COMMAND>` to execute a tool without creating config files.\n\nTools will be installed in parallel. To disable, set `--jobs=1` or `MISE_JOBS=1`", Aliases: []string{"i"}, Run: func(*cobra.Command, []string) {}}
	cmd132.Flags().BoolP("force", "f", false, "Force reinstall even if already installed\nWith no tools specified, reinstall all configured tools")
	cmd132.Flags().StringP("jobs", "j", "", "Number of jobs to run in parallel\nValues below 1 are treated as 1\n[default: 4]")
	cmd132.Flags().BoolP("dry-run", "n", false, "Show what would be installed without actually installing")
	cmd132.Flags().CountP("verbose", "v", "Show installation output")
	cmd132.Flags().Bool("dry-run-code", false, "Like --dry-run but exits with code 1 if there are tools to install")
	cmd132.Flags().Bool("include-task-tools", false, "Also install tools required by tasks in the current scope")
	cmd132.Flags().String("minimum-release-age", "", "Only install versions released before this date or older than this duration")
	cmd132.Flags().Bool("monorepo", false, "Install tools from every [monorepo].config_roots config root")
	cmd132.Flags().Bool("raw", false, "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1")
	cmd132.Flags().String("shared", "", "Install tool(s) to a shared directory")
	cmd132.Flags().Bool("system", false, "Install tool(s) to the system-wide shared directory")
	root.AddCommand(cmd132)
	cmd133 := &cobra.Command{Use: "install-into", 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", Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd133)
	cmd134 := &cobra.Command{Use: "latest", 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.", Run: func(*cobra.Command, []string) {}}
	cmd134.Flags().BoolP("installed", "i", false, "Show latest installed instead of available version")
	cmd134.Flags().String("minimum-release-age", "", "Only consider versions released before this date or older than this duration")
	root.AddCommand(cmd134)
	cmd135 := &cobra.Command{Use: "link", 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.", Aliases: []string{"ln"}, Run: func(*cobra.Command, []string) {}}
	cmd135.Flags().BoolP("force", "f", false, "Overwrite an existing tool version if it exists")
	root.AddCommand(cmd135)
	cmd136 := &cobra.Command{Use: "local", 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 Use `mise global` to set a tool version globally This uses `.tool-version` by default unless there is a `mise.toml` file or if `MISE_USE_TOML` is set. A future v2 release of mise will default to using `mise.toml`.", Aliases: []string{"l"}, Hidden: true, Run: func(*cobra.Command, []string) {}}
	cmd136.Flags().BoolP("parent", "p", false, "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\")")
	cmd136.Flags().Bool("fuzzy", false, "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")
	cmd136.Flags().Bool("path", false, "Get the path of the config file")
	cmd136.Flags().Bool("pin", false, "Save exact version to `.tool-versions`\ne.g.: `mise local --pin node@20` will save `node 20.0.0` to .tool-versions")
	cmd136.Flags().StringArray("remove", nil, "Remove the tool(s) from .tool-versions")
	root.AddCommand(cmd136)
	cmd137 := &cobra.Command{Use: "lock", 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. If no lockfile exists, shows what would be created based on the current configuration, including tools declared by tasks. This allows you to refresh lockfile data for platforms other than the one you're currently on. Operates on the lockfile in the current config root. Use TOOL arguments to target specific tools.", Run: func(*cobra.Command, []string) {}}
	cmd137.Flags().BoolP("global", "g", false, "Target only global config lockfiles (~/.config/mise/mise.lock and system config)\nBy default, only the active project config root is locked")
	cmd137.Flags().StringP("jobs", "j", "", "Number of jobs to run in parallel\nValues below 1 are treated as 1")
	cmd137.Flags().BoolP("dry-run", "n", false, "Show what would be updated without making changes")
	cmd137.Flags().StringArrayP("platform", "p", nil, "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")
	cmd137.Flags().Bool("bump", false, "Re-resolve fuzzy version selectors against the latest available versions")
	cmd137.Flags().Bool("json", false, "Output version changes as JSON")
	cmd137.Flags().Bool("local", false, "Update mise.local.lock instead of mise.lock\nUse for tools defined in .local.toml configs")
	cmd137.Flags().String("minimum-release-age", "", "Only lock versions released before this age or date")
	root.AddCommand(cmd137)
	cmd138 := &cobra.Command{Use: "ls", Short: "List installed and active tool versions", Long: "List installed and active tool versions\n\nThis command lists tools that mise \"knows about\". These may be tools that are currently installed, or those that 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.", Aliases: []string{"list"}, Run: func(*cobra.Command, []string) {}}
	cmd138.Flags().BoolP("current", "c", false, "Only show tool versions currently specified in a mise.toml")
	cmd138.Flags().BoolP("global", "g", false, "Only show tool versions currently specified in the global mise.toml")
	cmd138.Flags().BoolP("installed", "i", false, "Only show tool versions that are installed (Hides tools defined in mise.toml but not installed)")
	cmd138.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd138.Flags().BoolP("local", "l", false, "Only show tool versions currently specified in the local mise.toml")
	cmd138.Flags().BoolP("missing", "m", false, "Display missing tool versions")
	cmd138.Flags().BoolP("offline", "o", false, "Don't fetch information such as outdated versions")
	_ = cmd138.Flags().MarkHidden("offline")
	cmd138.Flags().StringP("plugin", "p", "", "")
	_ = cmd138.Flags().MarkHidden("plugin")
	cmd138.Flags().Bool("all-sources", false, "Display all tracked config sources for tools")
	cmd138.Flags().Bool("monorepo", false, "List tools from every [monorepo].config_roots config root")
	cmd138.Flags().Bool("no-header", false, "Don't display headers")
	cmd138.Flags().Bool("outdated", false, "Display whether a version is outdated")
	cmd138.Flags().String("prefix", "", "Display versions matching this prefix")
	cmd138.Flags().Bool("prunable", false, "List only tools that can be pruned with `mise prune`")
	root.AddCommand(cmd138)
	cmd139 := &cobra.Command{Use: "ls-remote", 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.", Aliases: []string{"list-all", "list-remote"}, Run: func(*cobra.Command, []string) {}}
	cmd139.Flags().Bool("all", false, "Show all installed plugins and versions")
	cmd139.Flags().String("minimum-release-age", "", "Only show versions released before this age or date")
	cmd139.Flags().BoolP("json", "J", false, "Output in JSON format (includes version metadata like created_at timestamps when available)")
	cmd139.Flags().Bool("no-versions-host", false, "Disable checking the mise-versions host")
	cmd139.Flags().Bool("prerelease", false, "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.")
	cmd139.Flags().Bool("strict-metadata", false, "Fail if release metadata fetches fail")
	root.AddCommand(cmd139)
	cmd140 := &cobra.Command{Use: "mcp", 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 to AI assistants over stdin/stdout using JSON-RPC protocol.\n\nThe MCP server provides access to: - Installed and available tools - Task definitions and execution - Environment variables - Configuration information - Task execution via the run_task tool\n\nResources available: - mise://tools - List all tools (use ?include_inactive=true to include inactive tools) - mise://tasks - List all tasks with their configurations - mise://env - List all environment variables - mise://config - Show configuration files and project root\n\nTools available: - list_commands - Every mise command, with its declared effect on the world - install_tool - Install a tool with an optional version (not yet implemented) - run_task - Execute a mise task with optional arguments\n\nNote: This is primarily intended for integration with AI assistants like Claude, Cursor, or other tools that support the Model Context Protocol.", Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd140)
	cmd141 := &cobra.Command{Use: "oci", 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 only invalidates one content-addressable blob — unlike a Dockerfile where changing an early `RUN` invalidates every layer above it.\n\nThis command is experimental and requires `mise settings experimental=true` (or `MISE_EXPERIMENTAL=1`). Behavior, flags, and output layout may change in future releases.", Run: func(*cobra.Command, []string) {}}
	cmd142 := &cobra.Command{Use: "build", 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 tool version only invalidates that tool's layer — other tools, the base image, and config are reused unchanged. The output directory conforms to the OCI image-layout spec and can be consumed by `skopeo`, `crane`, or `podman load`.\n\nRequires `mise settings experimental=true` (or `MISE_EXPERIMENTAL=1`).", Run: func(*cobra.Command, []string) {}}
	cmd142.Flags().StringArray("copy", nil, "Copy a host file, directory, or symlink into the image (repeatable, HOST:IMAGE)")
	cmd142.Flags().StringP("output", "o", "./mise-oci", "Output directory for the OCI image layout")
	cmd142.Flags().String("from", "", "Base image reference (overrides [oci].from and the oci.default_from setting)")
	cmd142.Flags().Bool("include-global", false, "Also include tools from the global / system config (default: project-only)")
	cmd142.Flags().StringP("tag", "t", "", "Tag to record in the image index (the org.opencontainers.image.ref.name annotation)")
	cmd142.Flags().String("mount-point", "", "Where to place tool installs inside the image (default: /mise)")
	cmd142.Flags().Bool("no-mise", false, "Do not embed the currently-running mise binary at /usr/local/bin/mise")
	cmd142.Flags().String("owner", "", "UID[:GID] to assign to every tar entry in generated layers")
	cmd141.AddCommand(cmd142)
	cmd143 := &cobra.Command{Use: "push", 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 required. If `--image-dir` is not passed, builds fresh from the current mise.toml first. Only blobs the registry doesn't already have are uploaded, so repeat pushes of mostly-unchanged toolsets are cheap.\n\nTool layers whose tool, version, mount point, and file owner match the previously pushed image (or `--cache-from`) are reused without being rebuilt — those tools don't even need to be installed locally. Pass `--no-cache` to force a full local rebuild.\n\nCredentials are read from the same places docker and podman use: `$REGISTRY_AUTH_FILE`, `$XDG_RUNTIME_DIR/containers/auth.json`, `~/.config/containers/auth.json`, and `~/.docker/config.json` (including credential helpers) — so `docker login` / `podman login` is all the setup needed.\n\nRequires `mise settings experimental=true` (or `MISE_EXPERIMENTAL=1`).", Run: func(*cobra.Command, []string) {}}
	cmd143.Flags().String("cache-from", "", "Reuse unchanged tool layers from this image instead of the destination ref")
	cmd143.Flags().String("from", "", "Base image for the build (ignored with --image-dir)")
	cmd143.Flags().String("image-dir", "", "Push an already-built OCI image layout (skip the build step)")
	cmd143.Flags().Bool("include-global", false, "Also include tools from the global / system config (default: project-only)")
	cmd143.Flags().String("mount-point", "", "Override in-image mount point (ignored with --image-dir)")
	cmd143.Flags().Bool("no-cache", false, "Don't reuse tool layers from the previously pushed image")
	cmd143.Flags().Bool("no-mise", false, "Don't embed the mise binary (ignored with --image-dir)")
	cmd143.Flags().String("owner", "", "UID[:GID] to assign to every tar entry when building (conflicts with --image-dir)")
	cmd143.Flags().Bool("update-index", false, "Maintain the tag as a multi-arch image index")
	cmd141.AddCommand(cmd143)
	cmd144 := &cobra.Command{Use: "run", 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`. The built image is loaded into the local container engine (podman pulls the OCI layout natively; docker receives it via `docker load`) and the given command is executed inside it with stdin/stdout/stderr inherited.\n\nRequires `mise settings experimental=true` (or `MISE_EXPERIMENTAL=1`) and one of: `podman`, `docker`.", Run: func(*cobra.Command, []string) {}}
	cmd144.Flags().String("engine", "auto", "Container engine to use (`auto`, `podman`, or `docker`)")
	cmd144.Flags().String("from", "", "Base image reference for the build (ignored with --image-dir)")
	cmd144.Flags().String("image-dir", "", "Use an already-built OCI image layout instead of building fresh")
	cmd144.Flags().Bool("include-global", false, "Also include tools from the global / system config (default: project-only)")
	cmd144.Flags().Bool("keep", false, "Keep the loaded image in the engine's storage after the run")
	cmd144.Flags().String("mount-point", "", "Override in-image mount point (ignored with --image-dir)")
	cmd144.Flags().Bool("no-mise", false, "Don't embed the mise binary (ignored with --image-dir)")
	cmd144.Flags().String("owner", "", "UID[:GID] to assign to every tar entry when building (conflicts with --image-dir)")
	cmd144.Flags().StringArray("volume", nil, "Bind-mount a host path (repeatable, `HOST:CONTAINER[:MODE]`)")
	cmd144.Flags().StringArrayP("env", "e", nil, "Set environment variable in the container (repeatable, `KEY=VAL`)")
	cmd144.Flags().BoolP("interactive", "i", false, "Run interactively (pass `-i` to the engine)")
	cmd144.Flags().BoolP("tty", "t", false, "Allocate a TTY (pass `-t` to the engine)")
	cmd144.Flags().StringP("workdir", "w", "", "Working directory inside the container")
	cmd141.AddCommand(cmd144)
	root.AddCommand(cmd141)
	cmd145 := &cobra.Command{Use: "outdated", Short: "Shows outdated tool versions", Long: "Shows outdated tool versions\n\nSee `mise upgrade` to upgrade these versions.", Run: func(*cobra.Command, []string) {}}
	cmd145.Flags().BoolP("bump", "b", false, "Compares against the latest versions available, not what matches the current config")
	cmd145.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd145.Flags().Bool("inactive", false, "Show outdated tools including installed-but-inactive tools not present in the current config")
	cmd145.Flags().Bool("local", false, "Only show outdated tools defined in local config files")
	cmd145.Flags().Bool("monorepo", false, "Placeholder for future monorepo outdated checks; `mise outdated --monorepo` is not implemented yet.")
	cmd145.Flags().Bool("no-header", false, "Don't show table header")
	root.AddCommand(cmd145)
	cmd146 := &cobra.Command{Use: "patrons", 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 <https://jdx.dev/patrons.json>. The list refreshes daily; supporting terminals will render each patron's name as a clickable link via OSC 8 hyperlinks.\n\nTo appear here, become a patron at <https://jdx.dev/sponsors.html>.", Run: func(*cobra.Command, []string) {}}
	cmd146.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd146.Flags().Bool("refresh", false, "Bypass the local cache and re-fetch")
	root.AddCommand(cmd146)
	cmd147 := &cobra.Command{Use: "plugins", Short: "Manage plugins", Aliases: []string{"p", "plugin", "plugin-list"}, Run: func(*cobra.Command, []string) {}}
	cmd147.Flags().BoolP("all", "a", false, "list all available remote plugins")
	_ = cmd147.Flags().MarkHidden("all")
	cmd147.Flags().BoolP("core", "c", false, "The built-in plugins only\nNormally these are not shown")
	cmd147.Flags().BoolP("urls", "u", false, "Show the git url for each plugin\ne.g.: https://github.com/mise-plugins/vfox-cmake.git")
	cmd147.Flags().Bool("refs", false, "Show the git refs for each plugin\ne.g.: main 1234abc")
	_ = cmd147.Flags().MarkHidden("refs")
	cmd147.Flags().Bool("user", false, "List installed plugins")
	cmd148 := &cobra.Command{Use: "install", Short: "Install a plugin", Long: "Install a plugin\n\nnote that mise can automatically install plugins when you install a tool e.g.: `mise install cmake@3.30` will autoinstall the cmake plugin\n\nThis behavior can be modified in ~/.config/mise/config.toml", Aliases: []string{"i", "a", "add"}, Run: func(*cobra.Command, []string) {}}
	cmd148.Flags().BoolP("all", "a", false, "Install all missing plugins\nThis will only install plugins that have matching shorthands.\ni.e.: they don't need the full git repo url")
	cmd148.Flags().BoolP("force", "f", false, "Reinstall even if plugin exists")
	cmd148.Flags().StringP("jobs", "j", "", "Number of jobs to run in parallel\nValues below 1 are treated as 1")
	cmd148.Flags().CountP("verbose", "v", "Show installation output")
	cmd147.AddCommand(cmd148)
	cmd149 := &cobra.Command{Use: "link", Short: "Symlinks a plugin into mise", Long: "Symlinks a plugin into mise\n\nThis is used for developing a plugin.", Aliases: []string{"ln"}, Run: func(*cobra.Command, []string) {}}
	cmd149.Flags().BoolP("force", "f", false, "Overwrite existing plugin")
	cmd147.AddCommand(cmd149)
	cmd150 := &cobra.Command{Use: "ls", Short: "List installed plugins", Long: "List installed plugins\n\nCan also show remotely available plugins to install.", Aliases: []string{"list"}, Run: func(*cobra.Command, []string) {}}
	cmd150.Flags().BoolP("all", "a", false, "List all available remote plugins\nSame as `mise plugins ls-remote`")
	_ = cmd150.Flags().MarkHidden("all")
	cmd150.Flags().BoolP("core", "c", false, "The built-in plugins only\nNormally these are not shown")
	_ = cmd150.Flags().MarkHidden("core")
	cmd150.Flags().BoolP("outdated", "o", false, "Show plugins with available updates\nChecks the remote for newer versions and only displays plugins that are outdated")
	cmd150.Flags().BoolP("urls", "u", false, "Show the git url for each plugin\ne.g.: https://github.com/mise-plugins/vfox-cmake.git")
	cmd150.Flags().Bool("refs", false, "Show the git refs for each plugin\ne.g.: main 1234abc")
	_ = cmd150.Flags().MarkHidden("refs")
	cmd150.Flags().Bool("user", false, "List installed plugins")
	_ = cmd150.Flags().MarkHidden("user")
	cmd147.AddCommand(cmd150)
	cmd151 := &cobra.Command{Use: "ls-remote", 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", Aliases: []string{"list-remote", "list-all"}, Run: func(*cobra.Command, []string) {}}
	cmd151.Flags().BoolP("urls", "u", false, "Show the git url for each plugin e.g.: https://github.com/mise-plugins/mise-poetry.git")
	cmd151.Flags().Bool("only-names", false, "Only show the name of each plugin by default it will show a \"*\" next to installed plugins")
	cmd147.AddCommand(cmd151)
	cmd152 := &cobra.Command{Use: "uninstall", Short: "Removes a plugin", Aliases: []string{"remove", "rm"}, Run: func(*cobra.Command, []string) {}}
	cmd152.Flags().BoolP("all", "a", false, "Remove all plugins")
	cmd152.Flags().BoolP("purge", "p", false, "Also remove the plugin's installs, downloads, and cache")
	cmd147.AddCommand(cmd152)
	cmd153 := &cobra.Command{Use: "update", 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", Aliases: []string{"up", "upgrade"}, Run: func(*cobra.Command, []string) {}}
	cmd153.Flags().StringP("jobs", "j", "", "Number of jobs to run in parallel\nValues below 1 are treated as 1\nDefault: 4")
	cmd147.AddCommand(cmd153)
	root.AddCommand(cmd147)
	cmd154 := &cobra.Command{Use: "deps", Short: "[experimental] Manage project dependencies", Long: "[experimental] Manage project dependencies\n\nRuns all applicable dependency install steps for the current project. This checks if dependency lockfiles are newer than installed outputs (e.g., package-lock.json vs node_modules/) and runs install commands if needed.\n\nProviders with `auto = true` are automatically invoked before `mise x` and `mise run` unless skipped with the --no-deps flag.", Aliases: []string{"dep", "prepare"}, Run: func(*cobra.Command, []string) {}}
	cmd154.Flags().Bool("explain", false, "Show why a provider is fresh or stale (requires a provider argument)")
	cmd154.Flags().BoolP("force", "f", false, "Force run all deps steps even if outputs are fresh")
	cmd154.Flags().BoolP("dry-run", "n", false, "Only check if deps install is needed, don't run commands")
	cmd154.Flags().Bool("list", false, "Show what deps providers are available")
	cmd154.Flags().Bool("monorepo", false, "Install dependencies from every [monorepo].config_roots config root")
	cmd154.Flags().StringArray("only", nil, "Run specific deps rule(s) only")
	cmd154.Flags().StringArray("skip", nil, "Skip specific deps rule(s)")
	cmd155 := &cobra.Command{Use: "add", Short: "Add a dependency", Long: "Add a dependency\n\nAdds one or more packages to the project using the appropriate package manager. Package specs use the format `ecosystem:package`, e.g., `npm:react` or `npm:@types/react@19`.", Run: func(*cobra.Command, []string) {}}
	cmd155.Flags().BoolP("dev", "D", false, "Add as a development dependency")
	cmd154.AddCommand(cmd155)
	cmd156 := &cobra.Command{Use: "install", Short: "Install all project dependencies", Long: "Install all project dependencies\n\nChecks if dependency lockfiles are newer than installed outputs and runs install commands if needed.", Run: func(*cobra.Command, []string) {}}
	cmd156.Flags().Bool("explain", false, "Show why a provider is fresh or stale (requires a provider argument)")
	cmd156.Flags().BoolP("force", "f", false, "Force run all deps steps even if outputs are fresh")
	cmd156.Flags().BoolP("dry-run", "n", false, "Only check if deps install is needed, don't run commands")
	cmd156.Flags().Bool("list", false, "Show what deps providers are available")
	cmd156.Flags().Bool("monorepo", false, "Install dependencies from every [monorepo].config_roots config root")
	cmd156.Flags().StringArray("only", nil, "Run specific deps rule(s) only")
	cmd156.Flags().StringArray("skip", nil, "Skip specific deps rule(s)")
	cmd154.AddCommand(cmd156)
	cmd157 := &cobra.Command{Use: "remove", Short: "Remove a dependency", Long: "Remove a dependency\n\nRemoves one or more packages from the project using the appropriate package manager. Package specs use the format `ecosystem:package`, e.g., `npm:lodash`.", Run: func(*cobra.Command, []string) {}}
	cmd154.AddCommand(cmd157)
	root.AddCommand(cmd154)
	cmd158 := &cobra.Command{Use: "prune", 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 Versions which are no longer the latest specified in any of those configs are deleted. Versions installed only with environment variables `MISE_<TOOL>_VERSION` will be deleted, as will versions only referenced on the command line `mise exec <TOOL>@<VERSION>`.\n\nTool stubs that have been executed are tracked in ~/.local/state/mise/tracked-stubs. Versions still referenced by a tracked stub are not deleted.\n\nYou can list prunable tools with `mise ls --prunable`", Run: func(*cobra.Command, []string) {}}
	cmd158.Flags().BoolP("dry-run", "n", false, "Do not actually delete anything")
	cmd158.Flags().Bool("configs", false, "Prune only tracked and trusted configuration links that point to nonexistent configurations")
	cmd158.Flags().Bool("dry-run-code", false, "Like --dry-run but exits with code 1 if there are tools to prune")
	cmd158.Flags().Bool("monorepo", false, "Placeholder for future monorepo pruning; `mise prune --monorepo` is not implemented yet.")
	cmd158.Flags().Bool("tools", false, "Prune only unused versions of tools")
	root.AddCommand(cmd158)
	cmd159 := &cobra.Command{Use: "registry", 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`.", Run: func(*cobra.Command, []string) {}}
	cmd159.Flags().StringP("backend", "b", "", "Show only tools for this backend")
	cmd159.Flags().Bool("complete", false, "Print all tools with descriptions for shell completions")
	_ = cmd159.Flags().MarkHidden("complete")
	cmd159.Flags().Bool("hide-aliased", false, "Hide aliased tools")
	cmd159.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd159.Flags().Bool("security", false, "Include security features for each tool's backends in JSON output.")
	root.AddCommand(cmd159)
	cmd160 := &cobra.Command{Use: "render-help", Short: "internal command to generate markdown from help", Hidden: true, Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd160)
	cmd161 := &cobra.Command{Use: "reshim", 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. mise will try to do this automatically for commands like `npm i -g` but there are other ways to install things (like using yarn or pnpm for node) that mise does not 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 open an issue on the mise repo. You can also set up a shell function to reshim automatically (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 currently active in mise.toml.", Run: func(*cobra.Command, []string) {}}
	cmd161.Flags().BoolP("force", "f", false, "Removes all shims before reshimming")
	root.AddCommand(cmd161)
	cmd162 := &cobra.Command{Use: "run", Short: "Run task(s)", Long: "Run task(s)\n\nThis command will run a task, or multiple tasks in parallel. Tasks may have dependencies on other tasks or on source files. If source is configured on a task, it will only run if the source files have changed.\n\nTasks can be defined in mise.toml or as standalone scripts. In 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. These must be located in `mise-tasks`, `.mise-tasks`, `.mise/tasks`, `mise/tasks` or `.config/mise/tasks`. The name of the script will be the name of the tasks.\n\n    $ cat .mise/tasks/build<<EOF\n    #!/usr/bin/env bash\n    npm run build\n    EOF\n    $ mise run build", Aliases: []string{"r"}, Run: func(*cobra.Command, []string) {}}
	cmd162.Flags().Bool("affected", false, "Run matching tasks only for projects affected by Git changes")
	cmd162.Flags().String("affected-base", "", "Git base revision for --affected\nDefaults to MISE_AFFECTED_BASE, CI metadata, or HEAD~1")
	cmd162.Flags().Bool("affected-explain", false, "Explain why projects and tasks were selected by --affected")
	cmd162.Flags().String("affected-head", "", "Git head revision for --affected\nDefaults to MISE_AFFECTED_HEAD, CI metadata, or HEAD")
	cmd162.Flags().Bool("affected-json", false, "Output affected projects and tasks as JSON without running tasks")
	cmd162.Flags().Bool("all", false, "Open the interactive selector with all tasks from the entire monorepo")
	cmd162.Flags().BoolP("continue-on-error", "c", false, "Continue running tasks even if one fails")
	cmd162.Flags().StringP("cd", "C", "", "Change to this directory before executing the command")
	cmd162.Flags().BoolP("force", "f", false, "Force the tasks to run even if outputs are up to date")
	cmd162.Flags().StringP("jobs", "j", "", "Number of tasks to run in parallel\nValues below 1 are treated as 1\n[default: 4]\nConfigure with `jobs` config or `MISE_JOBS` env var")
	cmd162.Flags().BoolP("dry-run", "n", false, "Don't actually run the task(s), just print them in order of execution")
	cmd162.Flags().StringP("output", "o", "", "Change how tasks information is output when running tasks")
	cmd162.Flags().BoolP("quiet", "q", false, "Don't show extra output")
	cmd162.Flags().BoolP("raw", "r", false, "Read/write directly to stdin/stdout/stderr instead of by line\nRedactions are not applied with this option\nConfigure with `raw` config or `MISE_RAW` env var")
	cmd162.Flags().StringP("shell", "s", "", "Shell to use to run toml tasks")
	cmd162.Flags().BoolP("silent", "S", false, "Don't show any output except for errors")
	cmd162.Flags().StringArrayP("tool", "t", nil, "Tool(s) to run in addition to what is in mise.toml files e.g.: node@20 python@3.10")
	cmd162.Flags().StringArray("allow-env", nil, "Allow specific env var through (implies --deny-env for everything else)\nSupports wildcards, e.g. --allow-env='MYAPP_*'")
	cmd162.Flags().StringArray("allow-net", nil, "Allow network to specific host (implies --deny-net for everything else)")
	cmd162.Flags().StringArray("allow-read", nil, "Allow reads from specific path (implies --deny-read for everything else)")
	cmd162.Flags().StringArray("allow-write", nil, "Allow writes to specific path (implies --deny-write for everything else)")
	cmd162.Flags().Bool("deny-all", false, "Block reads, writes, network, and env vars")
	cmd162.Flags().Bool("deny-env", false, "Block env var inheritance (only PATH, HOME, USER, SHELL, TERM, LANG pass through)")
	cmd162.Flags().Bool("deny-net", false, "Block all network access")
	cmd162.Flags().Bool("deny-read", false, "Block filesystem reads (system libs and tool dirs still accessible)")
	cmd162.Flags().Bool("deny-write", false, "Block all filesystem writes")
	cmd162.Flags().Bool("fresh-env", false, "Bypass the environment cache and recompute the environment")
	cmd162.Flags().Bool("no-cache", false, "Do not use cache on remote tasks")
	cmd162.Flags().Bool("no-deps", false, "Skip automatic dependency preparation")
	cmd162.Flags().Bool("no-timings", false, "Hides elapsed time after each task completes")
	cmd162.Flags().Bool("skip-deps", false, "Run only the specified tasks skipping all dependencies")
	cmd162.Flags().Bool("skip-tools", false, "Skip installing tools before running tasks")
	cmd162.Flags().String("task-cache", "read-write", "Set task output cache access for this run")
	cmd162.Flags().Bool("task-cache-explain", false, "Explain the inputs that produced each task's output cache key")
	cmd162.Flags().Bool("task-cache-explain-json", false, "Output cache-key input details as JSON Lines without running tasks")
	cmd162.Flags().Bool("task-cache-stats", false, "Report task output cache hits, restored bytes, and time saved")
	cmd162.Flags().String("timeout", "", "Timeout for the task to complete\ne.g.: 30s, 5m")
	cmd162.Flags().Bool("timings", false, "Shows elapsed time after each task completes")
	_ = cmd162.Flags().MarkHidden("timings")
	root.AddCommand(cmd162)
	cmd163 := &cobra.Command{Use: "search", Short: "Search for tools in the registry", Long: "Search for tools in the registry\n\nThis command searches a tool in the registry.\n\nBy default, it will show all tools that fuzzy match the search term. For non-fuzzy matches, use the `--match-type` flag.", Run: func(*cobra.Command, []string) {}}
	cmd163.Flags().BoolP("interactive", "i", false, "Show interactive search")
	cmd163.Flags().StringP("match-type", "m", "fuzzy", "Match type: equal, contains, or fuzzy")
	cmd163.Flags().Bool("no-header", false, "Don't display headers")
	root.AddCommand(cmd163)
	cmd164 := &cobra.Command{Use: "self-update", Short: "Updates mise itself.", Long: "Updates mise itself.\n\nUses the GitHub Releases API to find the latest release and binary. By default, this will also update any installed plugins. Uses mise's GitHub token resolution chain for authenticated requests.\n\nPackagers can disable this command so that mise is updated through the package manager instead. See https://mise.jdx.dev/contributing.html#packaging-and-self-update-instructions", Run: func(*cobra.Command, []string) {}}
	cmd164.Flags().BoolP("force", "f", false, "Update even if already up to date")
	cmd164.Flags().BoolP("yes", "y", false, "Skip confirmation prompt")
	cmd164.Flags().Bool("no-plugins", false, "Disable auto-updating plugins")
	root.AddCommand(cmd164)
	cmd165 := &cobra.Command{Use: "set", Short: "Set environment variables in mise.toml", Long: "Set environment variables in mise.toml\n\nBy default, this command modifies `mise.toml` in the current directory. If multiple config files exist (e.g., both `mise.toml` and `mise.local.toml`), the lowest precedence file (`mise.toml`) will be used. See https://mise.jdx.dev/configuration.html#target-file-for-write-operations\n\nUse `-E <env>` to create/modify environment-specific config files like `mise.<env>.toml`.", Aliases: []string{"ev", "env-vars"}, Run: func(*cobra.Command, []string) {}}
	cmd165.Flags().StringP("env", "E", "", "Create/modify an environment-specific config file like .mise.<env>.toml")
	cmd165.Flags().BoolP("global", "g", false, "Set the environment variable in the global config file")
	cmd165.Flags().Bool("age-encrypt", false, "[experimental] Encrypt the value with age before storing")
	cmd165.Flags().String("age-key-file", "", "[experimental] Age identity file for encryption")
	cmd165.Flags().StringArray("age-recipient", nil, "[experimental] Age recipient (x25519 public key) for encryption")
	cmd165.Flags().StringArray("age-ssh-recipient", nil, "[experimental] SSH recipient (public key or path) for age encryption")
	cmd165.Flags().Bool("complete", false, "Render completions")
	_ = cmd165.Flags().MarkHidden("complete")
	cmd165.Flags().String("file", "", "The TOML file to update")
	cmd165.Flags().Bool("no-redact", false, "Show raw values instead of redacting secrets")
	cmd165.Flags().Bool("prompt", false, "Prompt for environment variable values")
	cmd165.Flags().StringArray("remove", nil, "Remove the environment variable from config file")
	_ = cmd165.Flags().MarkHidden("remove")
	cmd165.Flags().Bool("stdin", false, "Read the value from stdin (for multiline input)")
	root.AddCommand(cmd165)
	cmd166 := &cobra.Command{Use: "settings", Short: "Manage settings", Run: func(*cobra.Command, []string) {}}
	cmd166.Flags().BoolP("all", "a", false, "List all settings")
	cmd166.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd166.PersistentFlags().BoolP("local", "l", false, "Use the local config file instead of the global one")
	cmd166.Flags().BoolP("toml", "T", false, "Output in TOML format")
	cmd166.Flags().Bool("complete", false, "Print all settings with descriptions for shell completions")
	_ = cmd166.Flags().MarkHidden("complete")
	cmd166.Flags().Bool("json-extended", false, "Output in JSON format with sources")
	cmd167 := &cobra.Command{Use: "add", 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. This modifies the contents of ~/.config/mise/config.toml", Run: func(*cobra.Command, []string) {}}
	cmd167.Flags().BoolP("local", "l", false, "Use the local config file instead of the global one")
	cmd166.AddCommand(cmd167)
	cmd168 := &cobra.Command{Use: "get", 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 but managed separately with `mise tool-alias get`", Run: func(*cobra.Command, []string) {}}
	cmd168.Flags().BoolP("local", "l", false, "Use the local config file instead of the global one")
	cmd166.AddCommand(cmd168)
	cmd169 := &cobra.Command{Use: "ls", 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 but managed separately with `mise tool-alias`", Aliases: []string{"list"}, Run: func(*cobra.Command, []string) {}}
	cmd169.Flags().BoolP("all", "a", false, "List all settings")
	cmd169.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd169.PersistentFlags().BoolP("local", "l", false, "Use the local config file instead of the global one")
	cmd169.Flags().BoolP("toml", "T", false, "Output in TOML format")
	cmd169.Flags().Bool("complete", false, "Print all settings with descriptions for shell completions")
	_ = cmd169.Flags().MarkHidden("complete")
	cmd169.Flags().Bool("json-extended", false, "Output in JSON format with sources")
	cmd166.AddCommand(cmd169)
	cmd170 := &cobra.Command{Use: "set", Short: "Add/update a setting", Long: "Add/update a setting\n\nThis modifies the contents of ~/.config/mise/config.toml by default. With `--local`, modifies the local config file instead. See https://mise.jdx.dev/configuration.html#target-file-for-write-operations", Aliases: []string{"create"}, Run: func(*cobra.Command, []string) {}}
	cmd170.Flags().BoolP("local", "l", false, "Use the local config file instead of the global one")
	cmd166.AddCommand(cmd170)
	cmd171 := &cobra.Command{Use: "unset", Short: "Clears a setting", Long: "Clears a setting\n\nThis modifies the contents of ~/.config/mise/config.toml", Aliases: []string{"rm", "remove", "delete", "del"}, Run: func(*cobra.Command, []string) {}}
	cmd171.Flags().BoolP("local", "l", false, "Use the local config file instead of the global one")
	cmd166.AddCommand(cmd171)
	root.AddCommand(cmd166)
	cmd172 := &cobra.Command{Use: "shell", 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 such as `MISE_NODE_VERSION=20` which is \"eval\"ed as a shell function created by `mise activate`.", Aliases: []string{"sh"}, Run: func(*cobra.Command, []string) {}}
	cmd172.Flags().StringP("jobs", "j", "", "Number of jobs to run in parallel\nValues below 1 are treated as 1\n[default: 4]")
	cmd172.Flags().BoolP("unset", "u", false, "Removes a previously set version")
	cmd172.Flags().Bool("raw", false, "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1")
	root.AddCommand(cmd172)
	cmd173 := &cobra.Command{Use: "shell-alias", Short: "Manage shell aliases.", Run: func(*cobra.Command, []string) {}}
	cmd173.Flags().Bool("no-header", false, "Don't show table header")
	cmd174 := &cobra.Command{Use: "get", Short: "Show the command for a shell alias", Run: func(*cobra.Command, []string) {}}
	cmd173.AddCommand(cmd174)
	cmd175 := &cobra.Command{Use: "ls", Short: "List shell aliases", Long: "List shell aliases\n\nShows the shell aliases that are set in the current directory. These are defined in `mise.toml` under the `[shell_alias]` section.", Aliases: []string{"list"}, Run: func(*cobra.Command, []string) {}}
	cmd175.Flags().Bool("no-header", false, "Don't show table header")
	cmd173.AddCommand(cmd175)
	cmd176 := &cobra.Command{Use: "set", Short: "Add/update a shell alias", Long: "Add/update a shell alias\n\nThis modifies the contents of ~/.config/mise/config.toml", Aliases: []string{"add", "create"}, Run: func(*cobra.Command, []string) {}}
	cmd173.AddCommand(cmd176)
	cmd177 := &cobra.Command{Use: "unset", Short: "Removes a shell alias", Long: "Removes a shell alias\n\nThis modifies the contents of ~/.config/mise/config.toml", Aliases: []string{"rm", "remove", "delete", "del"}, Run: func(*cobra.Command, []string) {}}
	cmd173.AddCommand(cmd177)
	root.AddCommand(cmd173)
	cmd178 := &cobra.Command{Use: "sponsors", Short: "Show the companies sponsoring mise and the jdx.dev open source tools", Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd178)
	cmd179 := &cobra.Command{Use: "sync", Short: "Synchronize tools from other version managers with mise", Run: func(*cobra.Command, []string) {}}
	cmd180 := &cobra.Command{Use: "node", 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 managed installs, runtime aliases, or links from other providers.", Run: func(*cobra.Command, []string) {}}
	cmd180.Flags().Bool("brew", false, "Get tool versions from Homebrew")
	cmd180.Flags().Bool("nodenv", false, "Get tool versions from nodenv")
	cmd180.Flags().Bool("nvm", false, "Get tool versions from nvm")
	cmd179.AddCommand(cmd180)
	cmd181 := &cobra.Command{Use: "python", 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 managed installs, runtime aliases, or links from other providers.", Run: func(*cobra.Command, []string) {}}
	cmd181.Flags().Bool("pyenv", false, "Get tool versions from pyenv")
	cmd181.Flags().Bool("uv", false, "Sync tool versions with uv (2-way sync)")
	cmd179.AddCommand(cmd181)
	cmd182 := &cobra.Command{Use: "ruby", Short: "Symlinks all ruby tool versions from an external tool into mise", Run: func(*cobra.Command, []string) {}}
	cmd182.Flags().Bool("brew", false, "Get tool versions from Homebrew")
	cmd179.AddCommand(cmd182)
	root.AddCommand(cmd179)
	cmd183 := &cobra.Command{Use: "tasks", Short: "Manage tasks", Aliases: []string{"t", "task"}, Run: func(*cobra.Command, []string) {}}
	cmd183.Flags().BoolP("global", "g", false, "Only show global tasks")
	cmd183.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd183.Flags().BoolP("local", "l", false, "Only show non-global tasks")
	cmd183.Flags().BoolP("extended", "x", false, "Show all columns")
	cmd183.Flags().Bool("all", false, "Load all tasks from the entire monorepo, including sibling directories.\nBy default, only tasks from the current directory hierarchy are loaded.")
	cmd183.Flags().Bool("complete", false, "Display tasks for usage completion")
	_ = cmd183.Flags().MarkHidden("complete")
	cmd183.Flags().Bool("hidden", false, "Show hidden tasks")
	cmd183.Flags().Bool("name-only", false, "Only show task names, one per line. Useful for piping to fzf and similar tools.")
	cmd183.Flags().Bool("no-header", false, "Do not print table header")
	cmd183.Flags().String("sort", "", "Sort by column. Default is name.")
	cmd183.Flags().String("sort-order", "", "Sort order. Default is asc.")
	cmd183.Flags().Bool("usage", false, "")
	_ = cmd183.Flags().MarkHidden("usage")
	cmd184 := &cobra.Command{Use: "add", Short: "Create a new task", Long: "Create a new task\n\nAdds a task to the local mise.toml file. See https://mise.jdx.dev/configuration.html#target-file-for-write-operations", Run: func(*cobra.Command, []string) {}}
	cmd184.Flags().StringArrayP("alias", "a", nil, "Other names for the task")
	cmd184.Flags().StringArrayP("depends", "d", nil, "Add dependencies to the task")
	cmd184.Flags().StringP("dir", "D", "", "Run the task in a specific directory")
	cmd184.Flags().BoolP("file", "f", false, "Create a file task instead of a toml task")
	cmd184.Flags().BoolP("hide", "H", false, "Hide the task from `mise tasks` and completions")
	cmd184.Flags().BoolP("quiet", "q", false, "Do not print the command before running")
	cmd184.Flags().BoolP("raw", "r", false, "Directly connect stdin/stdout/stderr")
	cmd184.Flags().StringArrayP("sources", "s", nil, "Glob patterns of files this task uses as input")
	cmd184.Flags().StringArrayP("wait-for", "w", nil, "Wait for these tasks to complete if they are to run")
	cmd184.Flags().StringArray("depends-post", nil, "Dependencies to run after the task runs")
	cmd184.Flags().String("description", "", "Description of the task")
	cmd184.Flags().StringArray("outputs", nil, "Glob patterns of files this task creates, to skip if they are not modified")
	cmd184.Flags().String("run-windows", "", "Command to run on windows")
	cmd184.Flags().String("shell", "", "Run the task in a specific shell")
	cmd184.Flags().Bool("silent", false, "Do not print the command or its output")
	cmd183.AddCommand(cmd184)
	cmd185 := &cobra.Command{Use: "deps", Short: "Display a tree visualization of a dependency graph", Run: func(*cobra.Command, []string) {}}
	cmd185.Flags().Bool("compact", false, "Collapse repeated dependencies after their first occurrence")
	cmd185.Flags().Bool("dot", false, "Display dependencies in DOT format")
	cmd185.Flags().Bool("hidden", false, "Show hidden tasks")
	cmd183.AddCommand(cmd185)
	cmd186 := &cobra.Command{Use: "edit", 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.", Run: func(*cobra.Command, []string) {}}
	cmd186.Flags().BoolP("path", "p", false, "Display the path to the task instead of editing it")
	cmd183.AddCommand(cmd186)
	cmd187 := &cobra.Command{Use: "graph", Short: "[experimental] Inspect the workspace project graph", Run: func(*cobra.Command, []string) {}}
	cmd187.Flags().BoolP("json", "J", false, "Output the project graph as JSON")
	cmd187.Flags().Bool("explain", false, "Explain provider attribution for inferred projects and tasks")
	cmd187.Flags().Bool("no-header", false, "Do not print table headers")
	cmd183.AddCommand(cmd187)
	cmd188 := &cobra.Command{Use: "info", Short: "Get information about a task", Run: func(*cobra.Command, []string) {}}
	cmd188.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd183.AddCommand(cmd188)
	cmd189 := &cobra.Command{Use: "ls", 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.", Run: func(*cobra.Command, []string) {}}
	cmd189.Flags().BoolP("global", "g", false, "Only show global tasks")
	cmd189.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd189.Flags().BoolP("local", "l", false, "Only show non-global tasks")
	cmd189.Flags().BoolP("extended", "x", false, "Show all columns")
	cmd189.Flags().Bool("all", false, "Load all tasks from the entire monorepo, including sibling directories.\nBy default, only tasks from the current directory hierarchy are loaded.")
	cmd189.Flags().Bool("complete", false, "Display tasks for usage completion")
	_ = cmd189.Flags().MarkHidden("complete")
	cmd189.Flags().Bool("hidden", false, "Show hidden tasks")
	cmd189.Flags().Bool("name-only", false, "Only show task names, one per line. Useful for piping to fzf and similar tools.")
	cmd189.Flags().Bool("no-header", false, "Do not print table header")
	cmd189.Flags().String("sort", "", "Sort by column. Default is name.")
	cmd189.Flags().String("sort-order", "", "Sort order. Default is asc.")
	cmd189.Flags().Bool("usage", false, "")
	_ = cmd189.Flags().MarkHidden("usage")
	cmd183.AddCommand(cmd189)
	cmd190 := &cobra.Command{Use: "run", Short: "Run task(s)", Long: "Run task(s)\n\nThis command will run a task, or multiple tasks in parallel. Tasks may have dependencies on other tasks or on source files. If source is configured on a task, it will only run if the source files have changed.\n\nTasks can be defined in mise.toml or as standalone scripts. In 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. These must be located in `mise-tasks`, `.mise-tasks`, `.mise/tasks`, `mise/tasks` or `.config/mise/tasks`. The name of the script will be the name of the tasks.\n\n    $ cat .mise/tasks/build<<EOF\n    #!/usr/bin/env bash\n    npm run build\n    EOF\n    $ mise run build", Aliases: []string{"r"}, Run: func(*cobra.Command, []string) {}}
	cmd190.Flags().Bool("affected", false, "Run matching tasks only for projects affected by Git changes")
	cmd190.Flags().String("affected-base", "", "Git base revision for --affected\nDefaults to MISE_AFFECTED_BASE, CI metadata, or HEAD~1")
	cmd190.Flags().Bool("affected-explain", false, "Explain why projects and tasks were selected by --affected")
	cmd190.Flags().String("affected-head", "", "Git head revision for --affected\nDefaults to MISE_AFFECTED_HEAD, CI metadata, or HEAD")
	cmd190.Flags().Bool("affected-json", false, "Output affected projects and tasks as JSON without running tasks")
	cmd190.Flags().Bool("all", false, "Open the interactive selector with all tasks from the entire monorepo")
	cmd190.Flags().BoolP("continue-on-error", "c", false, "Continue running tasks even if one fails")
	cmd190.Flags().StringP("cd", "C", "", "Change to this directory before executing the command")
	cmd190.Flags().BoolP("force", "f", false, "Force the tasks to run even if outputs are up to date")
	cmd190.Flags().StringP("jobs", "j", "", "Number of tasks to run in parallel\nValues below 1 are treated as 1\n[default: 4]\nConfigure with `jobs` config or `MISE_JOBS` env var")
	cmd190.Flags().BoolP("dry-run", "n", false, "Don't actually run the task(s), just print them in order of execution")
	cmd190.Flags().StringP("output", "o", "", "Change how tasks information is output when running tasks")
	cmd190.Flags().BoolP("quiet", "q", false, "Don't show extra output")
	cmd190.Flags().BoolP("raw", "r", false, "Read/write directly to stdin/stdout/stderr instead of by line\nRedactions are not applied with this option\nConfigure with `raw` config or `MISE_RAW` env var")
	cmd190.Flags().StringP("shell", "s", "", "Shell to use to run toml tasks")
	cmd190.Flags().BoolP("silent", "S", false, "Don't show any output except for errors")
	cmd190.Flags().StringArrayP("tool", "t", nil, "Tool(s) to run in addition to what is in mise.toml files e.g.: node@20 python@3.10")
	cmd190.Flags().StringArray("allow-env", nil, "Allow specific env var through (implies --deny-env for everything else)\nSupports wildcards, e.g. --allow-env='MYAPP_*'")
	cmd190.Flags().StringArray("allow-net", nil, "Allow network to specific host (implies --deny-net for everything else)")
	cmd190.Flags().StringArray("allow-read", nil, "Allow reads from specific path (implies --deny-read for everything else)")
	cmd190.Flags().StringArray("allow-write", nil, "Allow writes to specific path (implies --deny-write for everything else)")
	cmd190.Flags().Bool("deny-all", false, "Block reads, writes, network, and env vars")
	cmd190.Flags().Bool("deny-env", false, "Block env var inheritance (only PATH, HOME, USER, SHELL, TERM, LANG pass through)")
	cmd190.Flags().Bool("deny-net", false, "Block all network access")
	cmd190.Flags().Bool("deny-read", false, "Block filesystem reads (system libs and tool dirs still accessible)")
	cmd190.Flags().Bool("deny-write", false, "Block all filesystem writes")
	cmd190.Flags().Bool("fresh-env", false, "Bypass the environment cache and recompute the environment")
	cmd190.Flags().Bool("no-cache", false, "Do not use cache on remote tasks")
	cmd190.Flags().Bool("no-deps", false, "Skip automatic dependency preparation")
	cmd190.Flags().Bool("no-timings", false, "Hides elapsed time after each task completes")
	cmd190.Flags().Bool("skip-deps", false, "Run only the specified tasks skipping all dependencies")
	cmd190.Flags().Bool("skip-tools", false, "Skip installing tools before running tasks")
	cmd190.Flags().String("task-cache", "read-write", "Set task output cache access for this run")
	cmd190.Flags().Bool("task-cache-explain", false, "Explain the inputs that produced each task's output cache key")
	cmd190.Flags().Bool("task-cache-explain-json", false, "Output cache-key input details as JSON Lines without running tasks")
	cmd190.Flags().Bool("task-cache-stats", false, "Report task output cache hits, restored bytes, and time saved")
	cmd190.Flags().String("timeout", "", "Timeout for the task to complete\ne.g.: 30s, 5m")
	cmd190.Flags().Bool("timings", false, "Shows elapsed time after each task completes")
	_ = cmd190.Flags().MarkHidden("timings")
	cmd183.AddCommand(cmd190)
	cmd191 := &cobra.Command{Use: "validate", Short: "Validate tasks for common errors and issues", Run: func(*cobra.Command, []string) {}}
	cmd191.Flags().Bool("errors-only", false, "Only show errors (skip warnings)")
	cmd191.Flags().Bool("json", false, "Output validation results in JSON format")
	cmd183.AddCommand(cmd191)
	root.AddCommand(cmd183)
	cmd192 := &cobra.Command{Use: "test-tool", Short: "Test a tool installs and executes", Run: func(*cobra.Command, []string) {}}
	cmd192.Flags().BoolP("all", "a", false, "Test every tool specified in registry/")
	cmd192.Flags().StringP("jobs", "j", "", "Number of tool tests to run in parallel\nValues below 1 are treated as 1\n[default: 4]")
	cmd192.Flags().Bool("all-config", false, "Test all tools specified in config files")
	cmd192.Flags().Bool("include-non-defined", false, "Also test tools not defined in registry/, guessing how to test it")
	cmd192.Flags().Bool("raw", false, "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1")
	root.AddCommand(cmd192)
	cmd193 := &cobra.Command{Use: "token", Short: "Display git provider tokens mise will use", Run: func(*cobra.Command, []string) {}}
	cmd194 := &cobra.Command{Use: "forgejo", Short: "Forgejo token", Long: "Display the Forgejo 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.", Run: func(*cobra.Command, []string) {}}
	cmd194.Flags().Bool("unmask", false, "Show the full unmasked token")
	cmd193.AddCommand(cmd194)
	cmd195 := &cobra.Command{Use: "github", Short: "GitHub token", 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.", Run: func(*cobra.Command, []string) {}}
	cmd195.Flags().Bool("oauth", false, "Resolve only via the native GitHub OAuth source (cache, refresh, or device-code flow), bypassing other token sources")
	cmd195.Flags().Bool("raw", false, "Print only the token value")
	cmd195.Flags().Bool("refresh", false, "Mint a fresh OAuth token even if the cached one has not expired, via the refresh-token grant or a new device-code flow. Use after changing the GitHub App's installations or permissions: cached tokens keep their original access until they expire")
	cmd195.Flags().Bool("unmask", false, "Show the full unmasked token")
	cmd193.AddCommand(cmd195)
	cmd196 := &cobra.Command{Use: "gitlab", Short: "GitLab token", Long: "Display the GitLab 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.", Run: func(*cobra.Command, []string) {}}
	cmd196.Flags().Bool("unmask", false, "Show the full unmasked token")
	cmd193.AddCommand(cmd196)
	root.AddCommand(cmd193)
	cmd197 := &cobra.Command{Use: "tool", Short: "Gets information about a tool", Run: func(*cobra.Command, []string) {}}
	cmd197.Flags().BoolP("json", "J", false, "Output in JSON format")
	cmd197.Flags().Bool("active", false, "Only show active versions")
	cmd197.Flags().Bool("backend", false, "Only show backend field")
	cmd197.Flags().Bool("config-source", false, "Only show config source")
	cmd197.Flags().Bool("description", false, "Only show description field")
	cmd197.Flags().Bool("installed", false, "Only show installed versions")
	cmd197.Flags().Bool("requested", false, "Only show requested versions")
	cmd197.Flags().Bool("tool-options", false, "Only show tool options")
	root.AddCommand(cmd197)
	cmd198 := &cobra.Command{Use: "tool-stub", Short: "Execute a tool stub", Long: "Execute a tool stub\n\nTool stubs are executable files containing TOML configuration that specify which tool to run and how to run it. They provide a convenient way to create portable, self-contained executables that automatically manage tool installation and execution.\n\nA tool stub consists of: - A shebang line: #!/usr/bin/env -S mise tool-stub - TOML configuration specifying the tool, version, and options - Optional comments describing the tool's purpose\n\nExample stub file:\n  #!/usr/bin/env -S mise tool-stub\n  # Node.js v20 development environment\n\n  tool = \"node\"\n  version = \"20.0.0\"\n  bin = \"node\"\n\nThe stub will automatically install the specified tool version if missing and execute it with any arguments passed to the stub.\n\nFor more information, see: https://mise.jdx.dev/dev-tools/tool-stubs.html", Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd198)
	cmd199 := &cobra.Command{Use: "trust", Short: "Marks a config file as trusted", Long: "Marks a config file as trusted\n\nThis means mise is allowed to parse the file when it needs to read config that may execute code or affect the environment. Without trust, mise may prompt, skip the config in some discovery paths, or fail with an untrusted-config error when it cannot prompt.\n\nIn normal mode, commands that execute project-defined behavior (`mise run`, naked task invocations such as `mise <TASK>`, `mise install`, `mise exec`, and `mise watch`) automatically trust their active config. Paranoid mode requires explicit, content-bound trust for every non-global config.\n\nIn normal mode, safe config files do not require trust: files that only contain `min_version`, `[tools]` entries with plain version strings (or arrays of them), and `[tasks]` without templates or tool options.\n\nTrust is shared across git worktrees: a config file inside a linked worktree is trusted when the equivalent path in the repository's main checkout has been trusted. Paranoid mode disables this sharing since worktrees can check out branches with different config contents.", Run: func(*cobra.Command, []string) {}}
	cmd199.Flags().BoolP("all", "a", false, "Trust all config files in the current directory, its parents, and its subdirectories")
	cmd199.Flags().Bool("ignore", false, "Do not trust this config and ignore it in the future")
	cmd199.Flags().Bool("show", false, "Show the trusted status of config files from the current directory and its parents.\nDoes not trust or untrust any files.")
	cmd199.Flags().Bool("untrust", false, "Remove explicit trust for this config")
	root.AddCommand(cmd199)
	cmd200 := &cobra.Command{Use: "uninstall", Short: "Removes installed tool versions", Long: "Removes installed tool versions\n\nThis only removes the installed version, it does not modify mise.toml.", Run: func(*cobra.Command, []string) {}}
	cmd200.Flags().BoolP("all", "a", false, "Delete all installed versions")
	cmd200.Flags().BoolP("dry-run", "n", false, "Do not actually delete anything")
	cmd200.Flags().Bool("dry-run-code", false, "Like --dry-run but exits with code 1 if there are tools to uninstall")
	root.AddCommand(cmd200)
	cmd201 := &cobra.Command{Use: "unset", Short: "Remove environment variable(s) from the config file.", Long: "Remove environment variable(s) from the config file.\n\nBy default, this command modifies `mise.toml` in the current directory.", Run: func(*cobra.Command, []string) {}}
	cmd201.Flags().StringP("file", "f", "", "Specify a file to use instead of `mise.toml`")
	cmd201.Flags().BoolP("global", "g", false, "Use the global config file")
	root.AddCommand(cmd201)
	cmd202 := &cobra.Command{Use: "untrust", Short: "Remove explicit trust for a config", Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd202)
	cmd203 := &cobra.Command{Use: "unuse", Short: "Removes installed tool versions from mise.toml", Long: "Removes installed tool versions from mise.toml\n\nBy default, this will use the `mise.toml` file that has the tool defined. If multiple config files exist (e.g., both `mise.toml` and `mise.local.toml`), the lowest precedence file (`mise.toml`) will be used. See https://mise.jdx.dev/configuration.html#target-file-for-write-operations\n\nIn the following order:\n  - If `--global` is set, it will use the global config file.\n  - If `--path` is set, it will use the config file at the given path.\n  - If `--env` is set, it will use `mise.<env>.toml`.\n  - If [`MISE_DEFAULT_CONFIG_FILENAME`](https://mise.jdx.dev/configuration.html#mise_default_config_filename) is set, it will use that instead.\n  - If `MISE_OVERRIDE_CONFIG_FILENAMES` is set, it will the first from that list.\n  - Otherwise just \"mise.toml\" or global config if cwd is home directory.\n\nUse [`MISE_GLOBAL_CONFIG_FILE`](https://mise.jdx.dev/configuration.html#mise_global_config_file) to choose a different global config path.\n\nWill also prune the installed version if no other configurations are using it.", Aliases: []string{"rm", "remove"}, Run: func(*cobra.Command, []string) {}}
	cmd203.Flags().StringP("env", "e", "", "Create/modify an environment-specific config file like .mise.<env>.toml")
	cmd203.Flags().BoolP("global", "g", false, "Use the global config file (`~/.config/mise/config.toml`) instead of the local one")
	cmd203.Flags().StringP("path", "p", "", "Specify a path to a config file or directory")
	cmd203.Flags().Bool("no-prune", false, "Do not also prune the installed version")
	root.AddCommand(cmd203)
	cmd204 := &cobra.Command{Use: "upgrade", Short: "Upgrades outdated tools", Long: "Upgrades outdated tools\n\nBy default, this keeps the range specified in mise.toml. So if you have node@20 set, it will upgrade to the latest 20.x.x version available. See the `--bump` flag to use the latest version and bump the version in mise.toml.\n\nThis will update mise.lock if it is enabled, see https://mise.jdx.dev/configuration/settings.html#lockfile", Aliases: []string{"up"}, Run: func(*cobra.Command, []string) {}}
	cmd204.Flags().BoolP("bump", "b", false, "Upgrades to the latest version available, bumping the version in mise.toml")
	cmd204.Flags().BoolP("interactive", "i", false, "Display multiselect menu to choose which tools to upgrade")
	cmd204.Flags().StringP("jobs", "j", "", "Number of jobs to run in parallel\nValues below 1 are treated as 1\n[default: 4]")
	cmd204.Flags().BoolP("dry-run", "n", false, "Just print what would be done, don't actually do it")
	cmd204.Flags().StringArrayP("exclude", "x", nil, "Tool(s) to exclude from upgrading\ne.g.: go python")
	cmd204.Flags().Bool("dry-run-code", false, "Like --dry-run but exits with code 1 if there are outdated tools")
	cmd204.Flags().Bool("inactive", false, "Upgrade all tools, including installed-but-inactive tools not present in the current config")
	cmd204.Flags().Bool("local", false, "Only upgrade tools defined in local config files")
	cmd204.Flags().String("minimum-release-age", "", "Only upgrade to versions released before this date or older than this duration")
	cmd204.Flags().Bool("monorepo", false, "Placeholder for future monorepo upgrades; `mise upgrade --monorepo` is not implemented yet.")
	cmd204.Flags().Bool("no-prune", false, "Do not uninstall the versions that were upgraded away from")
	cmd204.Flags().Bool("prune", false, "Uninstall the versions that were upgraded away from")
	cmd204.Flags().Bool("raw", false, "Connect backend install command stdin/stdout/stderr directly to the terminal Implies --jobs=1")
	root.AddCommand(cmd204)
	cmd205 := &cobra.Command{Use: "usage", Short: "Generate a usage CLI spec", Long: "Generate a usage CLI spec\n\nSee https://usage.jdx.dev for more information on this specification.", Hidden: true, Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd205)
	cmd206 := &cobra.Command{Use: "use", Short: "Installs a tool and adds the version to mise.toml.", Long: "Installs a tool and adds the version to mise.toml.\n\nThis will install the tool version if it is not already installed. By default, this will use a `mise.toml` file in the current directory. If multiple config files exist (e.g., both `mise.toml` and `mise.local.toml`), the lowest precedence file (`mise.toml`) will be used. See https://mise.jdx.dev/configuration.html#target-file-for-write-operations\n\nIn the following order:\n  - If `--global` is set, it will use the global config file.\n  - If `--path` is set, it will use the config file at the given path.\n  - If `--env` is set, it will use `mise.<env>.toml`.\n  - If [`MISE_DEFAULT_CONFIG_FILENAME`](https://mise.jdx.dev/configuration.html#mise_default_config_filename) is set, it will use that instead.\n  - If `MISE_OVERRIDE_CONFIG_FILENAMES` is set, it will the first from that list.\n  - Otherwise just \"mise.toml\" or global config if cwd is home directory.\n\nUse [`MISE_GLOBAL_CONFIG_FILE`](https://mise.jdx.dev/configuration.html#mise_global_config_file) to choose a different global config path.\n\nUse the `--global` flag to use the global config file instead.", Aliases: []string{"u"}, Run: func(*cobra.Command, []string) {}}
	cmd206.Flags().StringP("env", "e", "", "Create/modify an environment-specific config file like .mise.<env>.toml")
	cmd206.Flags().BoolP("force", "f", false, "Force reinstall even if already installed")
	cmd206.Flags().BoolP("global", "g", false, "Use the global config file (`~/.config/mise/config.toml`) instead of the local one")
	cmd206.Flags().StringP("jobs", "j", "", "Number of jobs to run in parallel\nValues below 1 are treated as 1\n[default: 4]")
	cmd206.Flags().BoolP("dry-run", "n", false, "Perform a dry run, showing what would be installed and modified without making changes")
	cmd206.Flags().StringP("path", "p", "", "Specify a path to a config file or directory")
	cmd206.Flags().Bool("dry-run-code", false, "Like --dry-run but exits with code 1 if there are changes to make")
	cmd206.Flags().Bool("fuzzy", false, "Save fuzzy version to config file")
	cmd206.Flags().String("minimum-release-age", "", "Only install versions released before this date or older than this duration")
	cmd206.Flags().Bool("pin", false, "Save the resolved concrete version to the config file")
	cmd206.Flags().Bool("raw", false, "Connect backend install command stdin/stdout/stderr directly to the terminal Implies `--jobs=1`")
	cmd206.Flags().StringArray("remove", nil, "Remove the tool(s) from config file")
	root.AddCommand(cmd206)
	cmd207 := &cobra.Command{Use: "version", Short: "Display the version of mise", Long: "Display the version of mise\n\nDisplays the version, os, architecture, and the date of the build.\n\nIf the version is out of date, it will display a warning.", Aliases: []string{"v"}, Run: func(*cobra.Command, []string) {}}
	cmd207.Flags().BoolP("json", "J", false, "Print the version information in JSON format")
	root.AddCommand(cmd207)
	cmd208 := &cobra.Command{Use: "watch", Short: "Run task(s) and watch for changes to rerun it", Long: "Run task(s) and watch for changes to rerun it\n\nThis command uses the `watchexec` tool to watch for changes to files and rerun the specified task(s). It must be installed for this command to work, but you can install it with `mise use -g watchexec@latest`.\n\nFor more advanced process management (daemon management, auto-restart, readiness checks, cron scheduling), see mise's sister project: https://pitchfork.jdx.dev", Aliases: []string{"w"}, Run: func(*cobra.Command, []string) {}}
	cmd208.Flags().StringArrayP("task-flag", "t", nil, "Tasks to run")
	_ = cmd208.Flags().MarkHidden("task-flag")
	cmd208.Flags().StringArrayP("glob", "g", nil, "Files to watch\nDefaults to sources from the task(s)")
	_ = cmd208.Flags().MarkHidden("glob")
	cmd208.Flags().Bool("skip-deps", false, "Run only the specified tasks skipping all dependencies")
	cmd208.Flags().StringArrayP("watch", "w", nil, "Watch a specific file or directory")
	cmd208.Flags().StringArrayP("watch-non-recursive", "W", nil, "Watch a specific directory, non-recursively")
	cmd208.Flags().StringP("watch-file", "F", "", "Watch files and directories from a file")
	cmd208.Flags().StringP("clear", "c", "", "Clear screen before running command")
	cmd208.Flags().StringP("on-busy-update", "o", "do-nothing", "What to do when receiving events while the command is running")
	cmd208.Flags().BoolP("restart", "r", false, "Restart the process if it's still running")
	cmd208.Flags().StringP("signal", "s", "", "Send a signal to the process when it's still running")
	cmd208.Flags().String("stop-signal", "", "Signal to send to stop the command")
	cmd208.Flags().String("stop-timeout", "10s", "Time to wait for the command to exit gracefully")
	cmd208.Flags().StringArray("map-signal", nil, "Translate signals from the OS to signals to send to the command")
	cmd208.Flags().StringP("debounce", "d", "50ms", "Time to wait for new events before taking action")
	cmd208.Flags().Bool("stdin-quit", false, "Exit when stdin closes")
	cmd208.Flags().Bool("no-vcs-ignore", false, "Don't load gitignores")
	cmd208.Flags().Bool("no-project-ignore", false, "Don't load project-local ignores")
	cmd208.Flags().Bool("no-global-ignore", false, "Don't load global ignores")
	cmd208.Flags().Bool("no-default-ignore", false, "Don't use internal default ignores")
	cmd208.Flags().Bool("no-discover-ignore", false, "Don't discover ignore files at all")
	cmd208.Flags().Bool("ignore-nothing", false, "Don't ignore anything at all")
	cmd208.Flags().BoolP("postpone", "p", false, "Wait until first change before running command")
	cmd208.Flags().String("delay-run", "", "Sleep before running the command")
	cmd208.Flags().String("poll", "", "Poll for filesystem changes")
	cmd208.Flags().String("shell", "", "Use a different shell")
	cmd208.Flags().String("emit-events-to", "none", "Configure event emission")
	cmd208.Flags().Bool("only-emit-events", false, "Only emit events to stdout, run no commands.")
	cmd208.Flags().StringArrayP("env", "E", nil, "Add env vars to the command")
	cmd208.Flags().String("wrap-process", "", "Configure how the process is wrapped")
	cmd208.Flags().BoolP("notify", "N", false, "Alert when commands start and end")
	cmd208.Flags().String("color", "auto", "When to use terminal colours")
	cmd208.Flags().Bool("timings", false, "Print how long the command took to run")
	cmd208.Flags().BoolP("quiet", "q", false, "Don't print starting and stopping messages")
	cmd208.Flags().Bool("bell", false, "Ring the terminal bell on command completion")
	cmd208.Flags().String("project-origin", "", "Set the project origin")
	cmd208.Flags().String("workdir", "", "Set the working directory")
	cmd208.Flags().StringArrayP("exts", "e", nil, "Filename extensions to filter to")
	cmd208.Flags().StringArrayP("filter", "f", nil, "Filename patterns to filter to")
	cmd208.Flags().StringArray("filter-file", nil, "Files to load filters from")
	cmd208.Flags().StringArrayP("filter-prog", "J", nil, "[experimental] Filter programs.")
	cmd208.Flags().StringArrayP("ignore", "i", nil, "Filename patterns to filter out")
	cmd208.Flags().StringArray("ignore-file", nil, "Files to load ignores from")
	cmd208.Flags().StringArray("fs-events", nil, "Filesystem events to filter to")
	cmd208.Flags().Bool("no-meta", false, "Don't emit fs events for metadata changes")
	cmd208.Flags().Bool("print-events", false, "Print events that trigger actions")
	cmd208.Flags().Bool("manual", false, "Show the manual page")
	root.AddCommand(cmd208)
	cmd209 := &cobra.Command{Use: "where", Short: "Display the installation path for a tool", Long: "Display the installation path for a tool\n\nThe tool must be installed for this to work.", Run: func(*cobra.Command, []string) {}}
	root.AddCommand(cmd209)
	cmd210 := &cobra.Command{Use: "which", Short: "Shows the path that a tool's bin points to.", Long: "Shows the path that a tool's bin points to.\n\nUse this to figure out what version of a tool is currently active.", Run: func(*cobra.Command, []string) {}}
	cmd210.Flags().StringP("tool", "t", "", "Use a specific tool@version\ne.g.: `mise which npm --tool=node@20`")
	cmd210.Flags().Bool("complete", false, "")
	_ = cmd210.Flags().MarkHidden("complete")
	cmd210.Flags().Bool("plugin", false, "Show the plugin name instead of the path")
	cmd210.Flags().Bool("version", false, "Show the version instead of the path")
	root.AddCommand(cmd210)
	return root
}

func main() {
	n := 1
	if v, err := strconv.Atoi(os.Getenv("PARSE_N")); err == nil {
		n = v
	}

	// Find and ParseFlags rather than Execute: the comparison is about resolving a
	// command line, and Execute would run the command as well. This is the same work
	// the usage side does — reach a command, bind its flags — and no more.
	seen := 0
	for i := 0; i < n; i++ {
		root := build()
		cmd, flags, err := root.Find(os.Args[1:])
		if err == nil {
			err = cmd.ParseFlags(flags)
		}
		if err == nil && cmd != root {
			seen = 1
		}
	}
	fmt.Println(seen)
}
