{
  "id": "nuget",
  "name": "NuGet",
  "homepage": "https://www.nuget.org",
  "description": "NuGet is the package manager for .NET.",
  "icon": "SimpleIcons:nuget",
  "executables": [
    "nuget"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/NuGet/NuGet.Config"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "[configHome]/NuGet/NuGet.Config",
        "match": {
          "prefix": [
            "<add key=\"ClearTextPassword\"",
            "<add key=\"Password\"",
            "<add key=\"http_proxy.password\""
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "[configHome]/NuGet/NuGet.Config",
        "match": {
          "prefix": [
            "<add key=\"globalPackagesFolder\"",
            "<add key=\"repositoryPath\""
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "NuGet",
    "description": "Install a package with nuget.exe into a folder. Restore, pack, push and other subcommands are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "install"
        ],
        "label": "Install a package",
        "description": "Install a package by ID (or from a packages.config) without modifying a project.",
        "source": [
          {
            "id": "docs",
            "kind": "manual",
            "url": "https://learn.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-install",
            "revision": "2026-10-27",
            "evidence": "nuget install <packageID | configFilePath> [options]\n-x|-ExcludeVersion\n-NonInteractive\n-OutputDirectory\n-PreRelease\n-Source\n-Version\n-Framework\n-DependencyVersion"
          }
        ],
        "field": [
          {
            "id": "package",
            "label": "Package ID or packages.config",
            "type": "string",
            "position": 0,
            "sources": [
              "docs"
            ]
          },
          {
            "id": "version",
            "label": "Version",
            "description": "Defaults to the latest version.",
            "type": "string",
            "option": [
              "-Version"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "output_directory",
            "label": "Output directory",
            "description": "Defaults to the current folder.",
            "type": "path",
            "option": [
              "-OutputDirectory"
            ],
            "path": {
              "kind": "directory",
              "role": "output",
              "must_exist": false
            },
            "sources": [
              "docs"
            ]
          },
          {
            "id": "source",
            "label": "Package source",
            "type": "string",
            "option": [
              "-Source"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "framework",
            "label": "Target framework",
            "type": "string",
            "option": [
              "-Framework"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "exclude_version",
            "label": "Folder without version",
            "type": "boolean",
            "option": [
              "-ExcludeVersion",
              "-x"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "prerelease",
            "label": "Allow prerelease",
            "type": "boolean",
            "option": [
              "-PreRelease"
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "dependency_version",
            "label": "Dependency version",
            "type": "enum",
            "option": [
              "-DependencyVersion"
            ],
            "choices": [
              {
                "value": "Lowest",
                "label": "Lowest"
              },
              {
                "value": "HighestPatch",
                "label": "HighestPatch"
              },
              {
                "value": "HighestMinor",
                "label": "HighestMinor"
              },
              {
                "value": "Highest",
                "label": "Highest"
              },
              {
                "value": "Ignore",
                "label": "Ignore"
              }
            ],
            "sources": [
              "docs"
            ]
          },
          {
            "id": "non_interactive",
            "label": "No prompts",
            "type": "boolean",
            "option": [
              "-NonInteractive"
            ],
            "sources": [
              "docs"
            ]
          }
        ],
        "task": [
          {
            "id": "install",
            "label": "Install package",
            "fields": [
              "package",
              "version",
              "output_directory"
            ],
            "required": [
              "package"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "package",
              "version",
              "output_directory",
              "source",
              "framework"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "exclude_version",
              "prerelease",
              "dependency_version",
              "non_interactive"
            ]
          }
        ]
      }
    ]
  }
}
