CLI Reference

Run jstatico from the command line.

Usage

jstatico <source> <destination>
ArgumentDescription
sourceSource directory containing your site
destinationOutput directory for generated files

Examples

Build from src to dist:

jstatico src dist

Build from docs-src to docs-build:

jstatico docs-src docs-build

With Bun

If installed locally:

bun run jstatico src dist

Or using the CLI directly:

bun run src/cli.ts src dist

Exit Codes

CodeMeaning
0Success
1Error (missing arguments, build failure)

npm Scripts

Add to package.json:

{
  "scripts": {
    "build": "jstatico src dist"
  }
}

Then run:

bun run build