跳转至

FlowFederateCLI

Introduction

首先,我们将通过下述命令快速安装:

pip install iflearner-flow-client

接下来, 我们将介绍如何使用命令行工具flow_federate_cliiflearner_flow_federate进行交互,以下是子命令。

Usage: flow_federate_cli [OPTIONS] COMMAND [ARGS]...

  Iflearner Flow Federate  Cli.

Options:
  -h, --help  Show this message and exit.

Commands:
  init  Iflearner Federate Flow Cli Init Command
  task  Task Operations Group

具体命令用法如下。

Initialization

在使用命令行之前,我们需要初始化操作,主要是配置连接服务的相关参数

Usage

flow_federate_cli init [OPTIONS]

OPTIONS

参数名称 必填 类型 描述
--host string 连接iflearner_flow_federate的ip地址
--port string 连接iflearner_flow_federate的端口

Request Example

flow_federate_cli init --host 127.0.0.1 --port 1235

Request Example

{
  "ret_code": 0,
  "ret_message": "success"
}

Task