This guide will help you migrate from the deprecated @janus-idp/cli to the new @red-hat-developer-hub/cli.
The Red Hat Developer Hub team has introduced a new CLI tool that replaces the @janus-idp/cli with improved functionality and better maintainability. The new CLI offers more flexibility and ease of use for developing, packaging, and distributing dynamic plugins for Red Hat Developer Hub (RHDH).
Old Command:
npx @janus-idp/cli package export-dynamic-pluginNew Command:
npx @red-hat-developer-hub/cli plugin exportOld Command:
npx @janus-idp/cli package package-dynamic-pluginsNew Command:
npx @red-hat-developer-hub/cli plugin packageBefore:
{
"scripts": {
"export-dynamic": "@janus-idp/cli package export-dynamic-plugin",
"package-plugins": "@janus-idp/cli package package-dynamic-plugins"
}
}After:
{
"scripts": {
"export-dynamic": "@red-hat-developer-hub/cli plugin export",
"package-plugins": "@red-hat-developer-hub/cli plugin package"
}
}- New CLI Repository: https://github.com/redhat-developer/rhdh-cli
- Documentation: Available in the new CLI repository
- Issues: Report issues and bugs in Jira at https://issues.redhat.com/projects/RHIDP/summary
If you encounter issues during migration:
- Check the new CLI documentation: https://github.com/redhat-developer/rhdh-cli
- Compare command options between old and new CLI using
--help - Open an issue in the new CLI repository if you find missing functionality