@turboops/cli 1.0.0-dev.570

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 ADDED
@@ -0,0 +1,167 @@
1
+ # TurboCLI
2
+
3
+ Command line interface for TurboOps deployments.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ # Global installation
9
+ npm install -g @turboops/cli
10
+
11
+ # Or use with npx
12
+ npx @turboops/cli
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ### Authentication
18
+
19
+ ```bash
20
+ # Login interactively
21
+ turbo login
22
+
23
+ # Login with token (for CI/CD)
24
+ turbo login --token <your-api-token>
25
+
26
+ # Check current user
27
+ turbo whoami
28
+
29
+ # Logout
30
+ turbo logout
31
+ ```
32
+
33
+ ### Project Setup
34
+
35
+ ```bash
36
+ # Initialize project in current directory
37
+ turbo init
38
+
39
+ # Show current configuration
40
+ turbo config
41
+ ```
42
+
43
+ ### Deployment
44
+
45
+ ```bash
46
+ # Deploy to an environment
47
+ turbo deploy production
48
+ turbo deploy staging
49
+ turbo deploy dev
50
+
51
+ # Deploy specific image
52
+ turbo deploy production --image v1.2.3
53
+
54
+ # Deploy without waiting
55
+ turbo deploy production --no-wait
56
+
57
+ # Rollback to previous deployment
58
+ turbo rollback production
59
+
60
+ # Rollback to specific deployment
61
+ turbo rollback production --to <deployment-id>
62
+ ```
63
+
64
+ ### Container Management
65
+
66
+ ```bash
67
+ # Restart containers
68
+ turbo restart production
69
+
70
+ # Stop containers
71
+ turbo stop production
72
+
73
+ # Start stopped containers
74
+ turbo wake production
75
+
76
+ # Show status
77
+ turbo status
78
+ turbo status production
79
+ ```
80
+
81
+ ### Environment Variables
82
+
83
+ ```bash
84
+ # List environment variables
85
+ turbo env production
86
+
87
+ # Show secret values
88
+ turbo env production --reveal
89
+
90
+ # Set variable
91
+ turbo env production set API_KEY=secret123
92
+
93
+ # Set as secret
94
+ turbo env production set API_KEY=secret123 --secret
95
+
96
+ # Remove variable
97
+ turbo env production unset API_KEY
98
+ ```
99
+
100
+ ### Logs
101
+
102
+ ```bash
103
+ # View logs
104
+ turbo logs production
105
+
106
+ # Follow logs (stream)
107
+ turbo logs production --follow
108
+
109
+ # Limit lines
110
+ turbo logs production --lines 50
111
+ ```
112
+
113
+ ## CI/CD Usage
114
+
115
+ ### GitLab CI
116
+
117
+ ```yaml
118
+ deploy:
119
+ stage: deploy
120
+ script:
121
+ - npx @turboops/cli deploy production --wait
122
+ environment:
123
+ name: production
124
+ ```
125
+
126
+ ### GitHub Actions
127
+
128
+ ```yaml
129
+ - name: Deploy
130
+ run: npx @turboops/cli deploy production --wait
131
+ env:
132
+ TURBOOPS_TOKEN: ${{ secrets.TURBOOPS_TOKEN }}
133
+ TURBOOPS_PROJECT: ${{ vars.TURBOOPS_PROJECT }}
134
+ ```
135
+
136
+ ## Environment Variables
137
+
138
+ | Variable | Description |
139
+ |----------|-------------|
140
+ | `TURBOOPS_TOKEN` | API token for authentication |
141
+ | `TURBOOPS_PROJECT` | Project slug |
142
+ | `TURBOOPS_API_URL` | API URL (default: https://api.turboops.io) |
143
+
144
+ ## Global Options
145
+
146
+ ```bash
147
+ --project <slug> Override project slug
148
+ --token <token> Override API token
149
+ --api <url> Override API URL
150
+ --json Output as JSON
151
+ --quiet Only show errors
152
+ --verbose Show debug output
153
+ --no-update-check Skip version check
154
+ ```
155
+
156
+ ## Exit Codes
157
+
158
+ | Code | Description |
159
+ |------|-------------|
160
+ | 0 | Success |
161
+ | 1 | General error |
162
+ | 2 | Timeout |
163
+ | 3 | Health check failed |
164
+
165
+ ## License
166
+
167
+ MIT
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node