{
  "name": "asciinema",
  "description": "Terminal session recorder",
  "options": [
    {
      "names": [
        "--version"
      ],
      "description": "Ouput version information and exit"
    },
    {
      "names": [
        "-h",
        "--help"
      ],
      "description": "Output help message and exit",
      "isPersistent": true
    }
  ],
  "subcommands": [
    {
      "name": "rec",
      "description": "Start a recording",
      "options": [
        {
          "names": [
            "--stdin"
          ],
          "description": "Enable stdin (keyboard) recording"
        },
        {
          "names": [
            "--append"
          ],
          "description": "Append to existing recording"
        },
        {
          "names": [
            "--raw"
          ],
          "description": "Save raw output, without timing or other metadata"
        },
        {
          "names": [
            "--overwrite"
          ],
          "description": "Overwrite the recording if it already exists"
        },
        {
          "names": [
            "-c",
            "--command"
          ],
          "description": "Specify command to record, defaults to $SHELL",
          "separator": "=",
          "args": [
            {
              "name": "command",
              "isCommand": true
            }
          ]
        },
        {
          "names": [
            "-e",
            "--env"
          ],
          "description": "List of environment variables to capture",
          "separator": "=",
          "args": [
            {
              "name": "variables"
            }
          ]
        },
        {
          "names": [
            "-t",
            "--title"
          ],
          "description": "Specify the title of the asciicast",
          "separator": "=",
          "args": [
            {
              "name": "title"
            }
          ]
        },
        {
          "names": [
            "-i",
            "--idle-time-limit"
          ],
          "description": "Limit recorded terminal inactivity to max amount of seconds",
          "separator": "=",
          "args": [
            {
              "name": "seconds"
            }
          ]
        },
        {
          "names": [
            "--cols"
          ],
          "description": "Override terminal columns for recorded process",
          "separator": "=",
          "args": [
            {
              "name": "cols"
            }
          ]
        },
        {
          "names": [
            "--rows"
          ],
          "description": "Override terminal rows for recorded process",
          "separator": "=",
          "args": [
            {
              "name": "rows"
            }
          ]
        },
        {
          "names": [
            "-y",
            "--yes"
          ],
          "description": "Answer “yes” to all prompts (e.g. upload confirmation)"
        },
        {
          "names": [
            "-q",
            "--quiet"
          ],
          "description": "Be quiet, suppress all notices/warnings (implies -y)"
        }
      ],
      "args": [
        {
          "name": "filename",
          "isOptional": true
        }
      ]
    },
    {
      "name": "play",
      "description": "Replay recorded asciicast in a terminal",
      "options": [
        {
          "names": [
            "-i",
            "--idle-time-linit"
          ],
          "description": "Limit replayed terminal inactivity",
          "separator": "=",
          "args": [
            {
              "name": "seconds",
              "description": "Can be fractional"
            }
          ]
        },
        {
          "names": [
            "-s",
            "--speed"
          ],
          "description": "Playback speed",
          "separator": "=",
          "args": [
            {
              "name": "factor",
              "description": "Can be fractional"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "file or URL",
          "template": "filepaths",
          "suggestions": [
            "-"
          ]
        }
      ]
    },
    {
      "name": "cat",
      "description": "Print full output of recorded asciicast to a terminal",
      "args": [
        {
          "name": "file or URL",
          "template": "filepaths",
          "suggestions": [
            "-"
          ]
        }
      ]
    },
    {
      "name": "upload",
      "description": "Upload recorded asciicast to asciinema.org site",
      "args": [
        {
          "name": "file or URL",
          "template": "filepaths",
          "suggestions": [
            "-"
          ]
        }
      ]
    },
    {
      "name": "auth",
      "description": "Link and manage your install ID with your asciinema.org user account"
    }
  ]
}
