Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

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

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

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

    • SLAs & Premium Support
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
  1. Docs
  2. cli
  3. references
  4. repos
  5. update-metadata

src repos update-metadata

Flags

NameDescriptionDefault Value
-dump-requestsLog GraphQL requests and responses to stdoutfalse
-get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)false
-insecure-skip-verifySkip validation of TLS certificates against trusted chainsfalse
-keyThe name of the metadata key to be updated (required)
-repoThe ID of the repo with the metadata key to be updated (required if -repo-name is not specified)
-repo-nameThe name of the repo to add the key-value pair metadata to (required if -repo is not specified)
-traceLog the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracingfalse
-user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraphtrue
-valueThe new metadata value of the metadata key to be set. Defaults to null.

Usage

Usage of 'src repos update-metadata':
  -dump-requests
    	Log GraphQL requests and responses to stdout
  -get-curl
    	Print the curl command for executing this query and exit (WARNING: includes printing your access token!)
  -insecure-skip-verify
    	Skip validation of TLS certificates against trusted chains
  -key string
    	The name of the metadata key to be updated (required)
  -repo string
    	The ID of the repo with the metadata key to be updated (required if -repo-name is not specified)
  -repo-name string
    	The name of the repo to add the key-value pair metadata to (required if -repo is not specified)
  -trace
    	Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing
  -user-agent-telemetry
    	Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default true)
  -value string
    	The new metadata value of the metadata key to be set. Defaults to null.

Examples:

  Update the metadata value for a metadata key on a repository:

    	$ src repos update-metadata -repo=repoID -key=my-key -value=new-value

  Omitting -value will set the value of the key to null.

  [DEPRECATED] Note that 'update-kvp' is deprecated and will be removed in future release. Use 'update-metadata' instead.

On this page

  1. `src repos update-metadata`

    1. Flags
    1. Usage