AxilJS CLI Installation
Install @axiljs/cli 0.3.6 with npx or npm install -g, verify axil --version, update to the latest release and use the project-local CLI. Node.js 20+.
The axil command comes from the @axiljs/cli npm package. It needs Node.js 20 or newer.
Use it with npx
The quickest start needs no install at all:
To be sure you get the newest release rather than a cached one:
Install globally
The package installs two equivalent binaries, axil and axiljs. Verify:
@axiljs/cli v0.3.6Update
Global CLI vs project CLI
Every project generated by axil create lists @axiljs/cli as a devDependency (together with @axiljs/studio, @axiljs/testing, typescript and @types/node). Inside a project:
npm run devrunsaxil run,npm testrunsaxil testandnpm run migrate(when present) runsaxil migrate, all with the project's own CLI;npx axil <command>also resolves to the project's copy.
A global install is only needed to run axil outside a project, mainly for axil create, and npx @axiljs/cli create covers that too.
Reinstall
If a global install behaves unexpectedly, remove it and install again:
Next steps
Was this page helpful?