{"id":15676834,"url":"https://github.com/bregman-arie/gcpctl","last_synced_at":"2025-05-07T00:28:56.568Z","repository":{"id":65984680,"uuid":"596273986","full_name":"bregman-arie/gcpctl","owner":"bregman-arie","description":"Google Cloud Platform (GCP) CLI and utils","archived":false,"fork":false,"pushed_at":"2023-05-06T19:29:11.000Z","size":101,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-31T04:32:15.858Z","etag":null,"topics":["cli","gcp","gke"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bregman-arie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-01T20:42:21.000Z","updated_at":"2023-07-28T17:36:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0444946-472c-4aff-a5ab-d5b8a5c369b3","html_url":"https://github.com/bregman-arie/gcpctl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bregman-arie%2Fgcpctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bregman-arie%2Fgcpctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bregman-arie%2Fgcpctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bregman-arie%2Fgcpctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bregman-arie","download_url":"https://codeload.github.com/bregman-arie/gcpctl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252790357,"owners_count":21804582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","gcp","gke"],"created_at":"2024-10-03T16:05:57.973Z","updated_at":"2025-05-07T00:28:56.545Z","avatar_url":"https://github.com/bregman-arie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GCPctl\n\nGoogle Cloud Platform (GCP) utils\n\n**Project is being converted to Go...Work in progress :)**\n\n## Installation\n\n```\npip install -r requirements\npip install .\n```\n\n## Configuration\n\nA configuration file is optional and can enhance part of your user experience with GCP.\nRight now the only thing it support is \"environments\" - think of those as aliases for certain folders.\n\n```\nenvironments:\n  test:\n    - 19282017912   # Actual GCP folder\n  prod:\n    - 192820171241\n    - 82819202212\n  dev:\n    - 192911991212\n```\n\nYou can then reference those environments with some of the commands, like: `gcpctl get projects -e prod`\n\n## Usage\n\n### Folders\n\n* List folders: `gcpctl get folders`\n* List folders under a given a folder: `gcpctl get folders -i \u003cFOLDER_ID\u003e`\n\n### Projects\n\n* List projects: `gcpctl get projects`\n* List projects from prod environment: `gcpctl get projects -e prod` (see configuration section for more info on envs)\n* List projects from prod and dev environments: `gcpctl get projects -e prod dev`\n* List projects from a specific folder: `gpctl get projects -f 19282017912`\n* List projects from prod environment and a specific folder: `gcpctl get projects -e prod -f 19282017912`\n\n### GKE Clusters\n\n* List clusters from a specific env: `gcpctl get gke-clusters -e prod` (see configuration section for more info on envs)\n* Execute `kubectl get pods` on every \"test\" GKE cluster: `gcpctl cluster-exec --commands \"kubectl get pods\"`\n* Execute ls on Pods called \"some-pod\" in all prod clusters: `gcpctl pod-exec --pods some-pod --commands ls`\n\n## Initialize\n\n```\ngo mod init github.com/bregman-arie/gcpctl\ngo mod tidy\n```\n\n## Build from source\n\n```\ngo build -o /usr/local/bin/gcpctl\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbregman-arie%2Fgcpctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbregman-arie%2Fgcpctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbregman-arie%2Fgcpctl/lists"}