Dashboardclisentry-cli v3→v4 codemod: authToken sho…

sentry-cli v3→v4 codemod: authToken shorthand and execute→run edge cases

Category: gotcha
Confidence: 0.95
ID: 019fb464-b7be-7465-b55b-b7969b09d436
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 12na8hXrpthm52Hlq
Created: 2026-07-13 12:15:00
Updated: 2026-07-30 18:58:47

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 2026-07-21

Content

Trap 1: { authToken } shorthand — renaming key authTokentoken while leaving shorthand=true produces { token } referencing a nonexistent binding. Fix: when shorthand=true and key is authToken, disable shorthand and emit token: authToken. Trap 2: execute([...])run(...) passes raw v3 argv tokens (e.g. releases, new) verbatim; v4 command paths differ (releases→release, new→create). Fix: insert // TODO(sentry-v4) comment before the rewritten call reminding the user to remap command names. Trap 3: --header shim overwrites SENTRY_CUSTOM_HEADERS on each iteration. Fix: accumulate into semicolon-separated string; assign once after loop. v4 format: "Name: Value; Name2: Value2".

Move to: