cli-module-new: add template for CLI module packages

Add a new `cli-module` template to the Backstage CLI that scaffolds
CLI module packages. This includes adding the `cli-module` role to the
template system, with proper naming conventions and prompts.

The generated package includes:
- A bin entry point for standalone execution
- An index.ts with createCliModule setup
- An example command using cleye
- Standard package.json with cli-module role

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-17 10:54:26 +01:00
parent 05594087b9
commit edf2b77581
14 changed files with 139 additions and 1 deletions
@@ -0,0 +1,5 @@
---
'@backstage/cli-module-new': patch
---
Added support for the `cli-module` template role for scaffolding new CLI module packages.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Added a new `cli-module` template for creating CLI module packages.