gcloud-account-changer
Google Cloud CLI Account & Project Selector - A terminal-based interactive tool for managing multiple Google Cloud accounts and projects.
Features
- 🔄 Easy switching between multiple Google Cloud accounts
- 📋 Interactive project selection for each account
- 🎨 Terminal-based user interface using urwid
- ⚡ Quick account and project configuration
- 💾 Remember your preferred settings
Installation
Using pipx (Recommended)
pipx install gcloud-account-changer
Using uv
uv tool install gcloud-account-changer
Using pip
pip install gcloud-account-changer
Prerequisites
- Google Cloud CLI (
gcloud) must be installed and configured - Python 3.7 or higher
- At least one Google Cloud account authenticated with
gcloud auth login
Usage
After installation, run the tool using:
gcloud-account-changer
The interactive interface will guide you through:
- Account Selection: Choose from your authenticated Google Cloud accounts
- Project Selection: Select a project from the chosen account
- Configuration: Apply the selected account and project to your gcloud CLI
Keyboard Navigation
- Arrow Keys: Navigate through options
- Enter: Select an option
- Esc/Q: Quit the application
Getting Started
-
First, authenticate your Google Cloud accounts:
gcloud auth login
-
Install gcloud-account-changer:
pipx install gcloud-account-changer
-
Run the tool:
gcloud-account-changer
-
Select your desired account and project from the interactive interface
Requirements
urwid- Terminal user interface librarygcloudCLI tool (must be installed separately)
Development
To contribute to this project:
-
Clone the repository:
git clone https://github.com/search5/gcloud-account-changer.git cd gcloud-account-changer
-
Install in development mode:
uv sync
License
This project is licensed under the BSD License.
Author
Lee Ji-Ho - search5@gmail.com
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Issues
If you encounter any problems or have feature requests, please create an issue on the GitHub repository.
Changelog
v0.1
- Initial release
- Basic account and project switching functionality
- Terminal-based user interface
Release files for gcloud-account-changer 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gcloud_account_changer-0.1.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gcloud_account_changer-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / gcloud_account_changer-0.1.tar.gz
| Download URL | gcloud_account_changer-0.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
145d32d4e806da8449aaaeac56f06e494b2f424231be42f66369a06270082774
|
|
BLAKE2b-256 checksum How to use checksums |
be635a7e52d8b12df4b2242eb1b1b5b82a0007423839d47909eae2e0b968cdf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Release files / gcloud_account_changer-0.1-py3-none-any.whl
| Download URL | gcloud_account_changer-0.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5201625ef5d675fa9e7ebdc0a76faa1c955b7b506e192b8af5dbba145bd13a9b
|
|
BLAKE2b-256 checksum How to use checksums |
bcea66275287d1010eab9eea64754f41b785a68e7fe40a9a7c68aa5cea9daec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|