ls
API reference for the `turbo ls` command
List packages in your monorepo.
Terminal
turbo ls [package(s)] [flags]When scoped to the entire repository, output includes package manager, package count, and all package names and directories.
Terminal
# List all packages in the repository
turbo lsWhen scoped to one or more packages, output includes package name, directory, internal dependencies, and all tasks.
Terminal
# List only two packages
turbo ls web @repo/ui [package(s)]Flags
--affected
Automatically filter to only packages that are affected by changes on the current branch.
When combined with --filter, returns the intersection: only packages that are both affected and match the filter.
Terminal
turbo ls --affected
turbo ls --affected --filter=webBy default the changes considered are those between main and HEAD.
- You can override
mainas the default base by settingTURBO_SCM_BASE. - You can override
HEADas the default head by settingTURBO_SCM_HEAD.
Terminal
TURBO_SCM_BASE=development turbo ls --affected--output <format> Experimental
Format to output the results. json or pretty (default)
Terminal
turbo ls --output=json