Casdoor CLI
Casdoor CLI is the official command-line interface for Casdoor, providing a powerful and intuitive way to manage your Casdoor identity and access management system directly from the terminal.
GitHub repository: https://github.com/casdoor/casdoor-cli
Features
OAuth2 Browser-Based Authentication
The CLI uses a secure browser-based OAuth2 flow for authentication, ensuring your credentials are protected through Casdoor's standard authentication mechanism.
Secure Token Storage
Credentials are safely stored using your system's keyring interface (GNOME Keyring on Linux, Keychain on macOS), ensuring tokens never touch disk in plaintext.
User Management
Create, update, and delete users with ease directly from the command line.
Permission Management
Control user permissions through Casdoor's group feature with built-in roles:
lector: Read-only accesseditor: Can create users, with limited modification rightsadministrator: Full control over user creation, modification, and deletion
Group Management
Create, modify, and delete user groups to organize users and manage permissions efficiently.
Installation
Prerequisites
- Go 1.22.0 or higher
- macOS or Linux operating system
- GNOME Keyring (Linux) or Keychain (macOS) for secure credential storage
Platform Support: Currently supports macOS and Linux (tested on Debian 12 and macOS Sonoma). Windows support via WSL is not available as the CLI requires GNOME's Secret Service DBus interface (GNOME Keyring) for secure credential storage.
macOS
make build TARGET_OS=darwin && make install TARGET_OS=darwin