CLI
Interact with Sourcegraph and Cody from the command line interface.
src
is a command line interface to Sourcegraph that allows you to search code from your terminal, create and apply batch changes, and manage and administrate repositories, users, and more.
Cody CLI is the same technology that powers the Cody IDE plugins but available from the command-line. Use Cody CLI for ad-hoc exploration in your terminal or as part of scripts to automate your workflows.
Quick Links
Sourcegraph src CLI
A quickstart tutorial to learn about the src CLI in minutes.
Cody CLI
Learn how to use Cody with the command line interface ecosystem.
Command reference
Check the commands available in the src CLI and their flags.
Create a batch change
src is the gateway to Sourcegraph's batch change functionality: find out how to create a batch change with it in less than 10 minutes.