Skip to main content

Google Cloud Platform CLI Utils

Have you ever struggled to switch between GCP projects locally ? Are you constantly struggling with the interface of GCP when you want to switch between services and projects ? Here is a simple CLI to simplify your daily life

Requirements

GCLOUD SDK has to be installed on your machine and you have to be logged in

Usage

Switch between projects

If you want to list all projects before choosing one

gcpq s

If you want to search for a specific term in the project name or project id

gcpq s searchTerm

You will see the following output to choose your project from:

$ gcpq mycompanyName
[0] : mycompany-380102 (mycompany)
[1] : mycompany-airbyte (mycompany-airbyte)
[2] : mycompany-chatbot (mycompany-chatbot)
[3] : mycompany-etl (mycompany-etl)
[4] : mycompany-ga4-lehoublon-flo (mycompany-ga4-lehoublon-flo)
[5] : mycompany-guillaume-pde (mycompany-guillaume-pde)
[6] : mycompany-n8n (mycompany-n8n)
[7] : mycompany-terraform (mycompany-terraform)
Enter project number to switch to: 

If you want to automatically switch to the first found project

gcpq searchTerm -a

Opening Google Cloud Interface quickly

If you want to open a service quickly. When you don't specify projects, the current Gcloud set project will be used

gcpq bq

Open multiple services at the same time

gcpq bq,dataform,iam,build,gcs

Aliases have been created for the services. You can see them in the services.yaml file of the repo

Open services on a specific project (you will be able to choose the project matching the search result)

gcpq bq myCompanyName

Open services on a specific project automatically (Will open the first found project)

gcpq bq myCompanyName -a 

Create shortcuts of groups of services

  • Open your config file located in ~/.gcpq/config.yaml
  • Add new groups of services in the file (follow current structure)
gcpq myGroupName 

Add a friendly name for a project

Add a friendly name that will help find the projects in the future. Friendly name are searchable

gcpq a searchTerm

searchTerm is optional

Modifying GCPQ

If you need to modify the package, you can test your modifications with poetry run gcpq

poetry run gcpq bq

Metadata

Release files for gcp-quick-utils 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gcp-quick-utils 0.3.1
File Size Uploaded
gcp_quick_utils-0.3.1.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gcp-quick-utils 0.3.1
File Interpreter ABI Platform
gcp_quick_utils-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / gcp_quick_utils-0.3.1.tar.gz

Download URL gcp_quick_utils-0.3.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c4fd495d28b525fea23a7a7496b26b04682f150dc7fb96cf7749e7bcd9822bb5
BLAKE2b-256 checksum
How to use checksums
921ab8a31e4342a0f21cc64965e26fe6749bf17c3e056f76d6cff4f4f0ae0063
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.18 Linux/5.15.146.1-microsoft-standard-WSL2

Release files / gcp_quick_utils-0.3.1-py3-none-any.whl

Download URL gcp_quick_utils-0.3.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71f4da69c264b32045af7b04965069530bb69216708458decb0bb2feef9206ec
BLAKE2b-256 checksum
How to use checksums
43fc2d7976a55751951abea3fa496634c9a2fb007c8c9f89d9294d1744225801
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.9.18 Linux/5.15.146.1-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page