Metadata-Version: 2.4
Name: wowsql-cli
Version: 0.1.0
Summary: WoWSQL Command Line Interface
Home-page: https://github.com/wowsql/cli
Author: WoWSQL Team
Author-email: support@wowsql.com
Project-URL: Documentation, https://wowsql.com/docs
Project-URL: Source, https://github.com/wowsql/cli
Project-URL: Tracker, https://github.com/wowsql/cli/issues
Keywords: wowsql cli database mysql backend api
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: click>=8.1.7
Requires-Dist: rich>=13.7.0
Requires-Dist: requests>=2.31.0
Requires-Dist: pyyaml>=6.0.1
Requires-Dist: docker>=6.1.0
Requires-Dist: keyring>=24.3.0
Requires-Dist: cryptography>=41.0.7
Requires-Dist: pygments>=2.17.2
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# WoWSQL CLI

Command-line interface for managing WoWSQL backend services.

## Installation

```bash
cd cli
pip install -e .
```

Or install from PyPI (when available):
```bash
pip install wowsql-cli
```

**Note:** The CLI package is named `wowsql_cli` internally to avoid conflicts with the SDK's `wowsql` package, but the command is still `wowsql`.

## Quick Start

1. **Login:**
```bash
wowsql login
```

2. **List projects:**
```bash
wowsql projects list
```

3. **Set default project:**
```bash
wowsql projects set-default saravana-d92fd8e6
```

4. **Query database:**
```bash
wowsql db query "SELECT * FROM users LIMIT 10"
```

## Commands

### Authentication
- `wowsql login` - Login to WoWSQL
- `wowsql logout` - Logout
- `wowsql auth status` - Show authentication status

### Projects
- `wowsql projects list` - List all projects
- `wowsql projects create <name>` - Create new project
- `wowsql projects get <slug>` - Get project details
- `wowsql projects set-default <slug>` - Set default project

### Database
- `wowsql db tables list` - List all tables
- `wowsql db query "<sql>"` - Execute SQL query
- `wowsql db insert <table> --data '{"key": "value"}'` - Insert data
- `wowsql db export <table> --output data.json` - Export table data

### Migrations
- `wowsql migration new <name>` - Create new migration
- `wowsql migration up` - Apply pending migrations
- `wowsql migration down` - Rollback last migration
- `wowsql migration status` - Show migration status

### Storage
- `wowsql storage list` - List files
- `wowsql storage upload <file>` - Upload file
- `wowsql storage download <path>` - Download file

### Local Development
- `wowsql start` - Start local environment
- `wowsql stop` - Stop local environment
- `wowsql status` - Check services status

## Configuration

Configuration is stored in `~/.wowsql/config.yaml`. You can manage multiple profiles for different environments.

## Documentation

For complete documentation, see [docs.wowsql.com/cli](https://docs.wowsql.com/cli)

