Skip to content

Add a migration guide for the rebuilt src CLI - #2164

Open
BolajiOlajide wants to merge 1 commit into
mainfrom
bolaji/cli-migration-guide
Open

BolajiOlajide wants to merge 1 commit into
mainfrom
bolaji/cli-migration-guide

Conversation

@BolajiOlajide

Copy link
Copy Markdown
Contributor

The src CLI is being rebuilt on Cobra in sourcegraph/sourcegraph (cmd/src), and users moving from the legacy sourcegraph/src-cli binary need to know what breaks. This adds /cli/migration, linked from the CLI sidebar and landing page. It covers the setup changes (SRC_ENDPOINT is now required, no config file, src auth login, TLS and proxy changes), flag syntax, moving scripts from -f templates to --output json and the new exit codes, removed and renamed commands, and the changes to each command.

The content comes from cmd/src/STATE_OF_THE_CLI.md, which tracks every difference from the legacy CLI. Key behaviors were checked against a build of cmd/src from main.

Merge timing: the rebuilt CLI is not publicly released yet, so hold this until it ships. Before merging:

  • The install section links to the quickstart, which still installs the legacy CLI. It needs the rebuilt CLI's install steps.
  • cli/explanations/env.mdx and the quickstart still describe legacy behavior (SRC_ENDPOINT defaulting to sourcegraph.com, SRC_HEADER_*, src login, src auth token).
  • The guide lists src auth token, SRC_HEADERS, and SRC_PROXY as unavailable; update it if any of them land first.

Covers the setup, flag, and scripting changes between the legacy src CLI and the rebuilt one, removed and renamed commands, and the changes to each command. Linked from the CLI sidebar and landing page.
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Nov 13, 2026 4:57pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor
Page Before After Diff
/cli prod preview +6
/cli/migration 🆕 — preview +375

This branch was successfully deployed

1 active deployment
Preview — 1f6004eb Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant