本文介绍了阿里云命令行工具CLI的使用,您可以通过阿里云命令行工具CLI访问Serverless工作流。
前提条件
使用示例
本示例针对Serverless工作流产品,结合一些具体命令帮助您通过阿里云CLI访问Serverless工作流。
您在安装完阿里云CLI 后(并已配置好AccessKeyId 和 AccessKeySecret),可进行以下操作:
- 获取帮助信息
命令行示例
[~]$ aliyun help fnf 阿里云CLI命令行工具x.x.x Usage: aliyun fnf <ApiName> --parameter1 value1 --parameter2 value2 ... Product: fnf (Serverless工作流) Version: 2019-03-15 Link: https://xxxxx.com/api/fnf Available Api List: CreateFlow DeleteFlow DescribeExecution DescribeFlow DescribeRegions GetExecutionHistory ListExecutions ListFlows StartExecution StopExecution UpdateFlow Run `aliyun fnf <ApiName> --help` to get more information about this API
- 获取某个API帮助信息
命令行示例
[~]$ aliyun fnf ListFlows --help 阿里云CLI命令行工具3.0.12 Product: fnf (Serverless工作流) Link: https://xxxxxx.htm?userCode=wrvvs1rm&zuntopl Parameters: --Limit String Optional --NextToken String Optional --RequestID String Optional
该命令展示了某个API所需要的参数、对应类型、是否必填等信息。
- 使用子命令
命令行示例
[~]$ aliyun fnf ListFlows { "Flows": [ { "Name": "xxx", ... } ], "RequestId": "xxx" }