{
  "id": "chef",
  "name": "Chef Infra",
  "homepage": "https://www.chef.io",
  "description": "A powerful automation platform that transforms infrastructure into code, automating how it is configured, deployed and managed.",
  "icon": "SimpleIcons:chef",
  "executables": [
    "chef",
    "knife",
    "chef-client",
    "chef-solo",
    "chef-apply"
  ],
  "dotfiles": {
    "paths": [
      "~/.chef/config.rb",
      "~/.chef/knife.rb"
    ],
    "exclude": [],
    "secret": [
      "~/.chef/credentials",
      "~/.chef/*.pem"
    ],
    "side_effect": false,
    "machine_lines": [
      {
        "file": [
          "~/.chef/config.rb",
          "~/.chef/knife.rb"
        ],
        "match": {
          "prefix": [
            "client_key",
            "validation_key",
            "cookbook_path",
            "chef_repo_path"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Chef CLI",
    "description": "Generate a new cookbook with chef generate cookbook. Other generators, knife and chef-client are not covered.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "generate",
          "cookbook"
        ],
        "label": "Generate a cookbook",
        "source": [
          {
            "id": "src",
            "kind": "help",
            "url": "https://github.com/chef/chef-cli/blob/main/lib/chef-cli/command/generator_commands/cookbook.rb",
            "revision": "2026-10-27",
            "evidence": "banner \"Usage: #{ChefCLI::Dist::EXEC} generate cookbook NAME [options]\"\nshort:       \"-b\",\nlong:        \"--berks\",\ndescription: \"Generate cookbooks using Berkshelf dependency resolution.\",\nlong:        \"--kitchen CONFIGURATION\",\ndescription: \"Generate cookbooks with a specific Test Kitchen configuration (dokken|vagrant) - defaults to vagrant\",\nshort:        \"-P\",\nlong:         \"--policy\",\ndescription:  \"Generate a cookbook using Policyfile dependency resolution (default).\",\nshort:        \"-s\",\nlong:         \"--specs\",\ndescription:  \"Generate a cookbook with sample ChefSpec specs\",\nshort:        \"-V\",\nlong:         \"--verbose\",\ndescription:  \"Show detailed output from the generator\",\nshort:        \"-y\",\nlong:         \"--yaml\",\ndescription:  \"Generate a cookbook with YAML Recipe configuration file as the default.\",\n"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Cookbook name or path",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "src"
            ]
          },
          {
            "id": "berks",
            "label": "Berkshelf",
            "description": "Use Berkshelf dependency resolution.",
            "type": "boolean",
            "option": [
              "--berks",
              "-b"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "policy",
            "label": "Policyfile",
            "description": "Use Policyfile dependency resolution (the default).",
            "type": "boolean",
            "option": [
              "--policy",
              "-P"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "kitchen",
            "label": "Test Kitchen configuration",
            "type": "enum",
            "option": [
              "--kitchen"
            ],
            "choices": [
              {
                "value": "dokken",
                "label": "dokken"
              },
              {
                "value": "vagrant",
                "label": "vagrant"
              }
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "specs",
            "label": "ChefSpec samples",
            "type": "boolean",
            "option": [
              "--specs",
              "-s"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "yaml",
            "label": "YAML recipe",
            "description": "Use a YAML recipe configuration file as the default.",
            "type": "boolean",
            "option": [
              "--yaml",
              "-y"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose",
              "-V"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "new_cookbook",
            "label": "New cookbook",
            "fields": [
              "name",
              "specs"
            ],
            "required": [
              "name"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "berks",
              "policy",
              "kitchen",
              "specs",
              "yaml"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "verbose"
            ]
          }
        ]
      }
    ]
  }
}
