You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/serverless-devs/command/cli.md
+26-14Lines changed: 26 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@ Usage: s cli [options]
25
25
Utilize Serverless Devs components for application development and management without the need for yaml configuration.
26
26
27
27
Examples:
28
-
$ s cli fc api ListServices
29
-
$ s cli fc api ListFunctions --path '{"serviceName": "serviceName"}' --body '{"K1": "V1"}'
28
+
$ s cli fc3 info --region cn-hangzhou --function-name test -a myAccess
29
+
$ s cli fc3 invoke --region cn-hangzhou --function-name test -e "{"key": "val"}" -a myAccess
30
30
31
31
📖 Documentation: https://serverless.help/t/s/
32
32
Options:
@@ -73,22 +73,34 @@ s cli devsapp/website deploy -p "{\"bucket\":\"testbucket\",\"src\":{\"codeUri\"
73
73
74
74
### Specific Component Support
75
75
76
-
Serverless Devs offers several well-designed components that are optimized for Cli mode. For example, the `fc api` component is prioritized for command line usage, facilitating quick interactions with certain Aliyun Function Compute (FC) service interfaces, such as:
76
+
Serverless Devs offers several well-designed components that are optimized for Cli mode. For example, the `fc3` component is prioritized for command line usage, facilitating quick interactions with certain Aliyun Function Compute (FC) service interfaces, such as:
77
77
78
-
- Listing functions within a specified service and region:
78
+
- Listing functions within a specified function and region:
79
79
80
-
```shell script
81
-
s cli fc api listFunctions --service-name my-service --region cn-beijing -a myaccess
82
-
```
80
+
```bash
81
+
s cli fc3 info --region cn-hangzhou --function-name test -a myAccess
82
+
```
83
83
84
-
- Updating function code via the command line:
84
+
- Invoking function via the command line:
85
85
86
-
```shell script
87
-
s cli fc api updateFunction --region cn-hangzhou --serviceName fc-deploy-service --functionName http-trigger-function --code '{"zipFile":"./"}'
88
-
```
86
+
```bash
87
+
s cli fc3 invoke --region cn-hangzhou --function-name test -e "{\"key\" : \"val\"}" -a myAccess
88
+
```
89
89
90
-
Furthermore, several components that typically support Yaml mode may also offer an optimized pure command line interface for specific operations. An example is the `fc` component, which provides commands for resource synchronization:
90
+
Furthermore, several components that typically support Yaml mode may also offer an optimized pure command line interface for specific operations. An example is the `fc3` component, which provides commands for resource synchronization:
91
91
92
-
```shell script
93
-
s cli fc sync --region cn-shanghai --service-name myService --type config
92
+
```bash
93
+
$ s cli fc3 sync -h
94
+
Usage: s cli fc3 sync [options]
95
+
96
+
Synchronize online resources to offline resources.
97
+
98
+
Examples with Yaml:
99
+
$ s sync
100
+
$ s sync --target-dir ./test --qualifier testAlias
101
+
102
+
Examples with CLI:
103
+
$ s cli fc3 sync --region cn-hangzhou --function-name test -a default
104
+
$ s cli fc3 sync --region cn-hangzhou --function-name s1\$f1 -a default
Copy file name to clipboardExpand all lines: content/en/serverless-devs/command/verify.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ The functionality of the `verify` command includes two parts:
33
33
1. Serverless Devs tool side: Performs basic checks on the Yaml file's format, magic variables, and versions. This part of the functionality is similar to the `preview` command.
34
34
2. Component side: The component provides a method, according to certain conventions, to conduct a more detailed truth verification of all resource attribute values in the Yaml file, such as whether the type is correct and whether the value exists in the enumeration options.
35
35
36
-
The convention method and development examples for the component side can be found here: [Serverless Devs Component Development Specification](https://docs.serverless-devs.com/serverless-devs/development-manual/component#约定方法).
36
+
The convention method and development examples for the component side can be found here: [Serverless Devs Component Development Specification](https://manual.serverless-devs.com/dev-guide/component/).
0 commit comments