flyctl deploy
Deploy Fly applications
Options
Name | Description |
---|---|
--app, -a <app> | Application name |
--build-arg <build-arg> | Set of build time variables in the form of NAME=VALUE pairs. Can be specified multiple times |
--build-only | Build but do not deploy |
--build-target <build-target> | Set the target build stage to build if the Dockerfile has more than one stage |
--config, -c <config> | Path to application configuration file |
--detach | Return immediately instead of monitoring deployment progress |
--dockerfile <dockerfile> | Path to a Dockerfile. Defaults to the Dockerfile in the working directory |
--env, -e <env> | Set of environment variables in the form of NAME=VALUE pairs. Can be specified multiple times |
--image, -i <image> | The image tag or ID to deploy |
--image-label <image-label> | Image label to use when tagging and pushing to the fly registry. Defaults to "deployment-{timestamp}" |
--local-only | Only perform builds locally using the local docker daemon |
--nix | Build with Nix |
--no-cache | Do not use the build cache when building the image |
--now | Deploy now without confirmation |
--push | Push image to registry after build is complete |
--region, -r <region> | The region to operate on |
--remote-only | Perform builds on a remote builder instance instead of using the local docker daemon |
--strategy <strategy> | The strategy for replacing running instances. Options are canary, rolling, bluegreen, or immediate. Default is canary, or rolling when max-per-region is set |