Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 2.09 KB

File metadata and controls

49 lines (36 loc) · 2.09 KB

@janus-idp/cli

Warning

⚠️ DEPRECATION NOTICE

This CLI is deprecated and will no longer receive updates. Please migrate to the new @red-hat-developer-hub/cli.

Command Migration:

  • npx @janus-idp/cli package export-dynamic-pluginnpx @red-hat-developer-hub/cli plugin export
  • npx @janus-idp/cli package package-dynamic-pluginsnpx @red-hat-developer-hub/cli plugin package

For more information, visit: https://github.com/redhat-developer/rhdh-cli

📖 View Migration Guide - Step-by-step instructions for migrating to the new CLI

This package provides a CLI for developing and exporting Backstage plugins as dynamic plugins. It implements a few new commands on top of the @backstage/cli codebase:

  • package export-dynamic plugin - Exports a Backstage plugin to a dynamic plugin package
  • package package-dynamic-plugins - Exports a monorepo of Backstage plugins to dynamic plugin packages in a container image
  • package schema - Print configuration schema for a package
  • package metadata - Add metadata to a package.json file

This package also has a modified version of the package start and package build commands that focus on building frontend plugins as well as the Developer Hub frontend app.

Installation

Install the package via Yarn:

yarn add @janus-idp/cli

Development

For local development the cli can be used directly, even from other packages in this repo. The bin/janus-cli entrypoint contains a switch that will load the implementation from the src directory when executed inside this repo.

To try out the command locally, you can execute the following from the parent directory of this repo:

./packages/cli/bin/janus-cli --help

Documentation