文档中心MogDBMogDB StackUqbar
v1.1

文档:v1.1

支持的版本:

ptk cluster install-plugin

安装 MogDB 插件

语法

ptk cluster install-plugin [flags]

示例

# By default, all plugins of the same version as the cluster will be downloaded from the network
ptk cluster -n <CLUSTER_NAME> install-plugin [--override]

# If you want to install a specific plugin, you can specify plugin name with '-P'
ptk cluster -p <CLUSTER_NAME> install-plugin -P postgis -P wal2json

# If your host can not access internet, you can install from local plugin package
ptk cluster -p <CLUSTER_NAME> install-plugin -p <LOCAL_PLUGIN_PACKAGE>

选项

-H, --host strings

  • 说明: 指定待安装的主机 IP, 默认将安装到集群中的所有主机
  • 数据类型: strings
  • 默认值: []

--override

  • 说明: 是否覆盖现有插件文件
  • 数据类型: bool
  • 默认值: false

-p, --pkg string

  • 说明: 指定插件包路径
  • 数据类型: string
  • 默认值: ""

-P, --plugin strings

  • 说明: 指定要安装的插件名称, 默认会安装所有插件
  • 数据类型: strings
  • 默认值: []

--skip-check-version

  • 说明: 不检查数据库版本是否和插件版本匹配
  • 数据类型: bool
  • 默认值: false

从父命令继承的选项

--disable-color

  • 说明: 禁用彩色日志
  • 数据类型: bool
  • 默认值: false

--disable-debug-log

  • 说明: 不生成调试日志文件
  • 数据类型: bool
  • 默认值: false

--disable-progressbar

  • 说明: 全局不显示进度条
  • 数据类型: bool
  • 默认值: false

-h, --help

  • 说明: 打印帮助信息
  • 数据类型: bool
  • 默认值: false

--log-file string

  • 说明: 指定运行日志文件路径
  • 数据类型: string
  • 默认值: ""

--log-format string

  • 说明: 指定运行日志的输出格式, 可选项: [text, json]
  • 数据类型: string
  • 默认值: "text"

--log-level string

  • 说明: 指定运行日志级别, 可选项: [debug, info, warning, error, panic]
  • 数据类型: string
  • 默认值: "info"

-n, --name string

  • 说明: 集群名称
  • 数据类型: string
  • 默认值: ""

--silence

  • 说明: 不打印日志到标准输出
  • 数据类型: bool
  • 默认值: false

--skip-fix-ssh

  • 说明: 无需通过交互修复 ssh 连接
  • 数据类型: bool
  • 默认值: false

开始支持的版本

v0.3

另请参阅

Copyright © 2011-2024 www.enmotech.com All rights reserved.