HomeMogDBMogDB StackUqbar
v1.1

Documentation:v1.1

Supported Versions:

Other Versions:

Viewing Help Information

After PTK is successfully installed, you can run ptk -h to view the help information. For details about command parameters, see PTK Command Reference.

PTK is a command line tool for deploying and managing the MogDB database cluster. 

Usage:
  ptk [flags] <command> [args...]
  ptk [command]

Available Commands:
  env         Prints PTK-loaded environment variable values.
  gen-om-xml  Generates the gs_om XML configuration file.
  self        Operates with the PTK self installation package.
  version     Prints the PTK version.
  help        Prints the PTK help information.
  completion  Generate the autocompletion script for the specified shell

Pre Install Commands:
  candidate   Prints the PTK-supported software version list. 
  download    Downloads the MogDB installation package online. 
  checkos     Checks whether the cluster server system meets database installation requirements. 
  encrypt     Provides a convenient method of encrypting your text or password. 
  template    Prints the configuration template.

Install Commands:
  install     Configures and deploys the MogDB database cluster based on the given topology. 
  uninstall   Uninstalls the MogDB database cluster.

Post Install Commands:
  ls          Lists all MogDB clusters.
  cluster     Manages the database cluster.
Experimental Commands:
  register    Register PTK internal types for specific needs.
Flags:
  -h, --help                Prints the PTK help information.
      --log-file string     Specifies a path of the run log file
      --log-format string   Specifies the output format of the run log. The value can be text or json. The default value is text. 
      --log-level string    Specifies the run log level. The value can be debug, info, warning, error, and panic. The default value is info.
  -v, --version             Prints the PTK version.

Use "ptk [command] --help" for more information about a command.

Viewing Version

You can run ptk -v to view PTK version.

$ ptk -v
PTK Version:  v0.8.0 release
Go Version:   go1.19.4
Build Date:   2023-05-26T18:07:20
Git Hash:     c87adff
OS/Arch:      linux/amd64

The output includes the PTK version, Golang version in compilation, build time, and git hash value.

More

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