You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): add sentry cli import for .sentryclirc migration (#975)
Add a one-time import path for users migrating from the old Rust-based
sentry-cli. Two complementary features:
1. `sentry cli import` — explicit command that scans for .sentryclirc
files, shows what was found, and imports settings into SQLite with
proper host scoping. Supports --yes (CI), --dry-run, --url (trust
override), and --skip-validation.
2. Auto-detect middleware — when any command hits AuthError and a
.sentryclirc token passes the trust gate, prompts to import before
falling back to the OAuth login flow.
Security: content-based trust model (same-file rule). Token and URL
must originate from the same file — no path is inherently trusted.
SHA-256 file hashes stored at import time detect post-import tampering.
Auto-prompt disabled in CI (isatty check); project-local files excluded.
Also updates the login command's rcTokenHint to mention `sentry cli import`
as an alternative to `--token`.
0 commit comments