harbor tag retention
harbor tag retention
Description
Manage tag retention rules in the project
Synopsis
Manage tag retention rules in the project in Harbor.
The ‘retention’ command allows users to create, list, and delete tag retention rules within a project. Tag retention rules help in managing and controlling the lifecycle of tags by defining rules for automatic cleanup and retention.
A user can only create up to 15 tag retention rules per project.
Examples
harbor tag retention create # Create a new tag retention rule
harbor tag retention list # List all tag retention rules in the project
harbor tag retention delete # Delete a specific tag retention rules
Options
-h, --help help for retention
Options inherited from parent commands
-c, --config string config file (default is $HOME/.config/harbor-cli/config.yaml)
-o, --output-format string Output format. One of: json|yaml|csv
-v, --verbose verbose output
SEE ALSO
- harbor tag - Manage tags in Harbor registry
- harbor tag retention create - Create a tag retention rule in a project
- harbor tag retention delete - Delete a tag retention rule for a project
- harbor tag retention list - List tag retention rules of a project
On this page
Contributing