Install the CLI¶
The lxpack command creates courses, runs preview, checks for errors, and builds LMS packages.
Clipboard icons
Commands and prompts on this page use fenced blocks with a copy button (top-right). Click to copy the full text for Terminal, Claude, or Cursor.
Install¶
With Node.js 18 or 20 installed:
Success looks like: npm finishes without errors.
Verify¶
You should see the installed version (for example 0.6.4).
Create a course folder¶
From any directory where you keep training projects:
(Or use any course name instead of security-training.)
This creates a starter project with a welcome lesson, a sample phishing lab, and a short quiz. See Your first course.
Common install issues¶
command not found: lxpack¶
Node’s global bin folder may not be on your PATH.
Add this to your shell profile (~/.zshrc or ~/.bashrc), then open a new Terminal window:
export PATH="$(npm config get prefix)/bin:$PATH"
```
=== "Windows"
Re-run the Node installer and ensure **Add to PATH** is checked. Restart Command Prompt.
### Permission errors on `npm install -g`
=== "macOS / Linux"
Prefer a Node version manager, or ask IT to install `@lxpack/cli` for you. Avoid `sudo npm install -g` unless your organization expects it.
=== "Windows"
Run Command Prompt as a normal user first. If IT blocks global installs, they can install the CLI on your behalf.
### Wrong Node version
```bash title="node --version"
node --version
Must be v18.0.0 or higher (18.x or 20.x). Upgrade Node from nodejs.org if needed.