All Products
Search
Document Center

Function Compute:Common Serverless Devs commands

Last Updated:Mar 31, 2026

Serverless Devs is an open source platform for serverless application developers. Use it to manage the full lifecycle of a Function Compute application — from local development and debugging to deployment, observability, and version control.

YAML configuration and permissions

The following pages describe the YAML fields and the required permission policies for each resource type:

Commands

Build and deployment

Observability

Invocation and debugging

Publishing and configuration

Others

Build a function or install dependencies (s build)

Query metric information (s metrics)

Invoke locally (s local)

Perform function version operations (s version)

Migrate resources from Funcraft to Serverless Devs (s fun2s)

Deploy resources (s deploy)

Query log information (s logs)

Debug or trigger online (s invoke)

Perform function alias operations (s alias)

Mount a NAS (s nas)

Delete resources (s remove)

None

None

Manage provisioned instances (s provision)

Query resources (s info)

Get information about resource changes (s plan)

None

Log on to an instance (s instance)

Manage on-demand instances (s onDemand)

Sync resources (s sync)

None

None

None

Layers (s layer)

Perform stress testing (s stress)

Build and deployment

CommandDescription
s buildBuild a function or install dependencies
s deployDeploy resources to Function Compute
s removeDelete deployed resources
s planPreview resource changes before deployment

Observability

CommandDescription
s metricsQuery function metrics
s logsQuery function logs

Invocation and debugging

CommandDescription
s localDebug a function in a local environment
s invokeInvoke a deployed function or debug it online
s instanceLog in to a running function instance

Publishing and configuration

CommandDescription
s versionManage service versions
s aliasManage service aliases
s provisionManage provisioned instances
s onDemandManage on-demand instances
s layerManage layers

Other commands

CommandDescription
s infoQuery the details of a deployed resource
s syncSynchronize online resources to a local environment
s stressRun stress tests on a function
s nasMount a File Storage NAS file system
s fun2sMigrate Funcraft resources to Serverless Devs

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 Integration with CI/CD platforms and tools.