Skip to content

quant init

Initialise a Quant project in the current directory. Prompts for credentials, project, and the build output directory, then writes a quant.json configuration file the other commands read from.

Terminal window
quant init [options]

Run in interactive mode (no flags) to be prompted for each value, or pass all flags for non-interactive use in CI.

quant init is usually the first command you run in a new project. It captures the four values every other command needs — customer ID, project name, API token, and the build output directory — and writes them to quant.json in the working directory. Other commands read this file automatically.

You can re-run init at any time to update the configuration. Existing values are shown as defaults.

Flag Description Default
-c, --clientid Customer/organisation ID.
-p, --project Project machine name.
-t, --token Project API token.
-e, --endpoint API endpoint. https://api.quantcdn.io/v1
-d, --dir Directory containing static assets. build
Terminal window
quant init
Terminal window
quant init \
-c "$QUANT_CUSTOMER" \
-p "$QUANT_PROJECT" \
-t "$QUANT_TOKEN" \
-d ./dist