Skip to main content

Tools to help you navigate through GCP

Project description

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 rom:

$ 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

Aliased 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 

Modifying GCPQ

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

poetry run gcpq bq

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcp_quick_utils-0.3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

gcp_quick_utils-0.3-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file gcp_quick_utils-0.3.tar.gz.

File metadata

  • Download URL: gcp_quick_utils-0.3.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for gcp_quick_utils-0.3.tar.gz
Algorithm Hash digest
SHA256 1533889b826a845601f069029bdfb6ef6968c49d68eca831ad4cf80adedf8260
MD5 6984bf54740c93613210efc2ba32c66e
BLAKE2b-256 6e568cbc2be73c6737039ae54fc49f7f44234930b88fff025df7e62c6e861ed4

See more details on using hashes here.

File details

Details for the file gcp_quick_utils-0.3-py3-none-any.whl.

File metadata

  • Download URL: gcp_quick_utils-0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for gcp_quick_utils-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d31f26e3392d70388571fcff6540099f838604a188203c4b39e26123c98afd1b
MD5 79bddc077974104ce07e1deba0e5f9c5
BLAKE2b-256 ddb2a9b9f9f3a9d86c75bad3b1e3b00a36e18a8c29f94ab91832faea45ea6774

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page