Philipp Muens a422944472 Fix typos
2019-11-05 16:22:06 +01:00

42 lines
1.1 KiB
Markdown

<!--
title: Serverless Framework Commands - Tencent-SCF - Deploy Function
menuText: deploy function
menuOrder: 4
description: Deploy your service to the specified provider
layout: Doc
-->
<!-- DOCS-SITE-LINK:START automatically generated -->
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/providers/tencent/cli-reference/deploy-function/)
<!-- DOCS-SITE-LINK:END -->
# Tencent-SCF - Deploy Function
The `sls deploy function` command deploys an individual SCF function when there is any change in the function. This is a much faster way of deploying changes in code.
```bash
serverless deploy function -f functionName
```
## Options
- `--function` or `-f` The name of the function which should be deployed
- `--stage` or `-s` The stage in your service that you want to deploy to.
- `--region` or `-r` The region in that stage that you want to deploy to.
## Examples
### Deployment without stage and region options
```bash
serverless deploy function --function helloWorld
```
### Deployment with stage and region options
```bash
serverless deploy function --function helloWorld --stage dev --region ap-guangzhou
```