{
  "id": "nvm",
  "name": "nvm",
  "homepage": "https://github.com/nvm-sh/nvm",
  "description": "Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions.",
  "icon": "SimpleIcons:nvm",
  "executables": [
    "nvm"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.nvm/default-packages",
      "~/.nvm/alias/",
      "[configHome]/nvm/default-packages",
      "[configHome]/nvm/alias/"
    ],
    "exclude": [
      "~/.nvm/alias/lts/",
      "[configHome]/nvm/alias/lts/"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "nvm",
    "description": "Install and switch Node.js versions. Only install, use and ls-remote are covered.",
    "quality": "ai-draft",
    "base": "fig:nvm",
    "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/nvm.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "install"
        ],
        "label": "Install a Node version",
        "description": "Download and install a version. Uses .nvmrc when no version is given.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/nvm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "version",
            "label": "Node version",
            "description": "Version or alias such as node, an LTS name or a number. Leave empty to use .nvmrc.",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "lts",
            "label": "LTS only",
            "description": "Only select from long-term support versions.",
            "type": "boolean",
            "option": [
              "--lts"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "reinstall_from",
            "label": "Reinstall packages from",
            "description": "Version whose global npm packages are reinstalled.",
            "type": "string",
            "option": [
              "--reinstall-packages-from"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "latest_npm",
            "label": "Upgrade npm",
            "type": "boolean",
            "option": [
              "--latest-npm"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "skip_default",
            "label": "Skip default packages",
            "type": "boolean",
            "option": [
              "--skip-default-packages"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_progress",
            "label": "No progress bar",
            "type": "boolean",
            "option": [
              "--no-progress"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "alias",
            "label": "Alias",
            "description": "Alias to set for the installed version.",
            "type": "string",
            "option": [
              "--alias"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "default",
            "label": "Set as default",
            "type": "boolean",
            "option": [
              "--default"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "install",
            "label": "Install a version",
            "fields": [
              "version",
              "lts",
              "latest_npm",
              "default"
            ],
            "required": []
          },
          {
            "id": "install-lts",
            "label": "Install latest LTS",
            "fields": [
              "latest_npm",
              "default"
            ],
            "required": [
              "lts"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "version",
              "lts",
              "latest_npm",
              "default"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "reinstall_from",
              "skip_default",
              "no_progress",
              "alias"
            ]
          }
        ]
      },
      {
        "path": [
          "use"
        ],
        "label": "Use a Node version",
        "description": "Modify PATH to use a version in this shell.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/nvm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "version",
            "label": "Node version",
            "description": "Version or alias such as node, an LTS name or a number. Leave empty to use .nvmrc.",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "lts",
            "label": "LTS alias",
            "description": "Use the lts/* alias.",
            "type": "boolean",
            "option": [
              "--lts"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "silent",
            "label": "Silent",
            "type": "boolean",
            "option": [
              "--silent"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "use",
            "label": "Use a version",
            "fields": [
              "version",
              "silent"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "version",
              "lts",
              "silent"
            ]
          }
        ]
      },
      {
        "path": [
          "ls-remote"
        ],
        "label": "List remote versions",
        "description": "List versions available for install.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/nvm.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "version",
            "label": "Version filter",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "lts",
            "label": "LTS only",
            "type": "boolean",
            "option": [
              "--lts"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_colors",
            "label": "No colors",
            "type": "boolean",
            "option": [
              "--no-colors"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List versions",
            "fields": [
              "version",
              "lts"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "version",
              "lts",
              "no_colors"
            ]
          }
        ]
      }
    ]
  }
}
