@riventa/cli 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +191 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1216 -0
- package/package.json +46 -0
package/README.md
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
# @riventa/cli
|
|
2
|
+
|
|
3
|
+
Command line interface for Riventa.Dev - AI-powered DevOps platform.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @riventa/cli
|
|
9
|
+
# or
|
|
10
|
+
yarn global add @riventa/cli
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Quick Start
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Authenticate
|
|
17
|
+
riventa login
|
|
18
|
+
|
|
19
|
+
# Initialize project
|
|
20
|
+
riventa init
|
|
21
|
+
|
|
22
|
+
# Deploy
|
|
23
|
+
riventa deploy
|
|
24
|
+
|
|
25
|
+
# Run code review
|
|
26
|
+
riventa review --file src/app.ts
|
|
27
|
+
|
|
28
|
+
# Check status
|
|
29
|
+
riventa status
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Commands
|
|
33
|
+
|
|
34
|
+
| Command | Description |
|
|
35
|
+
|---------|-------------|
|
|
36
|
+
| `riventa login` | Authenticate with Riventa.Dev |
|
|
37
|
+
| `riventa logout` | Log out and clear credentials |
|
|
38
|
+
| `riventa whoami` | Show current authenticated user |
|
|
39
|
+
| `riventa init` | Initialize project in current directory |
|
|
40
|
+
| `riventa projects` | List and switch between projects |
|
|
41
|
+
| `riventa deploy` | Deploy to production |
|
|
42
|
+
| `riventa status` | View project and deployment status |
|
|
43
|
+
| `riventa logs` | View deployment logs |
|
|
44
|
+
| `riventa rollback` | Rollback to a previous deployment |
|
|
45
|
+
| `riventa review` | Run AI code review on changes |
|
|
46
|
+
| `riventa security` | Security scanning and score |
|
|
47
|
+
| `riventa config` | Manage CLI configuration |
|
|
48
|
+
| `riventa config:update` | Update .riventa.yml with AI |
|
|
49
|
+
| `riventa health` | Check API connectivity and status |
|
|
50
|
+
|
|
51
|
+
## Command Details
|
|
52
|
+
|
|
53
|
+
### Authentication
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# Login with browser (recommended)
|
|
57
|
+
riventa login
|
|
58
|
+
|
|
59
|
+
# Show current user
|
|
60
|
+
riventa whoami
|
|
61
|
+
|
|
62
|
+
# Logout
|
|
63
|
+
riventa logout
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Project Management
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# Initialize a new project
|
|
70
|
+
riventa init
|
|
71
|
+
|
|
72
|
+
# List all projects
|
|
73
|
+
riventa projects
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Deployments
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Deploy to production
|
|
80
|
+
riventa deploy
|
|
81
|
+
|
|
82
|
+
# Deploy to a specific environment
|
|
83
|
+
riventa deploy --environment staging
|
|
84
|
+
|
|
85
|
+
# Deploy a specific branch
|
|
86
|
+
riventa deploy --branch feature/new-ui
|
|
87
|
+
|
|
88
|
+
# Check deployment status
|
|
89
|
+
riventa status
|
|
90
|
+
|
|
91
|
+
# View deployment logs
|
|
92
|
+
riventa logs
|
|
93
|
+
|
|
94
|
+
# Follow logs in real-time
|
|
95
|
+
riventa logs --follow
|
|
96
|
+
|
|
97
|
+
# View specific deployment logs
|
|
98
|
+
riventa logs --deployment dep_123abc
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Rollback
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Interactive rollback
|
|
105
|
+
riventa rollback
|
|
106
|
+
|
|
107
|
+
# Rollback to specific deployment
|
|
108
|
+
riventa rollback --deployment dep_123abc
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Code Review
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
# Review staged changes
|
|
115
|
+
riventa review
|
|
116
|
+
|
|
117
|
+
# Review a specific file
|
|
118
|
+
riventa review --file src/components/Button.tsx
|
|
119
|
+
|
|
120
|
+
# Review a pull request
|
|
121
|
+
riventa review --pr 42
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Configuration
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# List all configuration
|
|
128
|
+
riventa config --list
|
|
129
|
+
|
|
130
|
+
# Get a specific value
|
|
131
|
+
riventa config --get baseUrl
|
|
132
|
+
|
|
133
|
+
# Set a value
|
|
134
|
+
riventa config --set baseUrl=https://custom.api.riventa.dev
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Configuration File
|
|
138
|
+
|
|
139
|
+
Riv AI generates and manages `.riventa.yml` automatically. Run `riventa init` and the AI will analyze your project structure, framework, and cloud provider to create the optimal configuration — no manual YAML writing needed.
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
# AI generates .riventa.yml based on your project
|
|
143
|
+
riventa init
|
|
144
|
+
|
|
145
|
+
# Update config with natural language
|
|
146
|
+
riventa config:update "add Slack notifications to #deploys"
|
|
147
|
+
riventa config:update "enable auto-rollback on error rate > 5%"
|
|
148
|
+
riventa config:update "add staging environment with health checks"
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### `config:update` Command
|
|
152
|
+
|
|
153
|
+
Modify your `.riventa.yml` using natural language instructions:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
riventa config:update <instruction>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
The command reads your current `.riventa.yml`, sends the instruction to Riv AI, shows a diff preview of the proposed changes, and applies them after confirmation.
|
|
160
|
+
|
|
161
|
+
### Security
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
# Run a security scan
|
|
165
|
+
riventa security --scan
|
|
166
|
+
|
|
167
|
+
# View security score
|
|
168
|
+
riventa security --score
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Health Check
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
# Check API connectivity
|
|
175
|
+
riventa health
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## Environment Variables
|
|
179
|
+
|
|
180
|
+
| Variable | Description |
|
|
181
|
+
|----------|-------------|
|
|
182
|
+
| `RIVENTA_API_KEY` | API key for authentication |
|
|
183
|
+
| `RIVENTA_BASE_URL` | Custom API base URL |
|
|
184
|
+
|
|
185
|
+
## Documentation
|
|
186
|
+
|
|
187
|
+
Full documentation at [https://riventa.dev/developers/cli](https://riventa.dev/developers/cli)
|
|
188
|
+
|
|
189
|
+
## License
|
|
190
|
+
|
|
191
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|