twiki
CLI reference

CLI reference

2 min read

Generated from the actual command definitions. This reference follows the checked-out engine source.

Run twiki --help or twiki <command> --help for terminal help. Use --project <directory> and --config <file> to select a vault.

dev

Start the development server

Usage: twiki dev [options]

Start the development server

Options:
  --project <directory>  Consumer root (default: current directory)
  --config <file>        Explicit JSON configuration
  -h, --help             display help for command

check

Check types, links, targets, and diagrams

Usage: twiki check [options]

Check types, links, targets, and diagrams

Options:
  --project <directory>  Consumer root (default: current directory)
  --config <file>        Explicit JSON configuration
  -h, --help             display help for command

build

Build a Cloudflare Worker or export public static pages

Usage: twiki build [options]

Build a Cloudflare Worker or export public static pages

Options:
  --project <directory>  Consumer root (default: current directory)
  --config <file>        Explicit JSON configuration
  --target <target>      Output target (choices: "cloudflare", "static",
                         default: "cloudflare")
  -h, --help             display help for command

preview

Preview the Cloudflare build locally

Usage: twiki preview [options]

Preview the Cloudflare build locally

Options:
  --project <directory>  Consumer root (default: current directory)
  --config <file>        Explicit JSON configuration
  -h, --help             display help for command

deploy

Upload an existing Cloudflare build

Usage: twiki deploy [options]

Upload an existing Cloudflare build

Options:
  --project <directory>  Consumer root (default: current directory)
  --config <file>        Explicit JSON configuration
  -h, --help             display help for command

prepare

Prepare the consumer-owned .twiki/site runtime

Usage: twiki prepare [options]

Prepare the consumer-owned .twiki/site runtime

Options:
  --project <directory>  Consumer root (default: current directory)
  --config <file>        Explicit JSON configuration
  --json                 Print resolved runtime paths as JSON
  -h, --help             display help for command

exec

Run Bun tooling in the prepared runtime

Usage: twiki exec [options]

Run Bun tooling in the prepared runtime

Options:
  --project <directory>  Consumer root (default: current directory)
  --config <file>        Explicit JSON configuration
  -h, --help             display help for command

init

Create twiki.config.json without overwriting an existing file

Usage: twiki init [options]

Create twiki.config.json without overwriting an existing file

Options:
  --project <directory>  Consumer root (default: current directory)
  --config <file>        Explicit JSON configuration
  -h, --help             display help for command

See Getting started and Configuration reference.

Linked to this page