Install the FireFly CLI¶
Prerequisites¶
In order to run the FireFly CLI, you will need a few things installed on your dev machine:
- Docker
- Docker Compose
- openssl
Linux Users¶
NOTE: For Linux users, it is recommended that you add your user to the
docker
group so that you do not have to runff
ordocker
asroot
or withsudo
. For more information about Docker permissions on Linux, please see Docker's documentation on the topic.
Windows Users¶
NOTE: For Windows users, we recommend that you use Windows Subsystem for Linux 2 (WSL2). Binaries provided for Linux will work in this environment.
Install the CLI¶
There are several ways to install the FireFly CLI. The easiest way to get up and running with the FireFly CLI is to download a pre-compiled binary of the latest release.
Install via Binary Package Download¶
Download the package for your OS by navigating to the latest release page and downloading the appropriate package for your OS and architecture.
Unpack and Install the Binary¶
Assuming you downloaded the package from GitHub into your Downloads
directory, run the following command to extract the binary and move it to your system path:
sudo tar -zxf ~/Downloads/firefly-cli_*.tar.gz -C /usr/local/bin ff && rm ~/Downloads/firefly-cli_*.tar.gz
If you downloaded the package into a different directory, adjust the command to point to the correct location of the firefly-cli_*.tar.gz
file.
macOSUsers¶
NOTE: On recent versions of macOS, default security settings will prevent the FireFly CLI binary from running, because it was downloaded from the internet. You will need to allow the FireFly CLI in System Preferences, before it will run.
Install via Homebrew (macOS)¶
You can also install the FireFly CLI using Homebrew:
Alternative installation method: Install via Go¶
If you have a local Go development environment, and you have included ${GOPATH}/bin
in your path, you could also use Go to install the FireFly CLI by running:
Verify the installation¶
After using either installation method above, you can verify that the CLI is successfully installed by running ff version
. This should print the current version like this:
Next steps: Start your environment¶
Now that you've got the FireFly CLI set up on your machine, the next step is to create and start a FireFly stack.