List Packages
This document provides instructions on how to list all packages in the monorepo.
Usage
Use the following commands to list packages:
bash
monopkg list [options]
bash
bun x monopkg list [options]
bash
npx monopkg list [options]
bash
yarn dlx monopkg list [options]
Options
-w
,--workspace
- Root workspaces of the packages.-i
,--info
- Show information of the specified fields.--public
- Show only public packages.--private
- Show only private packages.--restricted
- Show only restricted packages.--publishable
- Show only publishable packages.
Examples
Basic Usage
List all packages in the monorepo.
bash
monopkg list
bash
bun x monopkg list
bash
npx monopkg list
bash
yarn dlx monopkg list
Sample Output
With Information
List all packages and show package's name
, version
, and type
fields.
bash
monopkg list --info name version type
bash
bun x monopkg list --info name version type
bash
npx monopkg list --info name version type
bash
yarn dlx monopkg list --info name version type
Public Packages
List all public packages.
bash
monopkg list --public
bash
bun x monopkg list --public
bash
npx monopkg list --public
bash
yarn dlx monopkg list --public
Advanced Usage
List all private
packages under apps
workspace, and show package's name
, version
, and type
fields.
bash
monopkg list --private -w apps --info name version type
bash
bun x monopkg list --private -w apps --info name version type
bash
npx monopkg list --private -w apps --info name version type
bash
yarn dlx monopkg list --private -w apps --info name version type
Sample Output