brew install fn
or
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
See CONTRIBUTING for instructions to build the CLI from source.
See the Fn Quickstart for sample commands.
The Fn CLI command structure has changed as of version 0.4.109
Please refer to the Fn CLI Wiki page for information on why we chose this structure and for more details.
build
bump
call
deploy
init
push
run
test
start
stop
These nouns are now second-level commands.
apps
calls
logs
context
These verbs are now top-level commands.
config
create
delete
get
inspect
list
unset
update
use
images
As mention in CLI Proposal 'All subcommands of 'fn images' exist as top-level commands, this makes the use of images redundant and will be deprecated'
routes
Routes have been replaced by functions and triggers
fn [verb] [noun] <subcommand>
fn config app <app-name> <key> <value>
fn create function <app-name> <function> <image>
fn delete function <app-name> <function>
fn get log <app-name> <call-id>
fn inspect function <app-name> <function>
fn list calls
fn unset config app <app-name> <key>
fn update function <app-name> <function>
fn use conetxt <context>