{
  "name": "aftman",
  "description": "A toolchain manager, enabling project-specific command line tools",
  "subcommands": [
    {
      "name": "init",
      "description": "Creates a new aftman.toml file in the given directory",
      "args": [
        {
          "name": "path",
          "description": "The folder to initialize the manifest file in. Defaults to the current directory"
        }
      ]
    },
    {
      "name": "add",
      "description": "Adds a new tool to Aftman and installs it",
      "options": [
        {
          "names": [
            "--global"
          ],
          "description": "Install this tool globally"
        }
      ],
      "args": [
        {
          "name": "tool",
          "description": "What tool and version to install"
        },
        {
          "name": "alias",
          "description": "The name that will be used to run the tool"
        }
      ]
    },
    {
      "name": "install",
      "description": "Install all tools listed in aftman.toml files based on your current directory",
      "options": [
        {
          "names": [
            "--no-trust-check"
          ],
          "description": "All tools will be installed, regardless of whether they are known"
        }
      ]
    },
    {
      "name": "self-install",
      "description": "Installs Aftman, upgrades any references to Aftman, and adds aftman to your system PATH if supported"
    },
    {
      "name": "trust",
      "args": [
        {
          "name": "tool",
          "description": "The tool to mark as trusted"
        }
      ]
    }
  ],
  "options": [
    {
      "names": [
        "--help",
        "-h"
      ],
      "description": "Show help for aftman"
    },
    {
      "names": [
        "--version",
        "-V"
      ],
      "description": "Show aftman's version"
    }
  ]
}
