glab deploy-key
Overview
Manage deploy keys.
USAGE
glab deploy-key <command> [command] [--flags]
COMMANDS
add [key-file] [--flags] Add a deploy key to a GitLab project.
delete <key-id> Deletes a single deploy key specified by the ID.
get <key-id> Returns a single deploy key specified by the ID.
list [--flags] Get a list of deploy keys for the current project.
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
glab deploy-key --help
v1.89.0 Updates
v1.89.0+:
glab deploy-key listandglab deploy-key getsupport--output json/-F jsonfor structured output, ideal for agent automation.
# List deploy keys with JSON output (v1.89.0+)
glab deploy-key list --output json
glab deploy-key list -F json
# Get a specific deploy key with JSON output (v1.89.0+)
glab deploy-key get <key-id> --output json
glab deploy-key get <key-id> -F json
Subcommands
See references/commands.md for full --help output.