feat(cli): publish runfusion.ai npm alias, lead install with npx runfusion.ai
Add a 633-byte shim package at packages/cli-alias/ published to npm as `runfusion.ai@0.0.1`. Bare `npx runfusion.ai` boots the dashboard; subcommands forward to the underlying @runfusion/fusion CLI so `npx runfusion.ai task list` etc. Just Work. Both `runfusion.ai` and `runfusion` bin names are exposed. READMEs now lead the install story with `npx runfusion.ai` — the shortest zero-install entry — and keep the longer `npx @runfusion/fusion dashboard`, curl installer, Homebrew, and npm-global paths below. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
16
packages/cli-alias/index.js
Executable file
16
packages/cli-alias/index.js
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env node
|
||||
// runfusion.ai — tiny alias for @runfusion/fusion.
|
||||
// With no args, launches the Fusion dashboard. With args, forwards to the
|
||||
// underlying `fn` CLI so `npx runfusion.ai task list` etc. Just Work.
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
|
||||
if (args.length === 0 || args[0] === "--help" || args[0] === "-h") {
|
||||
// No subcommand → default to dashboard. Keep --help passthrough explicit
|
||||
// so users can discover the full CLI surface via `npx runfusion.ai --help`.
|
||||
if (args.length === 0) {
|
||||
process.argv = [process.argv[0], process.argv[1], "dashboard"];
|
||||
}
|
||||
}
|
||||
|
||||
await import("@runfusion/fusion/dist/bin.js");
|
||||
Reference in New Issue
Block a user