Skip to main content

Manage tags

CLI-only steps

Listing and deleting tags work in the platform UI and with the CLI. Re-tagging and replacing a tag are done with the CLI only.

This guide covers listing, re-tagging, replacing, and deleting tags in a repository. The CLI commands name a repository as project/repo and a tag as project/repo:tag; see Repository target.

List tags​

In the UI:

  1. Open the project and click Repositories in the sidebar.
  2. Click the repository. Its tags are listed under Tags.

With the CLI:

swale tag list my-project/my-repo

Re-tag​

Re-tagging points another tag name at the same data as an existing tag. The source tag is not changed, and no file data is copied or re-uploaded.

The :tag segment is mandatory for this command. The source tag comes from the repository expression and --new-tag/-n provides the target tag name.

swale tag my-project/my-repo:2024-01-15 --new-tag stable

If the target name already exists, re-tagging replaces it: stable above stops pointing at whatever it held before and points at the 2024-01-15 snapshot instead. This is how you advance a moving pointer such as stable or current.

Replace a tag​

There is no separate replace command. Push to a tag name that already exists, and that tag's snapshot is replaced:

swale push my-project/my-repo:latest --path /local/path

The previous snapshot is not kept and cannot be recovered; see What replacing a tag does.

Delete a tag​

Deleting a tag removes it immediately and cannot be undone. Content that no other tag refers to is permanently deleted within three weeks, and billed as account storage until then; see Deleted content.

In the UI:

  1. Open the repository, as in List tags.
  2. Click the trash-can icon next to the tag.
  3. Click Delete to confirm.

With the CLI:

The :tag segment is mandatory for this command.

swale tag delete my-project/my-repo:my-old-tag

Next steps​