Command Operation Documentation

Preface

Serverless Devs can invoke the corresponding help documentation for commands using -h. For example, to view help information for the s command, you can use: 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 vendors account
  env                             🌱  Environment operation
  set                             πŸ”§  Settings for the tool
  registry                        🚒  Serverless registry platform
  preview                         πŸ‘€  Preview Yaml render results
  component                       πŸ”Œ  Installed component information
  clean [options]                 πŸ’₯  Clean up the environment
  init [options]                  πŸ’ž  Initializing a serverless project
  verify                          πŸ”­  Verify Yaml content
  <custom>                        🧭  Custom Commands


πŸ™Œ   Quick Start:      https://manual.serverless-devs.com/getting-started/
🌟   Github Repo:      https://github.com/Serverless-Devs/Serverless-Devs
πŸ’‘   Documentation:    https://manual.serverless-devs.com
πŸš€   Example Projects: https://registry.serverless-devs.com
πŸ“   Feedback:         https://github.com/Serverless-Devs/Serverless-Devs/issues

Global Parameters

Full ParameterAbbreviationDefault ValueMeaningNotes
templatets.yaml/s.ymlSpecify the resource description file
accessaSpecified in yaml or defaultSpecify the key information for the deploymentCan use keys configured via config command, as well as keys configured in environment variables
skip-actions--Skip the actions module set in yaml-
debug--Enable Debug modeEnabling Debug mode allows viewing more information about tool execution
outputodefaultSpecify the data output formatSupports default, json, yaml, raw formats
versionv-View version information-
helph-View help information-
silent--Silent modeWill only output component execution results
env--Specify the environmentUsed in multi-environment scenarios
output-file--Specify the output file path-
no-verify--Do not verify yaml file-

Command Details

Edit this page on GitHub Updated at Fri, Mar 22, 2024