Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Changed

- `cloudsmith copy` now prints `Copied: owner/repo/slug (slug_perm)` after a successful copy and includes `slug_perm` in `-F json` output, matching `push`.

## [1.25.0] - 2026-08-24

### Added
Expand Down
20 changes: 17 additions & 3 deletions cloudsmith_cli/cli/commands/copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,26 @@ def copy(
),
maybe_spinner(opts),
):
_, new_slug = copy_package(
slug_perm, new_slug = copy_package(
owner=owner, repo=source, identifier=slug, destination=destination
)

click.secho("OK", fg="green", err=use_stderr)

click.echo(
"Copied: {owner}/{repo}/{slug} ({slug_perm})".format(
owner=click.style(owner, fg="magenta"),
repo=click.style(destination, fg="magenta"),
slug=click.style(new_slug, fg="green"),
slug_perm=click.style(slug_perm, bold=True),
),
err=use_stderr,
)

if no_wait_for_sync:
utils.maybe_print_status_json(opts, {"slug": new_slug, "status": "OK"})
utils.maybe_print_status_json(
opts, {"slug": new_slug, "slug_perm": slug_perm, "status": "OK"}
)
return

wait_for_package_sync(
Expand All @@ -92,4 +104,6 @@ def copy(
attempts=sync_attempts,
)

utils.maybe_print_status_json(opts, {"slug": new_slug, "status": "OK"})
utils.maybe_print_status_json(
opts, {"slug": new_slug, "slug_perm": slug_perm, "status": "OK"}
)
Loading