Skip to content

quantcdn/quant-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 21, 2021
b99d703 · Feb 21, 2021

History

63 Commits
Feb 7, 2021
Oct 13, 2020
Feb 21, 2021
Feb 7, 2021
Feb 7, 2021
Apr 27, 2020
Oct 13, 2020
Apr 24, 2020
Feb 7, 2021
Feb 7, 2021
Feb 7, 2021
Feb 21, 2021
Feb 21, 2021

Repository files navigation

QuantCDN cli

Codefresh build status

Simplify deployments and interactions with the QuantCDN API by using the support cli tool.

Install

The preferred method for installation is via npm.

npm i -g @quantcdn/quant-cli

or locally to a project

npm i -D @quantcdn/quant-cli

Usage

$ quant <command>

Commands:
  quant crawl                                         Crawl and push an entire domain
  quant deploy [dir]                                  Deploy the output of a static generator
  quant file <file> <location>                        Deploy a single asset
  quant info                                          Give info based on current configuration
  quant init                                          Initialise a project in the current directory
  quant page <file> <location>                        Make a local page asset available via Quant
  quant proxy <path> <origin> [status]                Create a proxy to allow traffic directly to
  [basicAuthUser] [basicAuthPass]                     origin
  quant redirect <from> <to> [status] [author]        Create a redirect
  quant unpublish <path>                              Unpublish an asset

Options:
  --version       Show version number                                                      [boolean]
  --help          Show help                                                                [boolean]
  --clientid, -c  Project customer id for QuantCDN                                          [string]
  --project, -p   Project name for QuantCDN                                                 [string]
  --token, -t     Project token for QuantCDN                                                [string]
  --endpoint, -e  API endpoint for QuantCDN            [string] [default: "https://api.quantcdn.io"]

Get started

Please refer to the "get started" guide for more details on getting set up.

Quant accepts options or will ready configuration values from a quant.json file in the current directory.

$ quant init

An interactive walk-through for configuring your API connection.

$ quant info

Endpoint: https://api.quantcdn.io/v1
Customer: quant
Project: dev-docs
Token: ****
✅✅✅ Successfully connected to dev-docs

Testing

Automated via CodeFresh for all PRs and mainline branches.

$ npm run lint
$ npm run test

Contributing

Issues and feature requests are managed via Github and pull requests are welcomed.