{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "install"
        ],
        "label": "Install Node.js",
        "description": "Install a Node.js version, or the latest LTS.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts",
            "license": "MIT"
          }
        ],
        "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"
            ]
          },
          {
            "id": "lts",
            "label": "Latest LTS",
            "type": "boolean",
            "option": [
              "--lts"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "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"
            ]
          }
        ],
        "task": [
          {
            "id": "install_version",
            "label": "Install a version",
            "fields": [
              "version"
            ],
            "required": [
              "version"
            ]
          },
          {
            "id": "install_lts",
            "label": "Install latest LTS",
            "fields": [
              "lts"
            ],
            "required": [
              "lts"
            ],
            "set": {
              "lts": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "version",
              "lts"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "arch"
            ]
          }
        ]
      },
      {
        "path": [
          "use"
        ],
        "label": "Use a version",
        "description": "Switch the current shell to a Node.js version.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "version",
            "label": "Version",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "install_if_missing",
            "label": "Install if missing",
            "type": "boolean",
            "option": [
              "--install-if-missing"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "lts",
            "label": "Latest LTS",
            "type": "boolean",
            "option": [
              "--lts"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "use_version",
            "label": "Use a version",
            "fields": [
              "version",
              "install_if_missing"
            ],
            "required": [
              "version"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "version",
              "install_if_missing",
              "lts"
            ]
          }
        ]
      },
      {
        "path": [
          "default"
        ],
        "label": "Set default version",
        "description": "Make a version the default for new shells.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "version",
            "label": "Version",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "set_default",
            "label": "Set default",
            "fields": [
              "version"
            ],
            "required": [
              "version"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "version"
            ]
          }
        ]
      },
      {
        "path": [
          "list-remote"
        ],
        "label": "List remote versions",
        "description": "List Node.js versions available to install.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts",
            "license": "MIT"
          }
        ],
        "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"
            ]
          },
          {
            "id": "node_dist_mirror",
            "label": "Node dist mirror",
            "type": "string",
            "option": [
              "--node-dist-mirror"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list_remote",
            "label": "List remote versions",
            "fields": [],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "arch",
              "node_dist_mirror"
            ]
          }
        ]
      },
      {
        "path": [
          "exec"
        ],
        "label": "Run in fnm context",
        "description": "Run a command with a chosen Node.js version.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/fnm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "using",
            "label": "Version",
            "type": "string",
            "option": [
              "--using"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "lts",
            "label": "Latest LTS",
            "type": "boolean",
            "option": [
              "--lts"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "command",
            "label": "Command",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "exec_using",
            "label": "Run with version",
            "fields": [
              "using",
              "command"
            ],
            "required": [
              "using",
              "command"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "using",
              "lts",
              "command"
            ]
          }
        ]
      }
    ]
  }
}
