Skip to main content

Google Cloud CLI Account & Project Selector

Project description

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:

  1. Account Selection: Choose from your authenticated Google Cloud accounts
  2. Project Selection: Select a project from the chosen account
  3. 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

  1. First, authenticate your Google Cloud accounts:

    gcloud auth login
    
  2. Install gcloud-account-changer:

    pipx install gcloud-account-changer
    
  3. Run the tool:

    gcloud-account-changer
    
  4. Select your desired account and project from the interactive interface

Requirements

  • urwid - Terminal user interface library
  • gcloud CLI tool (must be installed separately)

Development

To contribute to this project:

  1. Clone the repository:

    git clone https://github.com/search5/gcloud-account-changer.git
    cd gcloud-account-changer
    
  2. 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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcloud_account_changer-0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

gcloud_account_changer-0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file gcloud_account_changer-0.1.tar.gz.

File metadata

File hashes

Hashes for gcloud_account_changer-0.1.tar.gz
Algorithm Hash digest
SHA256 145d32d4e806da8449aaaeac56f06e494b2f424231be42f66369a06270082774
MD5 3afd4a69af556287c6c0b7e974f8fd9c
BLAKE2b-256 be635a7e52d8b12df4b2242eb1b1b5b82a0007423839d47909eae2e0b968cdf2

See more details on using hashes here.

File details

Details for the file gcloud_account_changer-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gcloud_account_changer-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5201625ef5d675fa9e7ebdc0a76faa1c955b7b506e192b8af5dbba145bd13a9b
MD5 8bad0a028494b2fb40410fb2a251ed2b
BLAKE2b-256 bcea66275287d1010eab9eea64754f41b785a68e7fe40a9a7c68aa5cea9daec5

See more details on using hashes here.

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