docs(cli): add argocd repo list example (#23822)

Signed-off-by: Jemin <jemin9812@gmail.com>
This commit is contained in:
Jemin Seo
2025-07-17 20:41:43 +09:00
committed by GitHub
parent 9dfa9db097
commit d83ef2c224
2 changed files with 43 additions and 0 deletions

View File

@@ -330,6 +330,25 @@ func NewRepoListCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
command := &cobra.Command{
Use: "list",
Short: "List configured repositories",
Example: `
# List all repositories
argocd repo list
# List repositories in wide format
argocd repo list -o wide
# List repositories in YAML format
argocd repo list -o yaml
# List repositories in JSON format
argocd repo list -o json
# List urls of repositories
argocd repo list -o url
# Force refresh of cached repository connection status
argocd repo list --refresh hard
`,
Run: func(c *cobra.Command, _ []string) {
ctx := c.Context()

View File

@@ -8,6 +8,30 @@ List configured repositories
argocd repo list [flags]
```
### Examples
```
# List all repositories
argocd repo list
# List repositories in wide format
argocd repo list -o wide
# List repositories in YAML format
argocd repo list -o yaml
# List repositories in JSON format
argocd repo list -o json
# List urls of repositories
argocd repo list -o url
# Force refresh of cached repository connection status
argocd repo list --refresh hard
```
### Options
```