glab(1)
glab(1) π
okay bestie, welcome to the glab(1) manual β yes, thatβs the glab command-line page, and weβre diving straight in. no preamble energy, just facts with sparkle. β¨
πΈ NAME πΈ
glab-auth-dpop-genβ Generate a DPoP (demonstrating-proof-of-possession) proof JWT. (EXPERIMENTAL)
β¨ SYNOPSIS β¨
glab auth dpop-gen [flags]
π¦ DESCRIPTION π¦
okay so this command generates a demonstrating-proof-of-possession (DPoP) proof JSON Web Token (JWT). DPoP cryptographically binds personal access tokens to their owners. thatβs the whole point, bestie β cryptographic binding. π₯
Use the JWT with a personal access token (PAT) to authenticate to the GitLab API. glab signs the JWT with your SSH private key. The JWT remains valid for five minutes. After it expires, generate another one.
Prerequisites, no skipping:
- An SSH key pair in RSA, ed25519, or ECDSA format.
- Enabled DPoP for your account β docs:
https://docs.gitlab.com/user/profile/personal_access_tokens/#use-dpop-with-personal-access-tokens.
This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/.
π OPTIONS π
--hostname="gitlab.com"β The hostname of the GitLab instance to authenticate with.--pat=""β Personal access token (PAT) to generate a DPoP proof for. Defaults to the token set withglab auth login.-p, --private-key=""β Location of the private SSH key on the local system.
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h, --help[=false]β Show help for this command.
π₯ EXAMPLE π₯
# Generate a DPoP JWT using an SSH private key and a personal access token
glab auth dpop-gen --private-key "~/.ssh/id_rsa" --pat "glpat-xxxxxxxxxxxxxxxxxxxx"
# Generate a DPoP JWT without a PAT (uses the token from 'glab auth login')
glab auth dpop-gen --private-key "~/.ssh/id_rsa"
# Generate a DPoP JWT for a different GitLab instance
glab auth dpop-gen --private-key "~/.ssh/id_rsa" --hostname "https://gitlab.com"
π SEE ALSO π
glab-auth(1)β go give that one a read too, bestie π«Ά
okay thatβs the whole page, mwah π β Auto generated by spf13/cobra, Nov 2026, and you just read the glab(1) manual. byeee π«Ά
π¦ where this page comes from
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms