Command reference
deployments hosted-code-artifact
Immutable hosted code tool artifacts
| Command | Summary |
|---|---|
deployments hosted-code-artifact create | Upload hosted code tool source |
deployments hosted-code-artifact show | Show a hosted code tool artifact |
deployments hosted-code-artifact create
Upload hosted code tool source.
deployments hosted-code-artifact create --language <language> --source <source>- Calls
POST /v1/hosted-code-artifacts(SDKcreateHostedCodeArtifact). - Needs an environment:
--envor the saved context. - Sends an idempotency key. The CLI generates one per run; pass
--idempotency-keyto retry safely.
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--language | string | yes | javascript, typescript, or python | |
--source | string | yes | Tool source code |
Also accepts the global flags.
deployments hosted-code-artifact show
Show a hosted code tool artifact.
deployments hosted-code-artifact show --content-hash <content-hash>- Calls
GET /v1/hosted-code-artifacts/{contentHash}(SDKgetHostedCodeArtifact). - Needs an environment:
--envor the saved context.
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--content-hash | string | yes | Artifact content hash (sha256:<hex>) |
Also accepts the global flags.