Skip to content

Comments

mass artifact update#212

Merged
coryodaniel merged 2 commits intomainfrom
artifact-import-update
Feb 20, 2026
Merged

mass artifact update#212
coryodaniel merged 2 commits intomainfrom
artifact-import-update

Conversation

@coryodaniel
Copy link
Member

@coryodaniel coryodaniel commented Feb 20, 2026

Summary

  • Add mass artifact update command for updating imported artifact payloads
  • Supports --file (required) for the new payload and --name (optional) for renaming
  • Only works for imported artifacts; provisioned artifacts can only be updated by a provisioner.

Details

  • The GraphQL mutation only sends name and payload — deprecated specs/data fields are never included so legacy artifact data is preserved
  • When --name is omitted, the CLI fetches the existing artifact to echo back its current name (backend requires name on update)
  • Follows existing patterns: API wrapper in pkg/api/artifact.go, command logic in pkg/commands/artifact/update.go, cobra wiring in cmd/artifact.go

Usage

# Update artifact payload
mass artifact update <artifact-id> -f artifact.json

# Update artifact payload and rename
mass artifact update <artifact-id> -f artifact.json -n new-name

@coryodaniel coryodaniel merged commit 391133a into main Feb 20, 2026
3 of 4 checks passed
@coryodaniel coryodaniel deleted the artifact-import-update branch February 20, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant