fastly compute deploy

Deploy a package to a Fastly Compute@Edge service.

Syntax

fastly compute deploy

Options

KeyRequired?DefaultDescription
--service-idNoService ID (falls back to FASTLY_SERVICE_ID, then fastly.toml)
--service-nameNoThe name of the service
--versionNo'latest', 'active', or the number of a specific version
--accept-defaultsNoAccept default values for all prompts and perform deploy non-interactively
--commentNoHuman-readable comment
--domainNoThe name of the domain associated to the package
--nameNoPackage name
--packageNoPath to a package tar.gz

Global options

KeyRequired?DefaultDescription
--helpNoShow context-sensitive help.
--tokenNoFastly API token (or via FASTLY_API_TOKEN)
--verboseNoVerbose logging

Examples

Deploy a package to a Fastly Compute@Edge service

The optional --accept-defaults flag accepts default values for all prompts if configured via the fastly.toml [setup] section and performs a deploy non-interactively

$ fastly compute deploy --accept-defaults

Deploy a custom package to a Fastly Compute@Edge service

Use the fastly compute pack command to package up a pre-compiled Wasm binary and then reference the generated archive file when deploying.

$ fastly compute deploy --package ./pkg/example.tar.gz

API equivalent

This command internally uses the following Fastly public APIs: