MacOS installation:
brew update && brew install fnor
Alternatively for Linux/Unix/MacOS:
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh- 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.
- Refer to the Fn CLI Wiki for development details.
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 --no-bumpfn 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.
See CONTRIBUTING for instructions to build the CLI from source.