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.
Synopsis
Section titled “Synopsis”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.
Description
Section titled “Description”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.
Options
Section titled “Options”| 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 |
Examples
Section titled “Examples”Interactive setup
Section titled “Interactive setup”quant initNon-interactive setup for CI
Section titled “Non-interactive setup for CI”quant init \ -c "$QUANT_CUSTOMER" \ -p "$QUANT_PROJECT" \ -t "$QUANT_TOKEN" \ -d ./distSee also
Section titled “See also”quant info— show the current configuration.quant deploy— deploy the configured directory.- Get started — full setup walkthrough.
