MacOS installation:
brew update && brew install fn
or
Alternatively for Linux/Unix/MacOS:
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
See CONTRIBUTING for instructions to build the CLI from source.