Installation

๐Ÿš CLI#

Choose one of the following:

Installation script (recommended)

Run the following command in the terminal and watch the magic happen:

bash -c "$(curl https://fireflyzero.com/install.sh)"
Cargo (Rust package manager)

If you have cargo (the Rust package manager) installed, you can use it to install firefly-cli:

cargo install firefly_cli

After that, open ~/.bashrc (or ~/.zshrc if you use zsh) and add at the end the following:

alias ff="firefly_cli"
Manual
  1. Download the latest release. You need the one containing -linux- in the name. If you don’t know which one you need, it’s probably the one ending with -x86_64-unknown-linux-gnu.tar.gz.

  2. Make sure the ~/.local/bin directory is in your $PATH. Open ~/.bashrc (or ~/.zshrc if you use zsh) and add at the end the following:

    export PATH=$PATH:~/.local/bin
  3. In the same file (.bashrc or .zshrc) add the alias:

    alias ff="firefly_cli"
  4. Extract the binary and place it into your $PATH:

    cd ~/Downloads
    tar -xvf ./firefly_cli-*.tar.gz
    mv ./firefly_cli-*/firefly_cli ~/.local/bin
    chmod +x ~/.local/bin/firefly_cli

Choose one of the following:

Installation script (recommended)

Run the following command in the terminal and watch the magic happen:

bash -c "$(curl https://fireflyzero.com/install.sh)"
Cargo (Rust package manager)

If you have cargo (the Rust package manager) installed, you can use it to install firefly-cli:

cargo install firefly_cli

After that, open ~/.bashrc (or ~/.zshrc if you use zsh) and add at the end the following:

alias ff="firefly_cli"
Manual
  1. Download the latest release. You need the one ending with -x86_64-apple-darwin.tar.gz.

  2. Extract the files from the archive.

  3. Right-click on firefly_cli and select Open. If it doesnโ€™t open, go to System Settings > Privacy & Security. Under Gatekeeper, a message should appear - press Open Anyway.

  4. Make sure the ~/.local/bin directory is in your $PATH.

    mkdir -p ~/.local/bin
    echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.zshrc
    source ~/.zshrc

    (If youโ€™re on macOS Catalina or older, or if you manually switched your shell to bash, use this instead:)

    echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bash_profile
    source ~/.bash_profile
  5. Assuming the file is downloaded in your Downloads folder:

    cd ~/Downloads
    tar -xvf ./firefly_cli-*.tar.gz
    mv ./firefly_cli-*/firefly_cli ~/.local/bin
    chmod +x ~/.local/bin/firefly_cli
  6. Verify the installation:

    firefly_cli --version
  1. Download and install the latest Visual Studio C++ Redistributable.
  2. Download the latest release. You need the one containing -windows- in the name. If you don’t know which one you need, it’s probably the one ending with -x86_64-pc-windows-msvc.zip.
  3. Extract files from the archive.
  4. Open the terminal and use the cd command to go to the directory containing firefly_cli.

Done! You now have firefly_cli. Open a new terminal window and give it a try:

firefly_cli --version

๐Ÿš€ Launcher and games#

The firefly_cli import command can be used to install any app from the catalog. Start by installing the default launcher, multiplayer UI, and the snake game:

firefly_cli import sys.launcher
firefly_cli import sys.connector
firefly_cli import lux.snek

Now you can launch the emulator and play some games:

firefly_cli emulator