Deploy Command Line Options

On a day-to-day basis, continuous deployment is designed to be used through the GUI.

However, when setting up and when you require more information or flexibility than the
GUI provides, fluxctl provides a comprehensive API. The --help command for
fluxctl is described below. You will need to set $WEAVE_CLOUD_TOKEN in your shell environment.

Workflow:
fluxctl list-services # Which services are running?
fluxctl list-images --service=default/foo # Which images are running/available?
fluxctl release --service=default/foo --update-image=bar:v2 # Release new version.
Usage:
fluxctl [command]
Available Commands:
automate Turn on automatic deployment for a service.
deautomate Turn off automatic deployment for a service.
identity Display SSH public key
list-images Show the deployed and available images for a service.
list-services List services currently running on the platform.
lock Lock a service, so it cannot be deployed.
policy Manage policies for a service.
release Release a new version of a service.
save save service definitions to local files in platform-native format
unlock Unlock a service, so it can be deployed.
version Output the version of fluxctl
Flags:
-t, --token string Weave Cloud service token; you can also set the environment variable WEAVE_CLOUD_TOKEN or FLUX_SERVICE_TOKEN
-u, --url string base URL of the flux service; you can also set the environment variable FLUX_URL (default "https://cloud.weave.works/api/flux")
Use "fluxctl [command] --help"for more information about a command.

Viewing Services

The first thing to do is to check whether Flux can see any running
services.

The arrows point to the version that is currently running alongside a list of other versions and their timestamps.

Releasing a Service

Update a service with the release subcommand. This checks whether any images can be updated, and if so,
it also writes the new configuration to the repository, and waits for the change to be synchronized to the cluster.

The list-services subcommand reports that the
helloworld application is automated. Deploy automatically
releases and deploys a new version of a service whenever one is available and
also updates the configuration to the version control system.