Fn CLI
May 11, 2026 ยท View on GitHub
Install
MacOS installation:
brew update && brew install fn
or
Alternatively for Linux/Unix/MacOS:
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
General Information
- See the Fn Quickstart for sample commands.
- Detailed installation instructions.
- Configure your CLI Context.
- For a list of commands see Fn CLI Command Guide and Reference.
- For general information see Fn docs and tutorials.
CLI Development
- Refer to the Fn CLI Wiki for development details.
Watch (local auto-deploy)
To watch a directory and automatically redeploy to a local Fn server when files change:
fn watch --app <app>
This watches the current directory recursively and triggers:
fn deploy --app <app> --local
Ignoring paths
fn watch ignores these directories by default:
.git,.fn,node_modules,target,dist,vendor,Dockerfile-fn-tmp*
You can add more ignore rules by creating a .fnignore file in the watched directory (one pattern per line; # comments supported), and/or by passing --ignore flags.
Build from source
See CONTRIBUTING for instructions to build the CLI from source.