A new Quant Cloud CLI, OAuth-based API access for the CLI and integrations, a backups API for cloud environments, and edge functions that now receive organisation and project context.
The Cloud CLI (qc) can now connect to your Quant account with OAuth. When you run qc login, you sign in to Quant in your browser and approve the connection. OAuth is an alternative to API tokens, which still work.
You can now sign in to the dashboard with a passkey, including hardware security keys. The account profile screen is also redesigned.
New Cloud CLI
New command-line tool for Quant Cloud
A new command-line interface, qc, manages Quant Cloud applications and environments. Install it from npm as @quantcdn/quant-cloud-cli. You can sign in to QuantCDN, QuantGov Cloud or both, and switch between them with the qc platform commands. The first releases add application and environment lists with autocomplete, application backups and a metrics dashboard. They also add an interactive SSH command that supports one-shot and custom commands. Every command has a non-interactive mode for scripts and pipelines. You can put a .quant.yml file in your code repository to set the platform, organisation, application and default environment. The --org, --app, --env and --platform flags override these values.
Wildcard domains are now supported, including TLS certificate provisioning for them.
New Edge functions
Organisation and project context
Edge functions now receive the organisation and project they are running under as part of the request event, so functions can adapt their behaviour based on the deployment they belong to.
A new environment backup action lets you create, list, and download backups of Quant Cloud environments from your workflows, and the existing environment action can now delete environments.
You can now also create, list and delete environment backups through the API, and manage them with the new Cloud CLI.
New Quant Cloud
Origin protection
You can now turn on origin protection for a container, so that visitors cannot open the application at its origin or preview domain. Traffic must then come through a Quant project that proxies to the application, so your caching and WAF rules apply to every request. Select Enable Origin Protection in the container settings when you create an application or environment, or when you edit a container.
New SDKs
TypeScript client for Quant Cloud
Version 3.0.0 of @quantcdn/quant-client on npm is a TypeScript client for the Quant Cloud API. The Quant Cloud GitHub Actions are built on the same client. The client has API classes for applications, environments, containers, Docker Compose, cron jobs, commands, scaling policies, variables, volumes and SSH access. Version 3.0.1 adds backups, with create, list, download and delete. The package's 2.x releases are the client for the content API, and a plain npm install @quantcdn/quant-client now installs 3.x.
Pin @quantcdn/quant-client@^2 in projects that use the content API client.
When a deployment fails, the dashboard now shows an error banner. The URL of a Quant Cloud environment page now also records the selected tab, such as #backups, so a reload or a shared link opens the same tab.
Improved Quant Cloud
Available on Teams and Enterprise plans
Quant Cloud, in early access since May, is now available to organisations on Teams and Enterprise plans without a request to our sales team. You can create applications from the Applications page in the dashboard.
Improved Quant Cloud
Application limits
Organisations now have default limits on applications and environments. Contact support if you need a higher limit.
Improved Quant Cloud
Environment API image suffix and cloning
The environment API now accepts an imageSuffix option. When you create an environment by cloning, this option changes the image tags that the new environment uses. For example, feature-xyz changes cli-latest to cli-feature-xyz. You can also clone an environment from its parent environment without a compose definition. The parent environment is the existing environment that you name in cloneConfigurationFrom. Both options are also available in the quantcdn/quant-cloud-environment-action GitHub Action (image_suffix and from_environment) and in the TypeScript client for Quant Cloud.
Skip purge for redirects in the TypeScript content client
Version 2.0.12 of @quantcdn/quant-client, the TypeScript client for the content API, adds a skipPurge option to project.redirect(). Use it to create or change a redirect without purging that URL from the cache, as you can when you push pages and files.
The cache purge at the end of a crawl did not always run, so visitors could still see older cached copies of crawled pages. The purge now runs reliably when a crawl ends.
Fixed Edge functions
Live preview responses
Live previews of edge functions could display incorrectly for some responses. Preview responses now render reliably in the editor.