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:
Fusion
2026-04-25 11:28:33 -07:00
committed by gsxdsm
parent 5db3c51656
commit 97f7055373
12 changed files with 109 additions and 71 deletions

View File

@@ -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;