diff --git a/cmd/argo/commands/archive/list_label_keys.go b/cmd/argo/commands/archive/list_label_keys.go index 9a37b3ca934d..9fc699a4e85a 100644 --- a/cmd/argo/commands/archive/list_label_keys.go +++ b/cmd/argo/commands/archive/list_label_keys.go @@ -13,6 +13,8 @@ func NewListLabelKeyCommand() *cobra.Command { command := &cobra.Command{ Use: "list-label-keys", Short: "list workflows label keys in the archive", + Example: `# List workflows label keys in the archive: + argo archive list-label-keys`, RunE: func(cmd *cobra.Command, args []string) error { ctx, apiClient, err := client.NewAPIClient(cmd.Context()) if err != nil { diff --git a/docs/cli/argo_archive_list-label-keys.md b/docs/cli/argo_archive_list-label-keys.md index c853e40f2bc9..8b3e35451d8f 100644 --- a/docs/cli/argo_archive_list-label-keys.md +++ b/docs/cli/argo_archive_list-label-keys.md @@ -6,6 +6,13 @@ list workflows label keys in the archive argo archive list-label-keys [flags] ``` +### Examples + +``` +# List workflows label keys in the archive: + argo archive list-label-keys +``` + ### Options ```