d806b0cc9f
The CLI now scans the project root's dependencies and devDependencies for packages with the cli-module role, loading them automatically. Falls back to the built-in set with a deprecation warning when no modules are found. Updated create-app templates and the monorepo root to include all CLI modules as explicit devDependencies. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
@backstage/cli
This package provides a CLI for developing Backstage plugins and apps.
Installation
Install the package via Yarn:
yarn add @backstage/cli
Development
For local development the cli can be used directly, even from other packages in this repo. The bin/backstage-cli entrypoint contains a switch that will load the implementation from the src directory when executed inside this repo.
To run the cli in watch mode, use yarn start <args>. For example yarn start lint --help.
To try out the command locally, you can execute the following from the parent directory of this repo:
./backstage/packages/cli/bin/backstage-cli --help