{
  "description": "Create a LaunchDarkly feature flag through the CLI. Other resource commands, dev-server and config are left out. The access token is usually stored with ldcli config, so it is optional here.",
  "name": "ldcli",
  "subcommands": [
    {
      "name": "flags",
      "subcommands": [
        {
          "name": "create",
          "description": "Create a feature flag in a project from a JSON body.",
          "options": [
            {
              "names": [
                "--project"
              ],
              "description": "Project key",
              "args": {
                "name": "project",
                "isOptional": false,
                "suggestions": [
                  {
                    "name": "default",
                    "description": "default"
                  }
                ]
              }
            },
            {
              "names": [
                "--data"
              ],
              "description": "For example {\"name\": \"My Test Flag\", \"key\": \"my-test-flag\"}.",
              "args": {
                "name": "data",
                "description": "For example {\"name\": \"My Test Flag\", \"key\": \"my-test-flag\"}.",
                "isOptional": false
              }
            },
            {
              "names": [
                "--access-token"
              ],
              "description": "Leave empty to use the token saved by ldcli config. A token typed here stays in shell history.",
              "args": {
                "name": "access_token",
                "description": "Leave empty to use the token saved by ldcli config. A token typed here stays in shell history.",
                "isOptional": false
              }
            },
            {
              "names": [
                "--output"
              ],
              "description": "Output format",
              "args": {
                "name": "output",
                "isOptional": false,
                "suggestions": [
                  {
                    "name": "plaintext",
                    "description": "Plain text"
                  },
                  {
                    "name": "json",
                    "description": "JSON"
                  }
                ]
              }
            },
            {
              "names": [
                "--json"
              ],
              "description": "JSON output"
            }
          ]
        }
      ]
    }
  ]
}
