Table of Contents
Introduction
The gpdb CLI helps to download, install, remove, and manage GPDB / GPCC installation, in both single and multi node installations.
Installation
- To provision a vagrant VM with go-gpdb pre-installed, please follow the instructions in the datalab documentation. Make sure it can access the internet. Connect to the provisioned VM using datalab ssh and start using the gpdb cli using the examples mentioned below.
- If configuring your own VM, please follow the instructions in INSTALL.md.
Usage
Usage:
gpdb [command] [flags]
gpdb [command]
Available Commands:
download Download the product from pivotal network
env Show all the environment installed
help Help about any command
install Install the product downloaded from download command
remove Removes the product installed using the install command
Flags:
-d, --debug Enable verbose or debug logging
-h, --help help for gpdb
--version version for gpdb
Use "gpdb [command] --help" for more information about a command.
Configuration
Configuration file is placed at the home directory of the user $HOME/config.yml
. Alter this file for default configuration change.
Example
Download
-
To download product interactively from PivNet
gpdb download
-
To download gpdb interactively from GitHub
gpdb download --github
-
To download a specific version
gpdb download -v <GPDB VERSION>
-
To download and install a specific version
gpdb download -v <GPDB VERSION> --install
-
To download GPCC software in interactive mode.
gpdb download -p gpcc
-
To download GPCC software of specific version.
gpdb download -p gpcc -v <GPDB VERSION>
-
To download all GPDB products in interactive mode
gpdb download -p gpextras
-
To download all products of specific version.
gpdb download -p gpextras -v <GPDB VERSION>
-
To obtain help menu of the download command
gpdb help download
Install
- To install gpdb
gpdb install -v <GPDB VERSION>
- To install gpdb & standby
gpdb install -v <GPDB VERSION> --standby
- To install gpcc
gpdb install -p gpcc -v <GPDB VERSION> -c <GPCC VERSION>
- To obtain help menu of the install command
gpdb help install
Env
Remove
Demo

Developers / Contributors
- Clone the git repository
- Export the GOPATH
export GOPATH=<path to the clone repository>
- cd to project folder
cd $GOPATH/src/github.com/pivotal-gss/go-gpdb/gpdb
- Install all the dependencies. If you don't have dep installed, follow the instruction from here
dep ensure
- You are all set, you can run it locally using
go run *.go <commands>
- To build the package use
env GOOS=linux GOARCH=amd64 go build -o gpdb