--- name: glab-incident description: Manage GitLab incidents for issue tracking and incident management. Use when creating incidents, managing incident response, or linking incidents to issues. Triggers on incident, incident management, create incident, incident response. --- # glab incident ## Overview ``` Work with GitLab incidents. USAGE glab incident [command] [--flags] EXAMPLES $ glab incident list COMMANDS close [ | ] [--flags] Close an incident. list [--flags] List project incidents. note [--flags] Comment on an incident in GitLab. reopen [ | ] [--flags] Reopen a resolved incident. subscribe Subscribe to an incident. unsubscribe Unsubscribe from an incident. view [--flags] Display the title, body, and other information about an incident. FLAGS -h --help Show help for this command. -R --repo Select another repository. Can use either `OWNER/REPO` or `GROUP/NAMESPACE/REPO` format. Also accepts full URL or Git URL. ``` ## Quick start ```bash glab incident --help # Comment with a local attachment glab incident note 123 --message "Current dashboard state" --attach ./dashboard.png ``` ## Attach files to incident comments The experimental `--attach ` flag uploads a file to the incident's project and appends the returned Markdown reference to the comment. Repeat it for multiple files. An attachment can be the entire comment and skips the editor; `--attach -` reads the attachment from standard input. ## Subcommands See [references/commands.md](references/commands.md) for full `--help` output.