Skip to main content

Install the FaaS CLI

Using the PhotonIQ FaaS CLI requires installing the CLI on your local machine. This CLI is available for installation on all major operating systems, thereby reducing friction during development and offering developers the flexibility to create and test functions.

This guide walks you through the installation steps for MacOS, Windows, and Linux OS.

info

To update the CLI with a newer version, follow the same installation procedure.

Install on MacOS

Prerequisites

Install the Rust compiler and WebAssembly libraries by executing the following command. This is required for creating Rust functions:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup target add wasm32-wasi

Steps

1) Download the FaaS MacOS CLI package to your local machine.

2) Navigate into the CLI directory, and launch the faas CLI tool:

./faas help
tip

Get familiar with the FaaS CLI by practicing with some of our available commands.

Install on Windows

Prerequisites

1) Install Microsoft Build Tools Download C++ build tools. In the installation menu select Desktop development with C++ (This is enough to compile Rust functions)

2) Install WebAssembly libraries by executing the following command. This is required for creating Rust functions:

rustup target add wasm32-wasi

Steps

1) Download the FaaS Windows CLI package to your local machine.

2) Navigate into the CLI directory, and launch the faas CLI tool

./faas help

Install on Linux

Prerequisites

1) Install the Rust compiler and WebAssembly libraries by executing the following commands. This is required for creating Rust functions:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup target add wasm32-wasi

Steps

1) Depending on your Linux system architecture, you can download the FaaS Linux GNU CLI package or FaaS Linux MUSL CLI package to your local machine.

2) Navigate into the CLI directory, and launch the faas CLI tool

./faas help