gcloud-utils
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

gcloud-utils

oclif Version Downloads/week License

If you work with multiple GCP projects and Kubernetes clusters, I'm sure you have hit the same problem as me where you have to continually switch projects and clusters throughout the day. It's really annoying if you don't remember the project and cluster names as well as their regions. So I've created a small "wrapper" CLI around gcloud that caches the information about your projects and clusters to make it faster and easier to switch between them at any given time. It's simple to get started:

npm install -g gcloud-utils
gcu sync
gcu switch:cluster

The sync may take a minute or two and you'll need to re-sync whenever you add a new project or cluster. For more details about the commands, see below.




Usage

$ npm install -g gcloud-utils
$ gcu COMMAND
running command...
$ gcu (-v|--version|version)
gcloud-utils/1.1.2 linux-x64 node-v12.16.3
$ gcu --help [COMMAND]
USAGE
  $ gcu COMMAND
...

Commands

gcu help [COMMAND]

display help for gcu

USAGE
  $ gcu help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

gcu info

Prints the current info around the selected project and cluster.

USAGE
  $ gcu info

ALIASES
  $ gcu i
  $ gcu print
  $ gcu p

See code: src/commands/info.ts

gcu switch:cluster

Switch the active Kubernetes cluster.

USAGE
  $ gcu switch:cluster

ALIASES
  $ gcu sc

See code: src/commands/switch/cluster.ts

gcu sync

Stores all of the projects and clusters so that the switch is a lot faster.

USAGE
  $ gcu sync

EXAMPLE
  $ gcu sync

See code: src/commands/sync.ts

Readme

Keywords

Package Sidebar

Install

npm i gcloud-utils

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

23.5 kB

Total Files

46

Last publish

Collaborators

  • entrostat-developer