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. extensions
  5. publish

src extensions publish

Flags

NameDescriptionDefault Value
-dump-requestsLog GraphQL requests and responses to stdoutfalse
-extension-idOverride the extension ID in the manifest. (default: read from -manifest file)
-forceForce publish the extension, even if there are validation problems or other warnings.false
-get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)false
-git-headOverride the current git commit for the bundle. (default: uses git rev-parse head)
-insecure-skip-verifySkip validation of TLS certificates against trusted chainsfalse
-manifestThe extension manifest file.package.json
-traceLog the trace ID for requests. See docsfalse
-urlOverride the URL for the bundle. (example: set to http://localhost:1234/myext.js for local dev with parcel)
-user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraphtrue

Usage

SHELL
Usage of 'src extensions publish': -dump-requests Log GraphQL requests and responses to stdout -extension-id string Override the extension ID in the manifest. (default: read from -manifest file) -force Force publish the extension, even if there are validation problems or other warnings. -get-curl Print the curl command for executing this query and exit (WARNING: includes printing your access token!) -git-head git rev-parse head Override the current git commit for the bundle. (default: uses git rev-parse head) -insecure-skip-verify Skip validation of TLS certificates against trusted chains -manifest string The extension manifest file. (default "package.json") -trace Log the trace ID for requests. See https://sourcegraph.com/docs/admin/observability/tracing -url string Override the URL for the bundle. (example: set to http://localhost:1234/myext.js for local dev with parcel) -user-agent-telemetry Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default true) Publish an extension to Sourcegraph, creating it (if necessary). Examples: Publish the "alice/myextension" extension described by package.json in the current directory: $ cat package.json { "name": "myextension", "publisher": "alice", "title": "My Extension", "main": "dist/myext.js", "scripts": {"sourcegraph:prepublish": "parcel build --out-file dist/myext.js src/myext.ts"} } $ src extensions publish Notes: Source maps are supported (for easier debugging of extensions). If the main JavaScript bundle is "dist/myext.js", it looks for a source map in "dist/myext.map".

On this page

  1. `src extensions publish`

    1. Flags
    1. Usage

Edit this page on GitHub
Questions? Give us feedback