Slim cli-plugin-api to only export createCliPlugin

Move error handling and lazy utilities back to @backstage/cli since they
are host-only concerns. The cli-plugin-api internals subpath provides
isCliPlugin and initializeCliPlugin for the CLI host.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-11 08:09:32 +01:00
parent 0be3eab18b
commit d6caf7f13b
22 changed files with 175 additions and 193 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/cli': patch
---
Migrated CLI plugin modules to import from the new `@backstage/cli-plugin-api` package.
Migrated CLI plugin modules to use `createCliPlugin` from the new `@backstage/cli-plugin-api` package.
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/cli-plugin-api': minor
---
Added a new `@backstage/cli-plugin-api` package that provides the public API for building Backstage CLI plugins. This includes `createCliPlugin`, `lazy`, `ExitCodeError`, `exitWithError`, and associated types.
Added a new `@backstage/cli-plugin-api` package that provides the `createCliPlugin` API for building Backstage CLI plugins.