Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.01 KB

File metadata and controls

60 lines (41 loc) · 1.01 KB

PasarGuard CLI

A modern, type-safe command-line interface for managing PasarGuard, built with Typer.

Features

  • 🎯 Type-safe CLI with rich output
  • 📊 Beautiful tables and panels
  • 🔒 Secure admin management
  • 📈 System status monitoring
  • ⌨️ Interactive prompts and confirmations

Installation

The CLI is included with PasarGuard and can be used directly:

PasarGuard cli --help

# Or from the project root
uv run PasarGuard-cli.py --help

Usage

General Commands

# Show version
pasarguard cli version

# Show help
pasarguard cli --help

Admin Management

# List all admins
pasarguard cli admins --list

# Create new admin
pasarguard cli admins --create username

# Delete admin
pasarguard cli admins --delete username

# Modify admin (password and sudo status)
PasarGuard cli admins --modify username

# Reset admin usage
pasarguard cli admins --reset-usage username

System Information

# Show system status
PasarGuard cli system