本文介紹了阿里云命令行工具CLI的使用,您可以通過阿里云命令行工具CLI訪問云工作流。
前提條件
說明
建議您使用最新版的阿里云CLI 。如果您在使用本產品之前已經使用舊版的阿里云CLI ,可能會收到“無法找到云工作流產品”等信息提示,更新至最新版本的阿里云CLI即可解決問題。
使用示例
本示例針對云工作流產品,結合一些具體命令幫助您通過阿里云CLI訪問云工作流。
您在安裝完阿里云CLI 后(并已配置好AccessKey ID和 AccessKey Secret),可進行以下操作:
獲取幫助信息
命令行示例
aliyun help fnf 阿里云CLI命令行工具x.x.x Usage: aliyun fnf <ApiName> --parameter1 value1 --parameter2 value2 ... Product: fnf (云工作流) Version: 2019-03-15 Link: https://example.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命令行工具x.x.x Product: fnf (云工作流) Link: https://xxxxxx.html Parameters: --Limit String Optional --NextToken String Optional --RequestID String Optional
該命令展示了某個API所需要的參數、對應類型、是否必填等信息。
使用子命令
命令行示例
aliyun fnf ListFlows { "Flows": [ { "Name": "xxx", ... } ], "RequestId": "xxx" }
文檔內容是否對您有幫助?