shaofengshi commented on code in PR #5161: URL: https://github.com/apache/gravitino/pull/5161#discussion_r1833919487
########## docs/cli.md: ########## @@ -410,3 +410,77 @@ gcli group list --metalake metalake_demo ```bash gcli group delete --metalake metalake_demo --group new_group ``` + +### Tag commands + +#### Display a tag's details + +```bash +gcli tag details --metalake metalake_demo --tag tagA +``` + +#### Create a tag + +```bash +gcli tag create --metalake metalake_demo --tag tagA +``` + +#### List all tag + +```bash +gcli tag list --metalake metalake_demo +``` + +#### Delete a tag + +```bash +gcli tag delete --metalake metalake_demo --tag tagA +``` + +#### Add a tag to an entity + +```bash +gcli tag set --metalake metalake_demo --name catalog_postgres.hr --tag tagA +``` + +#### Remove a tag from an entity + +```bash +gcli tag remove --metalake metalake_demo --name catalog_postgres.hr --tag tagA +``` + +#### List all tags on an entity + +```bash +gcli tag remove --metalake metalake_demo --name catalog_postgres.hr --tag tagA +``` + +#### List the properties of a tag + +```bash +gcli tag properties --metalake metalake_demo --tag tagA +``` + +#### Set a properties of a tag + +```bash +gcli tag set --metalake metalake_demo --tag tagA --property test --value value +``` + +#### Delete a properties of a tag Review Comment: "a property"? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
