Getting started
Quick install
Section titled “Quick install”curl -fsSL https://github.com/shabayekdes/cloudkit-cli/releases/latest/download/install.sh | bashThe installer:
- Asks which clouds you use: AWS, Google Cloud, both, or neither (CloudKit and its common tools only)
- Installs missing dependencies after one confirmation, using
brew(macOS) orapt/dnf/yum/pacman(Linux) - Downloads the latest release of CloudKit to
~/.cloudkit(or switches an existing install to it) - Adds a
source …/main.shblock to~/.zshrc/~/.bashrc(re-running never duplicates it) - Offers to set up your AWS / gcloud credentials
- Offers to restart your shell so
ckworks right away
Installer options
Section titled “Installer options”Pass options after bash -s --, for example:
curl -fsSL https://github.com/shabayekdes/cloudkit-cli/releases/latest/download/install.sh | bash -s -- --gcp --yes| Option | Effect |
|---|---|
--aws / --gcp / --all |
Install dependencies for one cloud or both (default: ask) |
--core |
Install only the common tools (curl, jq, python3), without the AWS CLI or gcloud |
--yes |
Don’t ask for confirmation |
--no-deps |
Skip dependency installation |
--no-rc |
Don’t edit shell rc files |
--no-setup |
Don’t offer credential setup |
--dir <path> |
Install directory (default: $CLOUDKIT_HOME or ~/.cloudkit) |
--deps <tools> |
Install only these tools and exit, e.g. --deps expect,nc |
--uninstall |
Remove CloudKit (never touches ~/.aws or gcloud configuration) |
Upgrade
Section titled “Upgrade”Re-run the install command: it moves ~/.cloudkit to the newest release. Check what you have with:
ck versionInstall from a clone
Section titled “Install from a clone”git clone https://github.com/shabayekdes/cloudkit-cli.gitcd cloudkit-cli./install.shRunning ./install.sh from a clone uses that clone in place, so git pull or git checkout <tag> controls the version.
Dependencies
Section titled “Dependencies”The installer handles these for you; install them by hand if you prefer:
| Tool | Needed for |
|---|---|
jq, python3 |
everything |
| AWS CLI v2 | AWS commands |
| Session Manager plugin | ck ec2 session, port-forward, upload, ck ecs exec |
expect, nc |
ck ec2 upload (offered on first use) |
Google Cloud CLI (gcloud) |
Google Cloud commands |
When installing by hand, add this line to your ~/.zshrc or ~/.bashrc:
source /path/to/cloudkit-cli/main.shSet up credentials
Section titled “Set up credentials”ck doctor # check tools, AWS profiles, gcloud configurations, ADC, rc fileck setup aws # AWS SSO (IAM Identity Center), access keys, or a chained roleck setup gcloud # create/update a gcloud configuration, log in, optional ADCck setup writes standard files (~/.aws/config, gcloud configurations), so profiles you already have keep working. See Setup and status for details.
First steps
Section titled “First steps”ck aws login # pick a profile and log inck ec2 session # pick a running instance and open a shellck help # list all commandsRun ck help <command> (for example ck help gce) for a command’s options.
Uninstall
Section titled “Uninstall”~/.cloudkit/install.sh --uninstallThis removes the rc block and ~/.cloudkit. Your ~/.aws and gcloud configuration are left untouched.