CLI Reference
Run jstatico from the command line.
Usage
jstatico <source> <destination>| Argument | Description |
|---|---|
source | Source directory containing your site |
destination | Output directory for generated files |
Examples
Build from src to dist:
jstatico src distBuild from docs-src to docs-build:
jstatico docs-src docs-buildWith Bun
If installed locally:
bun run jstatico src distOr using the CLI directly:
bun run src/cli.ts src distExit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error (missing arguments, build failure) |
npm Scripts
Add to package.json:
{
"scripts": {
"build": "jstatico src dist"
}
}Then run:
bun run build