Add artifact get, download, and definition delete commands #200
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds four new CLI commands to enhance artifact and artifact definition management:
mass artifact get- Retrieve artifact details with JSON and markdown output supportmass artifact download- Download artifacts in various formats (json, yaml, etc.)mass definition delete- Delete artifact definitions with confirmation promptmass logs- Retrieve deployment logs for a specific deploymentNew Commands
1.
mass artifact getRetrieves detailed information about artifacts including ID, name, type, specs, formats, and related package/definition information.
Features:
--output jsonflagExamples:
Get artifact using UUID (imported artifacts)
Get artifact using friendly slug (provisioned artifacts)
2.
mass artifact downloadDownloads artifact data in the specified format, rendered according to the artifact definition's schema.
Features:
Examples:
Download artifact in JSON format (default)
Download artifact in YAML format
Download and save to file
mass artifact download 12345678-1234-1234-1234-123456789012 -f json > artifact.json3.
mass definition deletePermanently deletes artifact definitions from Massdriver.
Features:
--forceflag to skip confirmation (useful for automation)Examples:
Delete with confirmation prompt
Delete without confirmation
4.
mass logsRetrieves and outputs the log stream for a specific deployment.
Features:
Examples:
Get logs for a deployment
Pipe logs to a file
mass logs 12345678-1234-1234-1234-123456789012 > deployment.logArtifact ID Formats
Both
artifact getandartifact downloadsupport two artifact identification formats:12345678-1234-1234-1234-123456789012)api-prod-database-connection)Friendly slug format:
PROJECT_SLUG-ENVIRONMENT_SLUG-MANIFEST_SLUG-BUNDLE_ARTIFACT_FIELD_NAMEBreaking Changes
None. The
DownloadArtifactfunction signature change is backward compatible as existing callers can pass "json" as the format parameter.Documentation