g: GCP shortcuts for Alfred
Download
An exported workflow should be available under releases make sure you meet the requirements.
Usage
Commands:
g <query>
for searchg-refresh
for updating list of projects
Refresh projects list
Initially run g-refresh
in Alfred to update the list of authenticated projects.
Open product page
g <project filter>
BigQuery
g My Project
Kube
Configuration
hotkey
Changing the variable hotkey
from g
to gcp
results in commands like gcp <query>
and gcp-refresh
.
authuser
Specify the authuser
query parameter in case you are logged into multiple Google accounts and you want to open links logged into a specific user.
Requirements
If you initialized gcloud recently, make sure to save the authentication locally, see below.
- installed and authenticated
gcloud
https://cloud.google.com/sdk/ - coreutils
brew install coreutils
- save auth locally:
gcloud auth application-default login