Inspired by kubectx, this repository provides tmctx, tmcmc and tmcp utilities.
tmctx helps you switch between VMware Tanzu Mission Control (TMC) CLI contexts.
tmcmc helps you switch between VMware Tanzu Mission Control (TMC) CLI management clusters.
tmcp helps you switch between VMware Tanzu Mission Control (TMC) CLI provisioners.
Note: If you have fzf installed, selection of context, management cluster and provisioners is made much easier!
- Make sure you have the
tmc
CLI installed. - Clone this repository
- Put tmctx, tmcmc and tmcmp into your
$PATH
or move them, e.g.
ln -sf $PWD/tmctx /usr/local/bin/tmctx
ln -sf $PWD/tmcmc /usr/local/bin/tmcmc
ln -sf $PWD/tmcp /usr/local/bin/tmcp
If you're using TMC CLI and want to be reminded of your context, management cluster and provisioner, take a look at my tmc-prompt.
If you're curious about the TMC CLI and looking for examples, take a look at my scripts I use to understand the usability and functionality of the TMC CLI.
Also, if you're at all interested in CLI taxonomy, check out cli_taxo.