| title | `glab deploy-token get` |
|---|---|
| stage | AI Clients |
| group | Developer Clients |
| info | To determine the technical writer assigned to the Stage/Group associated with this page, see <https://handbook.gitlab.com/handbook/marketing/product-and-technical-marketing/technical-writing/#assignments> |
Get a deploy token.
Get a single deploy token of a project or a group, by its ID.
The output never contains the token value. A token value is shown only once, when the token is created.
Token IDs come from glab deploy-token list.
glab deploy-token get <token-id> [flags]
# Get deploy token 42 of the current project
glab deploy-token get 42
# Get a deploy token of a specific project
glab deploy-token get 42 --repo user/my-repo
# Get a group's deploy token
glab deploy-token get 42 --group group/sub-group
# Get a deploy token as JSON
glab deploy-token get 42 --output json -g, --group string Get a deploy token of the group <group> instead of a project.
--jq string Filter JSON output with a jq expression.
-F, --output string Format output as: text, json. (default "text")
-R, --repo string Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.
-h, --help Show help for this command.