Install the Flow CLI

2 min read

How to install the Flow command-line interface (CLI)

The Flow CLI can be installed on macOS, Windows (7 or greater) and most Linux systems.

macOS

Homebrew

1
brew install flow-cli

From a pre-built binary

This installation method only works on x86-64.

This script downloads and installs the appropriate binary for your system:

1
sh -ci "$(curl -fsSL https://storage.googleapis.com/flow-cli/install.sh)"

To update, simply re-run the installation command above.

It is currently not possible to install earlier versions of the Flow CLI with Homebrew.

Linux

From a pre-built binary

This installation method only works on x86-64.

This script downloads and installs the appropriate binary for your system:

1
sh -ci "$(curl -fsSL https://storage.googleapis.com/flow-cli/install.sh)"

To update, simply re-run the installation command above.

Install a specific version

To install a specific version of Flow CLI, append the version tag to the command (e.g. the command below installs CLI version v0.33.3).

1
sh -ci "$(curl -fsSL https://storage.googleapis.com/flow-cli/install.sh)" -- v0.33.3

Windows

From a pre-built binary

This installation method only works on Windows 10, 8.1, or 7 (SP1, with PowerShell 3.0), on x86-64.

  1. Open PowerShell (Instructions)

  2. In PowerShell, run:

    1
    iex "& { $(irm 'https://storage.googleapis.com/flow-cli/install.ps1') }"

To update, simply re-run the installation command above.

Upgrade the Flow CLI

macOS

Homebrew

1
brew upgrade flow-cli

From a pre-built binary

This update method only works on x86-64.

This script downloads and updates the appropriate binary for your system:

1
sh -ci "$(curl -fsSL https://storage.googleapis.com/flow-cli/install.sh)"

Linux

From a pre-built binary

This update method only works on x86-64.

This script downloads and updates the appropriate binary for your system:

1
sh -ci "$(curl -fsSL https://storage.googleapis.com/flow-cli/install.sh)"

Windows

From a pre-built binary

This update method only works on Windows 10, 8.1, or 7 (SP1, with PowerShell 3.0), on x86-64.

  1. Open PowerShell (Instructions)

  2. In PowerShell, run:

    1
    iex "& { $(irm 'https://storage.googleapis.com/flow-cli/install.ps1') }"