id = "fnm" name = "fnm" description = "Fast Node Manager, a Node.js version manager written in Rust." homepage = "https://github.com/Schniz/fnm" executables = ["fnm"] [commands] format = 1 label = "Fast Node Manager" description = "Install, switch and run Node.js versions. Aliases, completions and env setup are left out." quality = "ai-draft" base = "fig:fnm" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts" license = "MIT" [[commands.subcommand]] path = ["install"] label = "Install Node.js" description = "Install a Node.js version, or the latest LTS." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts" license = "MIT" [[commands.subcommand.field]] id = "version" label = "Version" description = "Partial semver or an LTS name such as lts/iron. Leave empty to use the version file." type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "lts" label = "Latest LTS" type = "boolean" option = ["--lts"] sources = ["fig"] [[commands.subcommand.field]] id = "arch" label = "Architecture" type = "string" option = ["--arch"] suggestions = [{ value = "x86", label = "x86" }, { value = "x64", label = "x64" }, { value = "arm64", label = "arm64" }, { value = "armv7l", label = "armv7l" }, { value = "ppc64le", label = "ppc64le" }, { value = "ppc64", label = "ppc64" }, { value = "s390x", label = "s390x" }] sources = ["fig"] [[commands.subcommand.task]] id = "install_version" label = "Install a version" fields = ["version"] required = ["version"] [[commands.subcommand.task]] id = "install_lts" label = "Install latest LTS" fields = ["lts"] required = ["lts"] set = { lts = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["version", "lts"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["arch"] [[commands.subcommand]] path = ["use"] label = "Use a version" description = "Switch the current shell to a Node.js version." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts" license = "MIT" [[commands.subcommand.field]] id = "version" label = "Version" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "install_if_missing" label = "Install if missing" type = "boolean" option = ["--install-if-missing"] sources = ["fig"] [[commands.subcommand.field]] id = "lts" label = "Latest LTS" type = "boolean" option = ["--lts"] sources = ["fig"] [[commands.subcommand.task]] id = "use_version" label = "Use a version" fields = ["version", "install_if_missing"] required = ["version"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["version", "install_if_missing", "lts"] [[commands.subcommand]] path = ["default"] label = "Set default version" description = "Make a version the default for new shells." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts" license = "MIT" [[commands.subcommand.field]] id = "version" label = "Version" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.task]] id = "set_default" label = "Set default" fields = ["version"] required = ["version"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["version"] [[commands.subcommand]] path = ["list-remote"] label = "List remote versions" description = "List Node.js versions available to install." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts" license = "MIT" [[commands.subcommand.field]] id = "arch" label = "Architecture" type = "string" option = ["--arch"] suggestions = [{ value = "x86", label = "x86" }, { value = "x64", label = "x64" }, { value = "arm64", label = "arm64" }, { value = "armv7l", label = "armv7l" }, { value = "ppc64le", label = "ppc64le" }, { value = "ppc64", label = "ppc64" }, { value = "s390x", label = "s390x" }] sources = ["fig"] [[commands.subcommand.field]] id = "node_dist_mirror" label = "Node dist mirror" type = "string" option = ["--node-dist-mirror"] sources = ["fig"] [[commands.subcommand.task]] id = "list_remote" label = "List remote versions" fields = [] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["arch", "node_dist_mirror"] [[commands.subcommand]] path = ["exec"] label = "Run in fnm context" description = "Run a command with a chosen Node.js version." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts" license = "MIT" [[commands.subcommand.field]] id = "using" label = "Version" type = "string" option = ["--using"] sources = ["fig"] [[commands.subcommand.field]] id = "lts" label = "Latest LTS" type = "boolean" option = ["--lts"] sources = ["fig"] [[commands.subcommand.field]] id = "command" label = "Command" type = "string" position = 0 multiple = true sources = ["fig"] [[commands.subcommand.task]] id = "exec_using" label = "Run with version" fields = ["using", "command"] required = ["using", "command"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["using", "lts", "command"]