Add sentry token subcommands (create, list, delete)

Open
#1,110 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
cli

Research direction

No files or tests are named. Start by tracing the existing sentry auth token command and the CLI's command structure, then identify how authenticated account or organization token operations are exposed. Done means create, list, and delete subcommands work for org or personal tokens, with creation output on stdout and deletion by ID or name.

Written by the indexing model from the issue text.

Description

enhancement jared

Currently, creating a Sentry auth token (org or personal) requires navigating to the Sentry UI manually. This adds friction for local dev workflows and makes it impossible for agents or automated scripts to provision tokens without human intervention.

Add a sentry token subcommand group:

  • sentry token create — create a new org or personal token, printing the result to stdout
  • sentry token list — list existing tokens for the authenticated account/org
  • sentry token delete — delete a token by ID or name

Current behavior: users must visit the Sentry UI to create tokens; sentry auth token only prints the CLI's stored token.

Gap: no programmatic path to mint a new token from the CLI, blocking agent-driven and CI setup flows that need a fresh token scoped for a specific purpose.

Dominant language
TypeScript
Stars
121
Forks
14
Avg merge
22h 3m
Merged PRs (30d)
94

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/cli

All issues in getsentry/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.