Fn CLI
Install
brew install fn
or
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
Build from source
See CONTRIBUTING for instructions to build the CLI from source.
Quickstart
See the Fn Quickstart for sample commands.
Announcement
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.
Commands that have not changed:
build
bump
call
deploy
init
push
run
test
start
stop
Commands that have changed:
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
Commands that have been removed:
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
Examples:
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>