All apps/Sourcegraph CLI

Sourcegraph CLI

src

src is a command line interface to Sourcegraph: code search, GraphQL API requests and batch changes from the terminal.

Runs as src|macOS, Linux, Windows|github.com

Autocomplete

Fig spec, with what the manifest adds · 37 subcommands · 1 option
Published once and never changed; check the digest before caching
sha256
6de46daef82ba2cd9edaa93149da63cc2050d5e86b76c6ae069b9d71f20ebc1c
Size
10227 bytes
Subcommands37 subcommands
src search
Run a code search
src api
Sourcegraph API Access
src login
'src login' helps you authenticate 'src' to access a Sourcegraph instance with your user credentials
src batch
'Batch gives you a declarative structure for finding and modifying code across all of your repositories
src batch apply
Apply batch
src batch exec
Execute batch
src batch new
New batch
src batch preview
Preview batch
src batch repositories
Repositories to batch
src batch validate
Validate batch
src config
'src config' helps you configure 'src'
src config edit
Edit config
src config get
Get configs
src config list
List configs
src extsvc
Edit or view external service configuration on the Sourcegraph instance
src extsvc edit
Edit external service configuration
src extsvc list
List external service configurations
src lsif
Upload an LSIF dumps
src lsif upload
Upload LSIF dump
src orgs
Create, edit, view, or delete organizations and members
src orgs create
Create an organization
src orgs delete
Delete an organization
src orgs get
Get an organization
src orgs list
List organizations
src orgs members
List organization members
src repos
View or delete repositories
src repos delete
Delete repository
src repos get
Get repository
src repos list
List repositories
src serve-git
By default 'src serve-git' will recursively serve your current directory on the address ':3434'
src users
Create, edit, view, tag, or delete users
src users create
Create user
src users delete
Delete user
src users get
Get user
src users list
List users
src users tag
Tag user
src validate
EXPERIMENTAL: Instance validation provides a quick way to check that a Sourcegraph instance functions properly after a fresh install or an update
OptionsOn src itself
--help-h
Show help for src