Skip to content

ClapCtl - ClapDB CLI

clapctl is a CLI tool written by golang, it use cloudformation to deploy and manage ClapDB clusters on AWS, or other cloud.

Installation

Terminal window
curl -fsSL https://clapdb.com/install.sh | sh

Usage

clapctl is in active development, so the usage may change in the future. so type clapctl --help to get the latest usage.

Deploy

start clapdb journey by deploying a cluster

Terminal window
clapdb deploy -n your_cluster_name

Check binary version

Terminal window
clapctl info cli

and Update it by brew or other package manager or wget it if you want to use the latest version.

Terminal window
clapctl info service -n your_cluster_name

after the deploy, you need register/login

Checking status

checking the clapctl status

Terminal window
clapctl doctor -n your_cluster_name

get the info of cluster

Terminal window
clapctl status -n your_cluster_name

Delete

delete your cluster will destroy data, and provisoned resources, so be careful.

Terminal window
clapctl delete -n your_cluster_name

Import dataset

Dataset is the official dataset to help you to get started with clapdb, you can import the dataset to your cluster.

list available datasets

Terminal window
clapctl dataset --list

please import the dataset that you want to try

Terminal window
clapctl dataset --import dataset_name.type -n your_cluster_name

Query

Terminal window
clapctl sql -n demo-for-rookie -s sql_query_string