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