Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

    • Batch Changes
    • Code Monitoring
    • Code Ownership
    • Code Insights
    • Notebooks
  • Platform

    • Sourcegraph Admin
    • Sourcegraph Cloud
    • Integrations
  • CLI & API

    • Sourcegraph & Cody CLI
    • Sourcegraph GraphQL API
    • Sourcegraph Stream API
  • Help & Support

    • SLAs & Premium Support
    • How to videos
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
    • Technical changelog
    • Releases
  1. Docs
  2. cli
  3. references
  4. repos
  5. list

src repos list

Flags

NameDescriptionDefault Value
-clonedInclude cloned repositories.true
-descendingWhether or not results should be in descending order.false
-dump-requestsLog GraphQL requests and responses to stdoutfalse
-fFormat for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Name}}") or "{{.|json}}"){{.Name}}
-firstReturns the first n repositories from the list. (use -1 for unlimited)1000
-get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)false
-indexedInclude repositories that have a text search index.true
-insecure-skip-verifySkip validation of TLS certificates against trusted chainsfalse
-names-without-hostWhether or not repository names should be printed without the hostname (or other first path component). If set, -f is ignored.false
-not-clonedInclude repositories that are not yet cloned and for which cloning is not in progress.true
-not-indexedInclude repositories that do not have a text search index.true
-order-byHow to order the results; possible choices are: "name", "created-at"name
-queryReturns repositories whose names match the query. (e.g. "myorg/")
-traceLog the trace ID for requests. See docsfalse
-user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraphtrue

Usage

SHELL
Usage of 'src repos list': -cloned Include cloned repositories. (default true) -descending Whether or not results should be in descending order. -dump-requests Log GraphQL requests and responses to stdout -f string Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Name}}") or "{{.|json}}") (default "{{.Name}}") -first int Returns the first n repositories from the list. (use -1 for unlimited) (default 1000) -get-curl Print the curl command for executing this query and exit (WARNING: includes printing your access token!) -indexed Include repositories that have a text search index. (default true) -insecure-skip-verify Skip validation of TLS certificates against trusted chains -names-without-host Whether or not repository names should be printed without the hostname (or other first path component). If set, -f is ignored. -not-cloned Include repositories that are not yet cloned and for which cloning is not in progress. (default true) -not-indexed Include repositories that do not have a text search index. (default true) -order-by string How to order the results; possible choices are: "name", "created-at" (default "name") -query string Returns repositories whose names match the query. (e.g. "myorg/") -trace Log the trace ID for requests. See https://sourcegraph.com/docs/admin/observability/tracing -user-agent-telemetry Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default true) Examples: List repositories: $ src repos list Print JSON description of repositories list: $ src repos list -f '{{.|json}}' List *all* repositories (may be slow!): $ src repos list -first='-1' List repositories whose names match the query: $ src repos list -query='myquery'

On this page

  1. `src repos list`

    1. Flags
    1. Usage

Edit this page on GitHub
Questions? Give us feedback