Skip to main content

Install Instructions

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

Note: If you need to install the pre-release version of the Flow CLI supporting Cadence 1.0, please refer to the Cadence 1.0 migration guide instructions.

macOS​

Homebrew​


_10
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:


_10
sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/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:


_10
sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)"

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

Install a specific version​

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


_10
sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v0.44.0

To install a version older than v0.42.0, refer to Installing versions before 0.42.0 below.

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:


    _10
    iex "& { $(irm 'https://raw.githubusercontent.com/onflow/flow-cli/master/install.ps1') }"

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

Upgrade the Flow CLI

macOS​

Homebrew​


_10
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:


_10
sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/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:


_10
sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/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:


    _10
    iex "& { $(irm 'https://raw.githubusercontent.com/onflow/flow-cli/master/install.ps1') }"

Uninstalling Flow CLI

To remove the flow CLI you can run the following command if it was previously installed using a pre-built binary.

  • macOS: rm /usr/local/bin/flow
  • Linux: rm ~/.local/bin/flow
  • Windows: rm ~/Users/{user}/AppData/Flow/flow.exe

If you installed it using Hombrew you can remove it using: brew uninstall flow-cli.

Installing versions before 0.42.0​

If you want to install versions before v0.42.0 you have to use a different install command.

Linux/macOS


_10
https://raw.githubusercontent.com/onflow/flow-cli/v0.41.3/install.ps1
_10
_10
sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/v0.41.3/install.sh)" -- v0.41.2

Windows


_10
iex "& { $(irm 'https://raw.githubusercontent.com/onflow/flow-cli/master/install.ps1') }"