diff --git a/cmd/argo/commands/clustertemplate/list.go b/cmd/argo/commands/clustertemplate/list.go index d26fd1243853..d720f58b9fb7 100644 --- a/cmd/argo/commands/clustertemplate/list.go +++ b/cmd/argo/commands/clustertemplate/list.go @@ -22,6 +22,15 @@ func NewListCommand() *cobra.Command { command := &cobra.Command{ Use: "list", Short: "list cluster workflow templates", + Example: `# List Cluster Workflow Templates: + argo cluster-template list + +# List Cluster Workflow Templates with additional details such as labels, annotations, and status: + argo cluster-template list --output wide + +# List Cluster Workflow Templates by name only: + argo cluster-template list -o name +`, Run: func(cmd *cobra.Command, args []string) { ctx, apiClient := client.NewAPIClient(cmd.Context()) serviceClient, err := apiClient.NewClusterWorkflowTemplateServiceClient() diff --git a/docs/cli/argo_cluster-template_list.md b/docs/cli/argo_cluster-template_list.md index 9526874ab320..71068b735c77 100644 --- a/docs/cli/argo_cluster-template_list.md +++ b/docs/cli/argo_cluster-template_list.md @@ -6,6 +6,20 @@ list cluster workflow templates argo cluster-template list [flags] ``` +### Examples + +``` +# List Cluster Workflow Templates: + argo cluster-template list + +# List Cluster Workflow Templates with additional details such as labels, annotations, and status: + argo cluster-template list --output wide + +# List Cluster Workflow Templates by name only: + argo cluster-template list -o name + +``` + ### Options ```