Skip to main content

Install Instructions

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

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
sudo 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
sudo 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, the version tag can be appended to the installation command. For example, to install version v2.0.0:


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

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
sudo 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
sudo 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.