Installation¶
Requirements¶
- Python 3.8+
- pip
Install from PyPI¶
Development install¶
Bash
git clone https://github.com/vertex-ai-automations/credential-bridge
cd credential-bridge
pip install -e ".[dev]"
Optional extras¶
Bash
pip install "credential-bridge[dev]" # pytest, mypy, ruff
pip install "credential-bridge[docs]" # documentation build dependencies
Verify installation¶
Invocation methods¶
The cb command is the primary entry point. If your organisation blocks executable installation, use the python -m fallback — it runs identically:
| Installed command | python -m equivalent |
|---|---|
cb |
python -m credential_bridge |
cb vault … |
python -m credential_bridge.cli.vault_cli … |
cb keyring … |
python -m credential_bridge.cli.keyring_cli … |
cb env … |
python -m credential_bridge.cli.env_cli … |
Bash
# These are identical:
cb env list --path .env
python -m credential_bridge env list --path .env
python -m credential_bridge.cli.env_cli list --path .env
Backend prerequisites¶
Set VAULT_ADDR before using the vault backend:
Bash
Have either a token (export VAULT_ADDR=https://vault.example.com # Linux/macOS
$env:VAULT_ADDR = "https://vault.example.com" # PowerShell
VAULT_TOKEN) or AppRole credentials ready.
- Windows: Windows Credential Manager (built-in)
- macOS: macOS Keychain (built-in)
- Linux: Install
python3-secretstorageand ensure a D-Bus Secret Service is running:
No prerequisites — just a writable directory.
Never commit .env to git
Add .env to .gitignore before creating it.