使用npm安装
[xiaoxin@iZ2zed99h19kmb7fgbjcghZ ~]$ sudo npm install @alicloud/fun -g npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated superagent@3.8.3: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released. /usr/local/node/node-v10.14.1-linux-x64/bin/fun -> /usr/local/node/node-v10.14.1-linux-x64/lib/node_modules/@alicloud/fun/bin/fun.js > core-js@3.6.1 postinstall /usr/local/node/node-v10.14.1-linux-x64/lib/node_modules/@alicloud/fun/node_modules/@snyk/cocoapods-lockfile-parser/node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > core-js@2.6.11 postinstall /usr/local/node/node-v10.14.1-linux-x64/lib/node_modules/@alicloud/fun/node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > protobufjs@6.8.8 postinstall /usr/local/node/node-v10.14.1-linux-x64/lib/node_modules/@alicloud/fun/node_modules/protobufjs > node scripts/postinstall > @alicloud/fun@3.2.2 postinstall /usr/local/node/node-v10.14.1-linux-x64/lib/node_modules/@alicloud/fun > node ./lib/check-version.js + @alicloud/fun@3.2.2 added 727 packages from 551 contributors in 231.167s [xiaoxin@iZ2zed99h19kmb7fgbjcghZ ~]$ fun -h Usage: fun [options] [command] The fun command line provides a complete set of commands to define, develop, test serverless applications locally, and deploy them to the Alibaba Cloud. Options: --version output the version number -v, --verbose verbose output -h, --help output usage information Commands: config Configure the fun init Initialize a new fun project install Install dependencies which are described in fun.yml build Build the dependencies local Run your serverless application locally edge Run your serverless application at edge validate Validate a fun template deploy Deploy a fun application nas Operate NAS file system package Package a Function Compute application invoke Remote invoke function help [cmd] display help for [cmd]
配置config
[xiaoxin@iZ2zed99h19kmb7fgbjcghZ ~]$ fun config ? Aliyun Account ID 18926371sdsd512662 ? Aliyun Access Key ID LTAI4FiXMPMNmX6ugBMBRsYu ? Aliyun Access Key Secret nZqxcAUMaMRhBR3Go11k6RdkDdt7Wi ? Default region name cn-beijing ? The timeout in seconds for each SDK client invoking 10 ? The maximum number of retries for each SDK client 3 ? Allow to anonymously report usage statistics to improve the tool over time? (Y/n) y
继续阅读
- 我的QQ
- QQ扫一扫
-
- 我的头条
- 头条扫一扫
-
评论