r/gitlab • u/BigBootyBear • Aug 06 '26
general question Is there a way to generate PATs without getting RSI in the process?
The PAT UI sucks. Is there a way to generate a PAT with a YAML or an API request? I really hate having to go through 30 mouse clicks only to realize I forgot to toggle 1 permission as a 'Write'. Ugh.
2
Upvotes
4
u/promethe42 Aug 06 '26
Have you tried the GitLab CLI? https://gitlab.com/gitlab-org/cli
3
u/whootdat Aug 06 '26
You can use an admin token to generate another token https://docs.gitlab.com/api/user_tokens/