feat(FN-2493): add plugin add alias and normalize install guidance
- Route "fn plugin add" to the plugin install handler and update CLI help/usage text to document the alias - Add bin routing tests that cover plugin add/install parity and updated error/help messaging - Update getting-started, settings reference, and runtime plugin READMEs to standardize plugin installation examples - Add a patch changeset for @runfusion/fusion and apply DirectoryPicker/PluginManager design-token styling refinements
This commit is contained in:
@@ -306,7 +306,8 @@ Usage:
|
||||
fn backup --restore <file> Restore database from a backup file
|
||||
fn backup --cleanup Remove old backups exceeding retention limit
|
||||
fn plugin list | ls List installed plugins
|
||||
fn plugin install <path> Install a plugin from path
|
||||
fn plugin install <path-or-package> Install a plugin from path or package
|
||||
fn plugin add <path-or-package> Alias for plugin install
|
||||
fn plugin uninstall <id> [--force] Uninstall a plugin
|
||||
fn plugin enable <id> Enable a plugin
|
||||
fn plugin disable <id> Disable a plugin
|
||||
@@ -1222,9 +1223,13 @@ async function main() {
|
||||
case "ls":
|
||||
await runPluginList(projectName);
|
||||
break;
|
||||
case "install": {
|
||||
case "install":
|
||||
case "add": {
|
||||
const source = args[2];
|
||||
if (!source) { console.error("Usage: fn plugin install <path-or-package>"); process.exit(1); }
|
||||
if (!source) {
|
||||
console.error("Usage: fn plugin install <path-or-package> (alias: fn plugin add <path-or-package>)");
|
||||
process.exit(1);
|
||||
}
|
||||
await runPluginInstall(source, { projectName });
|
||||
break;
|
||||
}
|
||||
@@ -1255,7 +1260,7 @@ async function main() {
|
||||
}
|
||||
default:
|
||||
console.error(`Unknown subcommand: plugin ${sub || ""}`);
|
||||
console.log("Try: fn plugin list | install | uninstall | enable | disable | create");
|
||||
console.log("Try: fn plugin list | install | add (alias for install) | uninstall | enable | disable | create");
|
||||
process.exit(1);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user