@xpulse/cli is installed locally in the project β no global install needed.
1
npm install @xpulse/cli
Important: The project's package.json must include "type": "module",
as the entire xPulse ecosystem uses ESM (import/export):
1
{
2
"name":"my-project",
3
"type":"module",
4
"dependencies":{
5
"@xpulse/cli":"^1.0.0"
6
}
7
}
Usage β always with `npx`
@xpulse/cli is always called via npx. This uses the local version from
node_modules/.bin/xpulse β consistent, reproducible, no version mismatch
with globally installed versions.
1
npx xpulse --version
2
npx xpulse --list
3
npx xpulse --help
4
npx xpulse --help tapp:hello
5
npx xpulse tapp:hello --help
6
npx xpulse tapp:hello Johnny -lang="en" --shout
How does it work?
@xpulse/cli starts and automatically discovers all Command classes: