fastly compute publish
Build and deploy a Compute@Edge package to a Fastly service.
Syntax
$ fastly compute publish
Options
Key | Required? | Default | Description |
---|---|---|---|
--comment | No | Human-readable comment | |
--domain | No | The name of the domain associated to the package | |
--include-source | No | Include source code in built package | |
--language | No | Language type | |
--package | No | Path to a package tar.gz | |
--package-name | No | Package name | |
--service-id | No | Service ID (falls back to FASTLY_SERVICE_ID, then fastly.toml) | |
--service-name | No | The name of the service | |
--version | No | 'latest', 'active', or the number of a specific version | |
--skip-verification | No | Skip verification steps and force build | |
--timeout | No | Timeout, in seconds, for the build compilation step |
Global options
Key | Required? | Default | Description |
---|---|---|---|
--help | No | Show context-sensitive help. | |
--accept-defaults | No | Accept default options for all interactive prompts apart from Yes/No confirmations | |
--auto-yes | No | Answer yes automatically to all Yes/No confirmations. This may suppress security warnings | |
--non-interactive | No | Do not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes | |
--profile | No | Switch account profile for single command execution (see also: 'fastly profile switch') | |
--quiet | No | Silence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive) | |
--token | No | Fastly API token (or via FASTLY_API_TOKEN) | |
--verbose | No | Verbose logging |
Examples
Build and deploy a Compute@Edge package to a Fastly service
The fastly compute publish command is a convenience wrapper around the existing build and deploy commands. All flags present on the fastly compute build and fastly compute deploy commands are available to use here.
$ fastly compute publish --skip-verification --accept-defaults
API equivalent
This command internally uses the following Fastly public APIs: