命令操作文档

前言

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

$ s -h
😃  Welcome to the Serverless Devs

Usage: s [options] [command]

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 (choices: "default", "json", "yaml", "raw")
  --output-file <outputFilePath>  Specify the output file path
  --env <envName>                 Specify the env name
  --no-verify                     Do not verify yaml
  --silent                        Silent mode
  -v, --version                   Output the version number
  -h, --help                      Display help for command

Commands:
  config                          👤  Configure venders account
  env                             🌱  Environment operation
  set                             🔧  Settings for the tool
  registry                        🚢  Serverless registry platform
  preview [options]               👀  Preview Yaml render results
  component                       🔌  Installed component information
  clean [options]                 💥  Clean up the environment
  init [options]                  💞  Initializing a serverless project
  <custom>                        🧭  Custom Commands


🙌   Quick Start:      https://docs.serverless-devs.com/quick-start
🌟   Github Repo:      https://github.com/Serverless-Devs/Serverless-Devs
💡   Documentation:    https://docs.serverless-devs.com
🚀   Example Projects: https://registry.serverless-devs.com
📝   Feedback:         https://github.com/Serverless-Devs/Serverless-Devs/issues

全局参数

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

命令详情

在 GitHub 上编辑本页面 更新时间: Fri, Nov 24, 2023