Skip to content

quant deploy

Deploy the contents of a build directory to QuantCDN. Pushes new and changed files, optionally unpublishes files removed locally, and purges cache for affected paths.

Terminal window
quant deploy [dir] [options]

If dir is omitted, quant deploy uses the directory configured by quant init (default build).

deploy walks the build directory, compares each file’s MD5 against what’s already on the CDN, and uploads anything new or changed. After the upload completes it:

  1. Unpublishes any paths that exist on the CDN but no longer exist locally — unless --skip-unpublish is set.
  2. Purges the cache for affected paths — unless --skip-purge is set.

This makes quant deploy the standard command at the end of a CI build. For partial deployments of a single file, use quant file or quant page instead.

Name Description
dir Directory containing static assets. Defaults to the value from quant.json.
Flag Description Default
--skip-unpublish Don’t unpublish content removed locally. false
--skip-unpublish-regex Regex of paths to keep published even if removed locally.
--skip-purge Don’t purge cache after deployment. false
--enable-index-html Keep index.html in URLs instead of normalising to /. false
--chunk-size Number of files uploaded concurrently. 10
--force Re-upload all files even if their hashes haven’t changed. false

These flags exist for specific workflows and are hidden from --help:

Flag Description
--revision-log <path> Track per-file MD5 hashes in a local log for faster incremental deploys without round-tripping to the API.
--attachments Process attachments alongside the deploy.
Terminal window
quant deploy
Terminal window
quant deploy ./dist
Terminal window
quant deploy --chunk-size 20
Terminal window
quant deploy --skip-unpublish-regex '^/legacy/.*'
Terminal window
quant deploy --force