命令操作文档

前言

Serverless Devs 可以通过-h唤起对应命令的帮助文档,例如查看 s 命令的帮助信息可以是:s -h

$ s -h
🚀  Welcome to the Serverless Devs.

Options
  --debug                        Open debug model.              
  --skip-actions                 Skip the extends section.      
  -t, --template <path>          Specify the template file.     
  -a, --access <aliasName>       Specify the access alias name. 
  -o, --output <outputFormat>    Specify the output format: json, yaml, raw.   
  -v, --version                  Output the version number.     
  -h, --help                     Display help for command.      

Commands
  config                         👤  Configure venders account.                
  init                           💞  Initializing a serverless project.        
  cli                            🐚  Command line operation without yaml mode. 
  verify                         🔎  Verify the application.                   
  set                            🔧  Settings for the tool.                    
  clean                          💥  Clean up the environment.                 
  component                      🔌  Installed component information.          
  edit                           🙌  Application editing.                      


Examples
  init                           Perform [s init] fast experience Serverless Devs. 

🧭  More information: https://github.com/Serverless-Devs/Serverless-Devs
🚀  More applications: https://registry.serverless-devs.com

全局参数

参数全称参数缩写默认取值参数含义备注
templatets.yaml/s.yml指定资源描述文件
accessayaml中所指定的access信息/default指定本次部署时的密钥信息可以使用通过config命令配置的密钥信息,以及配置到环境变量的密钥信息
skip-actions--跳过yaml所设置的actions模块-
debug--开启Debug模式开启Debug模式后可以查看到更多的工具执行过程信息
outputodefault指定数据的输出格式支持default, json, yaml, raw格式
versionv-查看版本信息-
helph-查看帮助信息-

命令详情

在 GitHub 上编辑本页面 更新时间: Wed, May 10, 2023