title | description | position | category |
---|---|---|---|
User guide of commands |
Serverless Devs User guide of commands |
1 |
Commands |
- Background information
- Supported parameters
- Supported commands
- Config: Run the config command to configure a key
- Init: Run the init command to initialize a project
- Cli: Run the cli command to use the CLI mode
- Verify: Run the verify command to verify the format of an application
- Edit: Run the edit command to edit an application
- Clean: Run the clean command to clean a tool
- Component: Run the component command to query the information about a component
- Set: Run the set command to configure a tool
- Custom: Run the custom command to use a custom command
Serverless Devs allows you to run a command that contains the -h
parameter to query the help information about a command. For example, you can run the s -h
command to query the help information about the s
command.
After you run the s
command, the following help information is returned:
$ s
Usage: s [options] [command]
_________ .__
/ _____/ ______________ __ ___________| | ____ ______ ______
\_____ \_/ __ \_ __ \ \/ // __ \_ __ \ | _/ __ \ / ___// ___/
/ \ ___/| | \/\ /\ ___/| | \/ |_\ ___/ \___ \ \___ \
/_________/\_____>__| \_/ \_____>__| |____/\_____>______>______>
Welcome to the Serverless Devs.
More:
📘 Documents: https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs
🙌 Discussions: https://github.com/Serverless-Devs/Serverless-Devs/discussions
📦 Applications: https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/en/awesome.md
Quick start:
🍻 Can perform [s init] fast experience
Options:
-t, --template [templatePath] Specify the template file
-a, --access [aliasName] Specify the access alias name
--skip-actions Skip the extends section
--debug Open debug model
-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.
edit ✏️ Edit the application.
set 🔧 Settings for the tool.
clean 💥 Clean up the environment.
component 🔌 Installed component information.
Parameter | Abbreviation | Default value | Description | Remarks |
---|---|---|---|---|
template | t | s.yaml/s.yml | Specifies the description file of a resource. | |
access | a | the value of the access parameter specified in a YAML file/default | Specifies the information about the key. | You can use the key information that is configured by using the config command or [environment variables](command/config.md#Configure keys by using environment variables). |
skip-actions | - | - | Skips the actions section that is specified in the YAML file. | - |
debug | - | - | Enables the debug mode. | After you enable the debug mode, you can obtain a larger amount of information about the execution process of a tool. |
version | v | - | Queries the version information. | - |
help | h | - | Queries the help information. | - |
- Config: Run the config command to configure a key
- Init: Run the init command to initialize a project
- Cli: Run the cli command to use the CLI mode
- Verify: Run the verify command to verify the format of an application
- Edit: Run the edit command to edit an application
- Clean: Run the clean command to clean a tool
- Set: Run the set command to configure a tool
- Component: Run the component command to query the information about a component
- Custom: Run the custom command to use a custom command