全部產品
Search
文件中心

CloudFlow:阿里雲CLI

更新時間:Mar 13, 2025

本文介紹了阿里雲命令列工具CLI的使用,您可以通過阿里雲命令列工具CLI訪問CloudFlow。

前提條件

  1. 安裝阿里雲CLI。

  2. 配置阿里雲CLI。

說明

建議您使用最新版的阿里雲CLI 。如果您在使用本產品之前已經使用舊版的阿里雲CLI ,可能會收到“無法找到CloudFlow產品”等資訊提示,更新至最新版本的阿里雲CLI即可解決問題。

使用樣本

本樣本針對CloudFlow產品,結合一些具體命令協助您通過阿里雲CLI訪問CloudFlow。

您在安裝完阿里雲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"
    }