{
  "id": "solana",
  "name": "Solana CLI",
  "homepage": "https://www.anza.xyz/",
  "description": "Web-Scale Blockchain for decentralized apps and marketplaces.",
  "executables": [
    "solana",
    "solana-keygen"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/solana/cli/config.yml"
    ],
    "secret": [
      "[configHome]/solana/id.json"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Set Solana cluster",
    "description": "Point the Solana CLI at a cluster with solana config set --url. Keypair and other config keys are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "docs",
        "kind": "manual",
        "url": "https://raw.githubusercontent.com/solana-foundation/developer-content/main/docs/intro/installation.md",
        "revision": "main 2026-10-27",
        "evidence": "solana config get\nsolana config set --url mainnet-beta\nsolana config set --url devnet\nsolana config set --url localhost\nsolana config set --url testnet"
      }
    ],
    "field": [
      {
        "id": "subcommand",
        "label": "Subcommand",
        "fixed": [
          "config",
          "set"
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "url",
        "label": "Cluster URL",
        "description": "A moniker or a full RPC URL.",
        "type": "string",
        "option": [
          "--url"
        ],
        "suggestions": [
          {
            "value": "mainnet-beta",
            "label": "Mainnet Beta"
          },
          {
            "value": "devnet",
            "label": "Devnet"
          },
          {
            "value": "testnet",
            "label": "Testnet"
          },
          {
            "value": "localhost",
            "label": "Localhost"
          }
        ],
        "sources": [
          "docs"
        ]
      }
    ],
    "task": [
      {
        "id": "set-url",
        "label": "Set cluster",
        "fields": [
          "subcommand",
          "url"
        ],
        "required": [
          "url"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "subcommand",
          "url"
        ]
      }
    ]
  }
}
