Common Serverless Devs commands

更新时间:
复制 MD 格式

Serverless Devs is an open-source CLI platform for serverless application development. Use it to build, deploy, invoke, debug, and manage the full lifecycle of your Function Compute applications from the command line.

YAML syntax and permission management

Configure function resources in the s.yaml file. For details, see the .

Supported commands

Commands are organized into five categories based on their purpose.

CategoryCommands
Build & Deploy — compile your code and manage deploymentsdeploy | build | remove | plan
Observability — view logs and monitor function behaviorlogs
Invoke & Debug — test functions locally and trigger remote executionslocal | invoke | instance
Publish & Config — manage versions, aliases, and concurrency settingsversion | alias | provision | concurrency | layer
Other — query resource details and sync or migrate configurationsinfo | sync | s2tos3

Build & Deployment

Observability

Invocation & Debugging

Publishing & Configuration

Others

Deploy

Log query logs

Local invocation local

Version

View function info

Build

N/A

Function trigger invoke

Alias

Resource synchronization sync

Remove

N/A

Instance logon instance

Provisioned Concurrency

YAML file transformation s2tos3

Plan change plan

N/A

N/A

Pay-as-you-go resource concurrency

N/A

N/A

N/A

N/A

Layer

N/A

CI/CD integration

Serverless Devs integrates with continuous integration and continuous delivery (CI/CD) platforms and tools, including GitHub Actions, GiteeGo, Jenkins, and Alibaba Cloud DevOps. For setup instructions, see Integrate with CI/CD platforms and tools.