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. extsvc
  5. edit

src extsvc edit

Flags

NameDescriptionDefault Value
-dump-requestsLog GraphQL requests and responses to stdoutfalse
-exclude-reposwhen specified, add these repositories to the exclusion list
-get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)false
-idID of the external service to edit
-insecure-skip-verifySkip validation of TLS certificates against trusted chainsfalse
-nameexact name of the external service to edit
-renamewhen specified, renames the external service
-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 extsvc edit': -dump-requests Log GraphQL requests and responses to stdout -exclude-repos string when specified, add these repositories to the exclusion list -get-curl Print the curl command for executing this query and exit (WARNING: includes printing your access token!) -id string ID of the external service to edit -insecure-skip-verify Skip validation of TLS certificates against trusted chains -name string exact name of the external service to edit -rename string when specified, renames the external service -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: Edit an external service configuration on the Sourcegraph instance: $ cat new-config.json | src extsvc edit -id 'RXh0ZXJuYWxTZXJ2aWNlOjQ=' $ src extsvc edit -name 'My GitHub connection' new-config.json Edit an external service name on the Sourcegraph instance: $ src extsvc edit -name 'My GitHub connection' -rename 'New name' Add some repositories to the exclusion list of the external service: $ src extsvc edit -name 'My GitHub connection' -exclude-repos 'github.com/foo/one' 'github.com/foo/two'

On this page

  1. `src extsvc edit`

    1. Flags
    1. Usage

Edit this page on GitHub
Questions? Give us feedback