{
  "description": "Profile a command or an HTTP request with the Blackfire CLI. Authentication comes from ~/.blackfire.ini or BLACKFIRE_CLIENT_ID/BLACKFIRE_CLIENT_TOKEN; other subcommands are left out.",
  "name": "blackfire",
  "subcommands": [
    {
      "name": "run",
      "description": "Everything after the command is passed to the profiled program unchanged.",
      "options": [
        {
          "names": [
            "--env"
          ],
          "description": "Environment UUID or name that receives the profile.",
          "args": {
            "name": "env",
            "description": "Environment UUID or name that receives the profile.",
            "isOptional": false
          },
          "separator": "="
        },
        {
          "names": [
            "--json"
          ],
          "description": "JSON output"
        }
      ],
      "args": [
        {
          "name": "program",
          "description": "For example php my-script.php.",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    },
    {
      "name": "curl",
      "description": "Runs curl with Blackfire headers; other curl options are accepted by the tool but not modelled here.",
      "options": [
        {
          "names": [
            "--env"
          ],
          "description": "Environment",
          "args": {
            "name": "env",
            "isOptional": false
          },
          "separator": "="
        },
        {
          "names": [
            "--json"
          ],
          "description": "JSON output"
        }
      ],
      "args": [
        {
          "name": "url",
          "isOptional": true
        }
      ]
    }
  ]
}
