Flow CLI
Installation
macOS
Homebrew
From a pre-built binary
This installation method only works on x86-64.
This script downloads and installs the appropriate binary for your system:
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:
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).
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.
-
Open PowerShell (Instructions)
-
In PowerShell, run:
To update, simply re-run the installation command above.
Create your first project
With the Flow CLI super commands, initiating your new project becomes effortless. Execute the flow setup command and make a selection from a variety of accessible scaffolds:
After you have created your new project, you can proceed to writing contracts. Once your contracts have been written, run the flow dev
command the CLI will deploy them to the Flow emulator. Flow emulator is
a simplified version of Flow network that runs locally. It makes writing, deploying and testing contracts easier.
So proceed by starting the emulator:
And then the flow dev:
Next steps
As part of the next steps you can read more about flow dev command.