oauth-db-cli 0.1.0

Command-line tool for managing OAuth-DB platform
Documentation
# OAuth-DB CLI

Command-line tool for managing OAuth-DB platform, applications, and users.

## Installation

```bash
cargo install oauth-db-cli
```

## Quick Start

```bash
# Login to OAuth-DB server
oauth-db login --server http://localhost:38080

# List applications
oauth-db apps list

# Create a new application
oauth-db apps create --name "My App" --redirect-uri "http://localhost:3000/callback"

# Manage users
oauth-db users list
oauth-db users create --username admin --email admin@example.com

# View account information
oauth-db accounts list
oauth-db whoami
```

## Features

- 🔐 **Authentication**: Login, logout, and account management
- 📱 **Application Management**: Create, list, update, and delete OAuth2 applications
- 👥 **User Management**: Manage platform users and app users
- 🏢 **Platform Management**: Platform-level administration
- 🔑 **Multi-Account**: Support multiple server accounts with easy switching
- 🎨 **Rich Output**: Colorful tables and interactive prompts

## Configuration

Configuration is stored in:
- Linux/macOS: `~/.config/oauth-db/config.yaml`
- Windows: `%APPDATA%\oauth-db\config.yaml`

## Commands

### Authentication
- `login` - Login to OAuth-DB server
- `logout` - Logout from current account
- `whoami` - Show current user information

### Account Management
- `accounts list` - List all configured accounts
- `accounts switch` - Switch to another account
- `accounts remove` - Remove an account

### Application Management
- `apps list` - List all applications
- `apps create` - Create a new application
- `apps get` - Get application details
- `apps update` - Update application
- `apps delete` - Delete application

### User Management
- `users list` - List platform users
- `users create` - Create a new user
- `users get` - Get user details
- `users update` - Update user
- `users delete` - Delete user

### Platform Management
- `platform info` - Show platform information
- `platform stats` - Show platform statistics

## Documentation

For detailed documentation, visit: https://github.com/putao520/oauth-db

## License

MIT License - see LICENSE file for details