When using Fun, if you need to run and debug function locally, you need to use the fun local subcommand.
Fun local subcommand depend on docker.
If you don't want to run and debug function locally, docker is not required.
You can refer to the official Tutorial.
If you encounter network problems, you can download Docker For Mac provided by Alibaba Cloud.
You can refer to the official Tutorial.
If you encounter network problems, you can download Docker For Windows provided by Alibaba Cloud.
You can refer to the official Tutorial.
If you encounter network problems, you can use Alibaba Cloud Docker CE mirror to download. please refer to this tutorial.
Once docker is installed, you can use docker to download the image. If you encounter network problems, it is recommended to configure aliyun Registry Mirror.
Fun could be installed by npm:
$ npm install @alicloud/fun -g
A fun command is available after a successful installation. Typing fun
in the console will print usage:
$ fun
Usage: fun [options] [command]
The fun tool use template.yml to describe the API Gateway & Function Compute things, then publish it online.
Options:
-v, --version output the version number
-h, --help output usage information
Commands:
config Configure the fun
validate [options] Validate a fun template
deploy Deploy a project to AliCloud
build Build the dependencies
Open the Releases page, click a link of the corresponding platform to download the Fun zip package.
After downloading, unzip it and use it directly.
For Mac, you can also install Fun using homebrew.
brew tap vangie/formula
brew install fun