Deployments.ai Docs
Command reference

deployments hosted-code-artifact

Immutable hosted code tool artifacts

CommandSummary
deployments hosted-code-artifact createUpload hosted code tool source
deployments hosted-code-artifact showShow 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 (SDK createHostedCodeArtifact).
  • Needs an environment: --env or the saved context.
  • Sends an idempotency key. The CLI generates one per run; pass --idempotency-key to retry safely.
FlagTypeRequiredDefaultDescription
--languagestringyesjavascript, typescript, or python
--sourcestringyesTool 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>
FlagTypeRequiredDefaultDescription
--content-hashstringyesArtifact content hash (sha256:<hex>)

Also accepts the global flags.

On this page