Git Authentication & Development Interface Assistant & Navigator
Guardian: Git Authentication & Development Assistant
A comprehensive tool for managing Git authentication, security,
and development workflows.
Authentication management commands
cli auth setup-github: Configure GitHub Personal Access Token (PAT) for authenticationcli auth setup-ssh: Generate and configure SSH keyscli auth status: Check status of all authentication methodscli auth validate-github: Validate GitHub token and show its capabilitiescli auth list: List configured authentication methodscli auth debug-tokens: Debug token storage (development only)cli auth debug-service: Debug auth service configurationcli auth setup-signing: Setup GPG key for commit signing
Configuration management commands
cli config set: Set a configuration valuecli config get: Get a configuration valuecli config unset: Remove a configuration valuecli config init: Initialize configuration with defaults
Pre-commit hook management
cli hooks templates: List available hook templatescli hooks install: Install Git hooks using specified templatecli hooks list: List installed hooks and their statuscli hooks show: Show content of an installed hookcli hooks remove: Remove an installed hook
Code formatting commands
cli format run: Format code using configured formatterscli format configure: Configure formatting settingscli init: Initialize Guardian in the current directory
Repository and remote management commands
cli repo create: Create a remote repository for the current projectcli repo connect: Connect existing repository to a remotecli repo sync: Synchronize repository configuration across systemscli repo apply-sync: Apply synchronized configuration from .guardian-sync.yml
git clone github.com/gnarzilla/guardian
python3 -m venv venv
source venv/bin/activate
pip install .
guardian
# Initialize Guardian
guardian init
# Setup authentication
guardian auth setup-ssh
guardian auth setup-github
# Check status
guardian auth statusHere are some common use cases:
# Install Guardian
pip install guardian
# Setup authentication
guardian auth setup-ssh
guardian auth setup-github
# Verify setup
guardian auth status# View current configuration
guardian config get
# Set configuration
guardian config set user.name "Your Name"
guardian config set user.email "[email protected]"# Install hooks
guardian hooks install
# View installed hooks
guardian hooks list$ guardian docs commands
guardian
┣━━ auth
┃ Authentication management commands
┃ ┣━━ debug-service
┃ ┃ Debug auth service configuration
┃ ┣━━ debug-tokens
┃ ┃ Debug token storage (development only)
┃ ┣━━ list
┃ ┃ List configured authentication methods
┃ ┣━━ setup-bitbucket
┃ ┃ Configure Bitbucket App Password
┃ ┣━━ setup-github
┃ ┃ Configure GitHub Personal Access Token (PAT) for authentication
┃ ┣━━ setup-gitlab
┃ ┃ Configure GitLab Personal Access Token
┃ ┣━━ setup-signing
┃ ┃ Setup GPG key for commit signing
┃ ┣━━ setup-ssh
┃ ┃ Generate and configure SSH keys
┃ ┣━━ status
┃ ┃ Check status of all authentication methods
┃ ┗━━ validate-github
┃ Validate GitHub token and show its capabilities
┣━━ config
┃ Configuration management commands
┃ ┣━━ get
┃ ┃ Get a configuration value
┃ ┣━━ init
┃ ┃ Initialize configuration with defaults
┃ ┣━━ set
┃ ┃ Set a configuration value
┃ ┗━━ unset
┃ Remove a configuration value
┣━━ deps
┃ Dependencies management commands
┃ ┗━━ sync
┃ Sync dependencies with requirements/pyproject.toml
┣━━ docs
┃ Documentation management commands
┃ ┣━━ commands
┃ ┃ Generate command tree documentation
┃ ┗━━ project
┃ Generate project structure documentation
┣━━ format
┃ Code formatting commands
┃ ┣━━ configure
┃ ┃ Configure formatting settings
┃ ┗━━ run
┃ Format code using configured formatters
┣━━ hooks
┃ Pre-commit hook management
┃ ┣━━ install
┃ ┃ Install Git hooks using specified template
┃ ┣━━ list
┃ ┃ List installed hooks and their status
┃ ┣━━ remove
┃ ┃ Remove an installed hook
┃ ┣━━ show
┃ ┃ Show content of an installed hook
┃ ┗━━ templates
┃ List available hook templates
┣━━ init
┃ Initialize Guardian in the current directory
┣━━ proxy
┃ Proxy server management
┃ ┣━━ cert
┃ ┃ Show certificate installation instructions
┃ ┗━━ start
┃ Start the authentication proxy
┗━━ repo
Repository and remote management commands
┣━━ apply-sync
┃ Apply synchronized configuration from .guardian-sync.yml
┣━━ connect
┃ Connect existing repository to a remote
┣━━ create
┃ Create a remote repository for the current project
┣━━ migrate
┃ Repository migration commands
┃ ┣━━ execute
┃ ┃ Execute repository migration
┃ ┗━━ plan
┃ Plan repository migration
┣━━ pull
┃ Pull from remote repository
┣━━ push
┃ Push changes to remote repository
┣━━ status
┃ Check repository status and remote connection
┗━━ sync
Synchronize repository configuration across systemsFor more examples and detailed documentation, visit our documentation site.
We welcome contributions! Please see our Contributing Guide for details.
MIT License - see LICENSE for details.