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.2.tar.gz (4.6 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.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gcp_profiles-0.1.2.tar.gz
  • Upload date:
  • Size: 4.6 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.2.tar.gz
Algorithm Hash digest
SHA256 5219d11d26acda59ebfc3bce662f29f79d33f48e133610c37adec4aec73101cb
MD5 ca497d2eb09d5aee11fe09ec1bfe537a
BLAKE2b-256 b7f3987f35a55b05315ee9082af4e921b152414fc6f2d5e9e0aa42a51027410e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gcp_profiles-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: gcp_profiles-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8553ad8f53fcc55d80a45ab2cb69f5c68652d5805e0cf601c57411acf026d800
MD5 e1ae850f0b1287c0d9a0925a12ded468
BLAKE2b-256 8eed2b0bbeee35cb9450e3869c21ca6cd56b057c61ccf4cb568a4356087bc3c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for gcp_profiles-0.1.2-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