Skip to content

Inkweaver CLI

The Inkweaver command line interface (CLI) builds, previews, and packages your novels and plugins. You run it with the ink command:

Terminal window
ink <command> [options]

init creates a new novel workspace, named after its folder.

Terminal window
ink init [options]

It creates the workspace in the --target folder, which defaults to the current folder.

Example
Terminal window
ink init

init-plugin creates a new plugin project.

Terminal window
ink init-plugin [options]

It creates the plugin in the --target folder, which defaults to the current folder.

Example
Terminal window
ink init-plugin

build builds your novel from its workspace.

Terminal window
ink build [options]

It reads from the --workspace folder, which defaults to the current folder, and writes to the --target folder, which defaults to the default build folder. Add --clean to remove old output first.

Example
Terminal window
ink build --clean

preview builds your novel and opens it for preview. While it’s running, it rebuilds whenever a file in your workspace changes, and reloads the preview.

Terminal window
ink preview [options]

It uses the same --workspace and --target defaults as build.

Example
Terminal window
ink preview

bottle packages a plugin as an .inkb file, including every file in the plugin’s folder.

Terminal window
ink bottle [options]

It packages the --workspace folder, which defaults to the current folder, and writes the file to the --target folder, which also defaults to the current folder.

Example
Terminal window
ink bottle --workspace ./my-plugin --target ./my-plugin/release

version prints the CLI’s version.

Terminal window
ink version

help prints a list of commands and options. Running ink with no command does the same thing.

Terminal window
ink help

Each option has a short form and a long form. They work the same way.

--clean removes old output before building. It doesn’t take a value.

Terminal window
ink build --clean
ink build -c

--target sets the folder a command writes to. For build and preview, it defaults to the default build folder. For init, init-plugin, and bottle, it defaults to the current folder.

Terminal window
ink build --target ./dist
ink build -t ./dist

--workspace sets the folder a command works on. It defaults to the current folder.

Terminal window
ink build --workspace ./my-novel
ink build -w ./my-novel