Skip to content

Add code-mappings upload command structure #1076

@romtsn

Description

@romtsn

Context

New sentry-cli subcommand for uploading code mappings in bulk, targeting the new backend endpoint.

What

Scaffold the new CLI command:

sentry-cli code-mappings upload mappings.json \
  --repo "getsentry/sentry-android" \
  --default-branch "main" \
  --org <slug> --project <slug>

Arguments:

Argument Description Required
mappings.json Path to mappings file (JSON array) Yes
--repo Repository name (e.g., owner/repo) No (can infer from git)
--default-branch Branch for source linking No (default: "main")
--org Organization slug Yes (from config/env)
--project Sentry project slug Yes (from config/env)

Repo

This is in the sentry-cli repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions