# Rivora CLI

**Infrastructure Intelligence Layer**

Rivora CLI is your command-line interface for managing cloud infrastructure with AI-powered intelligence. Connect your AWS, Kubernetes, and other cloud resources to get intelligent insights, automated remediation, and streamlined infrastructure management.

## ✨ Features

- 🔐 **Secure Authentication** - JWT-based auth with Rivora platform
- ☁️ **Multi-Cloud Support** - AWS and Kubernetes integration
- 🤖 **AI-Powered Remediation** - Intelligent infrastructure issue detection and fixes
- 📊 **Findings & Plans** - Detect misconfigurations and generate remediation plans
- 🔄 **Auto-Update** - Keep your CLI up to date effortlessly

## 🚀 Installation

### Quick Install (Recommended)

```bash
curl -fsSL https://rivora.dev/install | bash
```

This installs a self-contained binary with zero runtime dependencies. Works on:
- ✅ macOS (Apple Silicon & Intel)
- ✅ Linux (x64 & ARM64)

### Alternative: Install via npm/bun

```bash
npm install -g @rivora/cli
# or
bun add -g @rivora/cli
```

## 🎯 Quick Start

```bash
# Login to Rivora
rivora auth login

# Connect to AWS
rivora connect aws --profile <your-profile>

# Sync inventory and find issues
rivora inventory aws --sync
rivora findings list --severity high

# Get finding details with AI explanation
rivora findings get <finding-id>

# Generate remediation plan
rivora findings plan <finding-id> --format terraform

# Apply remediation
rivora findings remediate <finding-id> --dry-run
rivora findings remediate <finding-id> --apply
```

## 📚 Commands

### Authentication

- `rivora auth login` - Authenticate with Rivora
- `rivora auth logout` - Sign out
- `rivora auth status` - Check authentication status

### Cloud Connections

- `rivora connect aws` - Connect to AWS
- `rivora connect slack` - Connect Slack for notifications

### Inventory & Findings

- `rivora inventory aws --sync` - Sync AWS inventory
- `rivora findings list` - List security findings
- `rivora findings get <id>` - Get finding details
- `rivora findings plan <id>` - Generate remediation plan
- `rivora findings remediate <id>` - Apply remediation

### CI/CD Integration

- `rivora ci scan` - Run security scan in CI
- `rivora ci gate` - Deploy gate check
- `rivora ci comment` - Post findings to PR

### Maintenance

- `rivora update` - Update to latest version
- `rivora --version` - Show version
- `rivora --help` - Show help

## 🔐 Security

- **No Credential Storage** - CLI never stores AWS credentials
- **Native Auth Chain** - Uses existing `~/.aws/` config
- **JWT Tokens** - Secure authentication with Rivora platform

## 🌍 Platform Support

| Platform | Architecture | Status |
|----------|-------------|--------|
| macOS | ARM64 (M1/M2/M3) | ✅ Supported |
| macOS | x64 (Intel) | ✅ Supported |
| Linux | x64 | ✅ Supported |
| Linux | ARM64 | ✅ Supported |

## 🔄 Auto-Update

```bash
# Check for updates
rivora update --check

# Install latest version
rivora update
```

## 🔗 Links

- **Website**: https://rivora.dev
- **Documentation**: https://docs.rivora.dev

## 💬 Support

- **Documentation**: https://docs.rivora.dev
- **Email**: support@rivora.dev

---

Made with ❤️ by Rivora
