diff --git a/cmd/lakectl/cmd/tag.go b/cmd/lakectl/cmd/tag.go index bb156b531d2..1946b444e12 100644 --- a/cmd/lakectl/cmd/tag.go +++ b/cmd/lakectl/cmd/tag.go @@ -61,9 +61,10 @@ var tagListCmd = &cobra.Command{ } var tagCreateCmd = &cobra.Command{ - Use: "create ", - Short: "Create a new tag in a repository", - Args: cobra.ExactArgs(tagCreateRequiredArgs), + Use: "create ", + Short: "Create a new tag in a repository", + Example: "lakectl tag create lakefs://example-repo/example-tag 2397cc9a9d04c20a4e5739b42c1dd3d8ba655c0b3a3b974850895a13d8bf9917", + Args: cobra.ExactArgs(tagCreateRequiredArgs), Run: func(cmd *cobra.Command, args []string) { tagURI := MustParseRefURI("tag", args[0]) Fmt("Tag ref: %s\n", tagURI.String()) diff --git a/docs/reference/commands.md b/docs/reference/commands.md index de5441906fd..daa639ebe42 100644 --- a/docs/reference/commands.md +++ b/docs/reference/commands.md @@ -2541,6 +2541,13 @@ Create a new tag in a repository lakectl tag create [flags] ``` +#### Examples +{:.no_toc} + +``` +lakectl tag create lakefs://example-repo/example-tag 2397cc9a9d04c20a4e5739b42c1dd3d8ba655c0b3a3b974850895a13d8bf9917 +``` + #### Options {:.no_toc}