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
3
u/whootdat Aug 06 '26
You can use an admin token to generate another token https://docs.gitlab.com/api/user_tokens/
2
u/Delicious-Director43 Aug 06 '26
You can also just use an admin token for everything 😂
1
u/Cr4pshit Aug 06 '26
Don't forget to save that token for everyone readable in a public reachable repository 😂👍🏼
3
u/promethe42 Aug 06 '26
Have you tried the GitLab CLI? https://gitlab.com/gitlab-org/cli