The ls command lists repositories specified in your repos.yaml file with
optional filtering capabilities.
repos ls [OPTIONS] [REPOS]...This command is used to display information about repositories defined in your
configuration. It's particularly useful for reviewing which repositories will be
included when using specific tag filters, helping you preview the scope of
operations before running commands like clone, run, or pr.
The output includes repository names, URLs, tags, configured paths, and branches for each repository.
[REPOS]...: A space-separated list of specific repository names to list. If not provided,reposwill fall back to filtering by tags or listing all repositories defined in the config.
-c, --config <CONFIG>: Specifies the path to the configuration file. Defaults torepos.yaml.-t, --tag <TAG>: Filters repositories to list only those that have the specified tag. This option can be used multiple times to include repositories with any of the specified tags (OR logic).-e, --exclude-tag <EXCLUDE_TAG>: Excludes repositories that have the specified tag. This can be used to filter out repositories from the listing. This option can be used multiple times.-h, --help: Prints help information.
For each repository, the command displays:
- Name: The repository identifier
- URL: The Git remote URL
- Tags: Associated tags (if any)
- Path: Configured local path (if specified)
- Branch: Configured branch (if specified)
The output also includes a summary showing the total count of repositories found.
repos lsrepos ls repo-one repo-twoThis is particularly useful to see which repositories will be affected when running commands with the same tag filter.
repos ls --tag backendThis will list repositories that have either the frontend or the rust
tag.
repos ls -t frontend -t rustThis will list all repositories except those with the deprecated tag.
repos ls --exclude-tag deprecatedThis will list all repositories with the backend tag but exclude those that
also have the deprecated tag.
repos ls -t backend -e deprecatedBefore cloning repositories with a specific tag, you can preview which ones will be affected:
# Preview which repositories have the 'flow' tag
repos ls --tag flow
# Then clone them
repos clone --tag flowrepos ls --config path/to/custom-repos.yaml-
Preview Tag Filters: Check which repositories will be included in operations that use the same tag filters.
-
Explore Configuration: Quickly view all repositories defined in your config without needing to open the file.
-
Verify Tags: Ensure repositories are properly tagged before running bulk operations.
-
Review Paths: Check configured paths and branches for repositories.
-
Filter Testing: Experiment with different tag combinations to understand how filters work before applying them to operations like
cloneorrun.