| Crates.io | git-profiles-cli |
| lib.rs | git-profiles-cli |
| version | 1.0.1 |
| created_at | 2025-09-16 15:01:33.706327+00 |
| updated_at | 2025-10-13 15:16:12.251318+00 |
| description | A CLI tool to switch between private and work user profiles |
| homepage | |
| repository | https://github.com/MikAoJk/git-profiles-cli |
| max_upload_size | |
| id | 1841895 |
| size | 26,281 |
A CLI tool to switch between private and work user profiles or other git profiles
cargo install git-profiles-cli
cargo install --git https://github.com/MikAoJk/git-profiles-cli git-profiles-cli
git-profiles-cli add <name> --user <user.name> --email <user.email>
# Example:
git-profiles-cli add work --user "Work Name" --email work@example.com
git-profiles-cli list
git-profiles-cli switch <name>
# Example:
git-profiles-cli switch work
git-profiles-cli current
git-profiles-cli remove <name>
Profiles are stored in a config file at this location:
~/.config/git-profiles-cli/config.tomlMake sure you have the correct rust installed, see: Installing Rust The version of rust used in this project could be found here: Cargo.toml To verify the version of rust installed, run the following command:
rustc --version
Make sure you have cargo installed using this command:
Note: installing Rust using rustup will also install cargo
cargo --version
Make sure you have git installed using this command:
git --version
Build the code without running it
cargo build
Run the cli
cargo run