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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5219d11d26acda59ebfc3bce662f29f79d33f48e133610c37adec4aec73101cb
|
|
| MD5 |
ca497d2eb09d5aee11fe09ec1bfe537a
|
|
| BLAKE2b-256 |
b7f3987f35a55b05315ee9082af4e921b152414fc6f2d5e9e0aa42a51027410e
|
Provenance
The following attestation bundles were made for gcp_profiles-0.1.2.tar.gz:
Publisher:
publish.yaml on manelcaireta/gcp-profiles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gcp_profiles-0.1.2.tar.gz -
Subject digest:
5219d11d26acda59ebfc3bce662f29f79d33f48e133610c37adec4aec73101cb - Sigstore transparency entry: 996221780
- Sigstore integration time:
-
Permalink:
manelcaireta/gcp-profiles@c313ef1a9a50560fca0d7c828cfde44008744c69 -
Branch / Tag:
- Owner: https://github.com/manelcaireta
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@c313ef1a9a50560fca0d7c828cfde44008744c69 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8553ad8f53fcc55d80a45ab2cb69f5c68652d5805e0cf601c57411acf026d800
|
|
| MD5 |
e1ae850f0b1287c0d9a0925a12ded468
|
|
| BLAKE2b-256 |
8eed2b0bbeee35cb9450e3869c21ca6cd56b057c61ccf4cb568a4356087bc3c1
|
Provenance
The following attestation bundles were made for gcp_profiles-0.1.2-py3-none-any.whl:
Publisher:
publish.yaml on manelcaireta/gcp-profiles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gcp_profiles-0.1.2-py3-none-any.whl -
Subject digest:
8553ad8f53fcc55d80a45ab2cb69f5c68652d5805e0cf601c57411acf026d800 - Sigstore transparency entry: 996221874
- Sigstore integration time:
-
Permalink:
manelcaireta/gcp-profiles@c313ef1a9a50560fca0d7c828cfde44008744c69 -
Branch / Tag:
- Owner: https://github.com/manelcaireta
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@c313ef1a9a50560fca0d7c828cfde44008744c69 -
Trigger Event:
release
-
Statement type: