Skip to main content

A simple gcloud auth and adc manager.

Project description

gcp-profiles

A simple command-line interface (CLI) tool for managing and switching between multiple Google Cloud Platform (GCP) authentication profiles via a central vault. gcp-profiles manages google cloud's application default credentials and gcloud credentials and keeps them in sync.


Features

  • Create new GCP authentication profiles.
  • List all existing profiles in the vault.
  • Activate a specific profile to change the active GCP configuration.
  • Delete profiles when they are no longer needed.

Installation

You can install gcp-profiles using pip.

pip install gcp-profiles

Prerequisites

Google Cloud CLI (gcloud): The gcloud command-line tool must be installed and accessible in your system's PATH. This tool is essential as gcp-profiles relies on it for profile management and authentication.


Usage

The main command is gcp-profiles. Below are the available subcommands and their usage.

1. Creating a Profile

Registers a new authentication profile in the vault. If the profile already exists, you must use the --force option to overwrite it.

gcp-profiles create my-new-profile --force

Now a new gcloud configuration and new application default credentials have been stored as the my-new-profile profile.

2. Listing Profiles

Displays the names of all profiles currently stored in the vault.

gcp-profiles list

3. Activating a Profile

Sets the specified profile as the active GCP configuration, making it the one used by subsequent gcloud commands and application authentication.

gcp-profiles activate my-new-profile

4. Deleting a Profile

Permanently removes a profile from the vault.

gcp-profiles delete my-new-profile

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_profiles-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gcp_profiles-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file gcp_profiles-0.1.0.tar.gz.

File metadata

  • Download URL: gcp_profiles-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gcp_profiles-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ced7b8e25c4506b012804bddee94efedcacf2cecafc874f1e1a52dde5a51d381
MD5 77d6c6a5fedba559df7c1092810bcaea
BLAKE2b-256 69c52dbd668ab6d07a515bf7125b3f725ac825c0fbb84fb18fdc9be8fcadd204

See more details on using hashes here.

Provenance

The following attestation bundles were made for gcp_profiles-0.1.0.tar.gz:

Publisher: publish.yaml on manelcaireta/gcp-profiles

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gcp_profiles-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gcp_profiles-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gcp_profiles-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43ebb7d59326f4ef6c19122fabf0a8279a4ee21a227b9d63ab5e5c9ec9b3a9da
MD5 c265277d8b9f439b27a40b62ef6825f9
BLAKE2b-256 cb7fd48302968c17143e3bfaec3c99b518cf8dcdc87b7959f19c7006cb1bf693

See more details on using hashes here.

Provenance

The following attestation bundles were made for gcp_profiles-0.1.0-py3-none-any.whl:

Publisher: publish.yaml on manelcaireta/gcp-profiles

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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