release(eng-12003): Release of arbitrary metadata support#294
Conversation
|
TODO: Bump version |
…for-arbitrary-metadata
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
There was a problem hiding this comment.
Pull request overview
Documentation-only release PR for cloudsmith-cli v1.17.0. Updates README.md and CHANGELOG.md to document the new arbitrary metadata support (standalone cloudsmith metadata command group and push-time --metadata-* flags), and incidentally refreshes example placeholders in existing push/download sections from your-account to your-org.
Changes:
- Add README sections for
Package MetadataandAttaching Metadata During Push, including failure-mode precedence docs. - Update CHANGELOG with a 1.17.0 entry dated 2026-05-18 covering the metadata command group and push integration.
- Rename
your-accounttoyour-orgin pre-existing push/download examples for consistency.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| README.md | Documents new metadata command group and --metadata-* push flags; updates placeholder org name in existing examples. |
| CHANGELOG.md | Adds 1.17.0 release entry describing metadata command group, push-time flags, and failure mode configuration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Release PR for
cloudsmith-cliv1.17.0.This release introduces arbitrary package metadata to the CLI: a standalone
cloudsmith metadatacommand group (CRUD) and push-time--metadata-*flags on everycloudsmith push <format>subcommand. SBOMs, JFrog BuildInfo documents, and other custom JSON payloads can now be attached to packages in a single push command — or managed afterwards via the dedicated subcommand group.What's in this PR
README.md: documents themetadatacommand group and the push-time--metadata-*flags, following the existing structure (one section per feature, examples, failure-behavior note).CHANGELOG.md: adds the1.17.0entry covering both the standalone command group and the push integration.Feature recap
cloudsmith metadatacommand groupmetadata add OWNER/REPO/PACKAGE --content-type ... (--file PATH | --content JSON) [--source-identity ...]metadata list OWNER/REPO/PACKAGE [METADATA_SLUG_PERM] [--source-kind ...] [--classification ...]metadata update OWNER/REPO/PACKAGE METADATA_SLUG_PERM (--file PATH | --content JSON) [--source-identity ...]metadata remove OWNER/REPO/PACKAGE METADATA_SLUG_PERM [-y]Content type is set on creation and cannot be changed. Defaults
--source-identitytocloudsmith-cli@<version>. Supports--output-format json | pretty_json.Push-time
--metadata-*flagsEvery
cloudsmith push <format>subcommand now accepts:--metadata-content-file PATH(or-for stdin)--metadata-content JSON--metadata-content-type MIME--metadata-source-identity TEXT--on-metadata-failure [error|warn]: per-push override for how validation/attach failures are handled.error(default) aborts the push;warndowngrades to a warning and uploads the package anyway.Configuration
metadata_failure_modekey inconfig.ini(error|warn|0) sets the default failure mode for push-time metadata. Resolution precedence is--on-metadata-failureflag →$CLOUDSMITH_METADATA_FAILURE_MODEenv var →metadata_failure_modeconfig key →errordefault.Type of Change
Additional Notes
--on-metadata-failure warnCLI flag (per-push),$CLOUDSMITH_METADATA_FAILURE_MODE=warn(per-shell), ormetadata_failure_mode = warninconfig.ini(persistent).Examples
Push:
Push with invalid metadata:
Push with invalid metadata and
$CLOUDSMITH_METADATA_FAILURE_MODEset towarn:Manage existing metadata: