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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gcp_profiles-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 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.1.tar.gz
Algorithm Hash digest
SHA256 eb8a0a598c0b709c02894ef581c200fc2cf1110464dfdbafda46f17521f6e644
MD5 0a8eacd184ffdb4d1a17ae02b46bc60e
BLAKE2b-256 6615a932fcd78e53089be00b263fb202b024ed826aa1ce9e25a3289ffeb76230

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: gcp_profiles-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 719a54eadab04f4cc4f2ee128c59ac025b0a48e533e017863edec5a6732e570b
MD5 768371223c67aa527a6db3e7bee41637
BLAKE2b-256 48835dd4e3091d93bcb0536f6cf9d76839625c3dea4266356cb9418e4336923f

See more details on using hashes here.

Provenance

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