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]

Creates a new novel workspace, named after its folder.

Terminal window
ink init [options]

The workspace is created in the --target folder, which defaults to the current folder.

Example
Terminal window
ink init

Creates a new plugin project.

Terminal window
ink init-plugin [options]

The plugin is created in the --target folder, which defaults to the current folder.

Example
Terminal window
ink init-plugin

Builds a novel workspace.

Terminal window
ink build [options]

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

Example
Terminal window
ink build --clean

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

Terminal window
ink preview [options]

Uses the same --workspace and --target defaults as build.

Example
Terminal window
ink preview

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

Terminal window
ink bottle [options]

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

Prints the version of the CLI.

Terminal window
ink version

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.

Removes old output before building. Takes no value.

Terminal window
ink build --clean
ink build -c

Sets the folder a command writes to. build and preview default to the default build folder, and init, init-plugin, and bottle default to the current folder.

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

Sets the folder a command works on. Defaults to the current folder.

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