@launchmatic/cli 0.4.0 → 0.6.1

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.
Files changed (4) hide show
  1. package/README.md +178 -178
  2. package/dist/c.js +0 -0
  3. package/dist/index.js +1109 -155
  4. package/package.json +46 -37
package/README.md CHANGED
@@ -1,178 +1,178 @@
1
- # @launchmatic/cli
2
-
3
- Deploy from your terminal. The official CLI for [Launchmatic](https://launchmatic.io) — detect, build, and ship your apps to the cloud in seconds.
4
-
5
- ## Install
6
-
7
- ```bash
8
- npm install -g @launchmatic/cli
9
- ```
10
-
11
- ## Quick Start
12
-
13
- ```bash
14
- lm login # Authenticate with GitHub
15
- lm quicklaunch # Detect, configure, and deploy — one command
16
- ```
17
-
18
- Or use **Lightspeed** to create an app from a prompt:
19
-
20
- ```bash
21
- c -c a real-time chat app with rooms
22
- ```
23
-
24
- ## Commands
25
-
26
- ### Core
27
-
28
- | Command | Alias | Description |
29
- |---------|-------|-------------|
30
- | `lm login` | | Authenticate via GitHub OAuth |
31
- | `lm init` | | Initialize a project in the current directory |
32
- | `lm deploy` | | Build and deploy the current service |
33
- | `lm quicklaunch` | `lm ql` | Detect, configure, and deploy in one shot |
34
- | `lm status` | | Show service status, URL, and last deployment |
35
- | `lm logs` | | Stream live deployment logs |
36
- | `lm destroy` | | Tear down a service (requires confirmation) |
37
-
38
- ### AI / Lightspeed
39
-
40
- | Command | Description |
41
- |---------|-------------|
42
- | `c -c <prompt>` | Create a new app from a natural language description |
43
- | `c <prompt>` | Modify an existing service with AI |
44
- | `lm lightspeed` | Same as `c`, integrated into the main CLI |
45
-
46
- ### Environment & Domains
47
-
48
- | Command | Description |
49
- |---------|-------------|
50
- | `lm env set KEY=VALUE ...` | Set environment variables |
51
- | `lm env list` | List environment variables |
52
- | `lm domains add <hostname>` | Add a custom domain (shows DNS config) |
53
-
54
- ### Deployments
55
-
56
- | Command | Alias | Description |
57
- |---------|-------|-------------|
58
- | `lm deployments list` | `lm deploys ls` | View deployment history |
59
- | `lm deployments info <id>` | | Deployment details |
60
- | `lm deployments cancel <id>` | | Cancel a running deployment |
61
- | `lm deployments rollback <id>` | | Roll back to a previous deployment |
62
-
63
- ### Preview Environments
64
-
65
- | Command | Description |
66
- |---------|-------------|
67
- | `lm preview list` | List active preview environments |
68
- | `lm preview create <branch>` | Create a preview deployment for a branch |
69
- | `lm preview delete <id>` | Delete a preview environment |
70
-
71
- ### Database
72
-
73
- | Command | Alias | Description |
74
- |---------|-------|-------------|
75
- | `lm db create` | | Provision a new database |
76
- | `lm db list` | `lm db ls` | List databases |
77
- | `lm db connect` | `lm db url` | Get connection string |
78
- | `lm db query <sql>` | `lm db q` | Run a SQL query |
79
- | `lm db shell` | `lm db sh` | Interactive SQL shell |
80
- | `lm db tables` | | List tables |
81
- | `lm db dump` | | Export database dump |
82
- | `lm db seed` | | Seed database |
83
- | `lm db credentials` | `lm db creds` | Show database credentials |
84
- | `lm db link` | | Link a database to a service |
85
- | `lm db delete` | `lm db rm` | Delete a database |
86
-
87
- Supports PostgreSQL, Redis, and MongoDB via `--engine`.
88
-
89
- ### GitHub Repo
90
-
91
- | Command | Alias | Description |
92
- |---------|-------|-------------|
93
- | `lm repo view` | `lm repo v` | Show repo info |
94
- | `lm repo prs` | | List pull requests |
95
- | `lm repo issues` | | List issues |
96
- | `lm repo issue-create` | `lm repo ic` | Create an issue |
97
- | `lm repo branches` | `lm repo br` | List branches |
98
- | `lm repo commits` | `lm repo log` | Show commit history |
99
- | `lm repo releases` | `lm repo rl` | List releases |
100
- | `lm repo actions` | `lm repo runs` | View GitHub Actions runs |
101
- | `lm repo browse` | `lm repo web` | Open repo in browser |
102
- | `lm repo clone` | | Clone the repo |
103
- | `lm repo diff` | | Show diff |
104
- | `lm repo stash` | | Stash changes |
105
-
106
- ### Infrastructure
107
-
108
- | Command | Description |
109
- |---------|-------------|
110
- | `lm infra list -t <team>` | List pods with CPU, memory, and readiness |
111
- | `lm infra logs <pod>` | Stream pod logs |
112
- | `lm infra describe <pod>` | Describe a pod |
113
- | `lm infra restart <pod>` | Restart a pod |
114
- | `lm infra delete <pod>` | Delete a pod |
115
-
116
- ### Browser Automation
117
-
118
- | Command | Alias | Description |
119
- |---------|-------|-------------|
120
- | `lm browser screenshot [url]` | `lm b ss` | Take a screenshot |
121
- | `lm browser pdf [url]` | | Generate a PDF |
122
- | `lm browser open [url]` | | Open in headed browser |
123
- | `lm browser test [url]` | | Run smoke tests (links, console, a11y) |
124
- | `lm browser wait [url]` | | Wait for a page to be reachable |
125
- | `lm browser codegen [url]` | | Record and generate test code |
126
- | `lm browser devices` | | List available device profiles |
127
-
128
- ### Utilities
129
-
130
- | Command | Description |
131
- |---------|-------------|
132
- | `lm doctor` | Scan project for deployment issues and fixes |
133
- | `lm usage summary` | View CPU, memory, network, and replica stats |
134
- | `lm usage history` | Resource usage over time (default 24h) |
135
- | `lm api-key list` | List API keys |
136
- | `lm api-key create <name>` | Create an API key |
137
- | `lm api-key delete <id>` | Delete an API key |
138
-
139
- ## Examples
140
-
141
- ```bash
142
- # Deploy a project from the current directory
143
- lm init
144
- lm deploy
145
-
146
- # One-command deploy with auto-detection
147
- lm quicklaunch
148
-
149
- # Create an app with AI
150
- c -c a markdown blog with syntax highlighting
151
-
152
- # Modify an existing app
153
- c add a dark mode toggle to the settings page
154
-
155
- # Check project health before deploying
156
- lm doctor
157
-
158
- # Manage environment variables
159
- lm env set DATABASE_URL=postgres://... REDIS_URL=redis://...
160
-
161
- # Stream logs
162
- lm logs
163
-
164
- # Roll back a bad deployment
165
- lm deployments rollback <deployment-id>
166
-
167
- # Interactive database shell
168
- lm db shell
169
- ```
170
-
171
- ## Requirements
172
-
173
- - Node.js >= 20
174
- - A [Launchmatic](https://launchmatic.io) account
175
-
176
- ## License
177
-
178
- MIT
1
+ # @launchmatic/cli
2
+
3
+ Deploy from your terminal. The official CLI for [Launchmatic](https://launchmatic.io) — detect, build, and ship your apps to the cloud in seconds.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g @launchmatic/cli
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```bash
14
+ lm login # Authenticate with GitHub
15
+ lm quicklaunch # Detect, configure, and deploy — one command
16
+ ```
17
+
18
+ Or use **Lightspeed** to create an app from a prompt:
19
+
20
+ ```bash
21
+ c -c a real-time chat app with rooms
22
+ ```
23
+
24
+ ## Commands
25
+
26
+ ### Core
27
+
28
+ | Command | Alias | Description |
29
+ |---------|-------|-------------|
30
+ | `lm login` | | Authenticate via GitHub OAuth |
31
+ | `lm init` | | Initialize a project in the current directory |
32
+ | `lm deploy` | | Build and deploy the current service |
33
+ | `lm quicklaunch` | `lm ql` | Detect, configure, and deploy in one shot |
34
+ | `lm status` | | Show service status, URL, and last deployment |
35
+ | `lm logs` | | Stream live deployment logs |
36
+ | `lm destroy` | | Tear down a service (requires confirmation) |
37
+
38
+ ### AI / Lightspeed
39
+
40
+ | Command | Description |
41
+ |---------|-------------|
42
+ | `c -c <prompt>` | Create a new app from a natural language description |
43
+ | `c <prompt>` | Modify an existing service with AI |
44
+ | `lm lightspeed` | Same as `c`, integrated into the main CLI |
45
+
46
+ ### Environment & Domains
47
+
48
+ | Command | Description |
49
+ |---------|-------------|
50
+ | `lm env set KEY=VALUE ...` | Set environment variables |
51
+ | `lm env list` | List environment variables |
52
+ | `lm domains add <hostname>` | Add a custom domain (shows DNS config) |
53
+
54
+ ### Deployments
55
+
56
+ | Command | Alias | Description |
57
+ |---------|-------|-------------|
58
+ | `lm deployments list` | `lm deploys ls` | View deployment history |
59
+ | `lm deployments info <id>` | | Deployment details |
60
+ | `lm deployments cancel <id>` | | Cancel a running deployment |
61
+ | `lm deployments rollback <id>` | | Roll back to a previous deployment |
62
+
63
+ ### Preview Environments
64
+
65
+ | Command | Description |
66
+ |---------|-------------|
67
+ | `lm preview list` | List active preview environments |
68
+ | `lm preview create <branch>` | Create a preview deployment for a branch |
69
+ | `lm preview delete <id>` | Delete a preview environment |
70
+
71
+ ### Database
72
+
73
+ | Command | Alias | Description |
74
+ |---------|-------|-------------|
75
+ | `lm db create` | | Provision a new database |
76
+ | `lm db list` | `lm db ls` | List databases |
77
+ | `lm db connect` | `lm db url` | Get connection string |
78
+ | `lm db query <sql>` | `lm db q` | Run a SQL query |
79
+ | `lm db shell` | `lm db sh` | Interactive SQL shell |
80
+ | `lm db tables` | | List tables |
81
+ | `lm db dump` | | Export database dump |
82
+ | `lm db seed` | | Seed database |
83
+ | `lm db credentials` | `lm db creds` | Show database credentials |
84
+ | `lm db link` | | Link a database to a service |
85
+ | `lm db delete` | `lm db rm` | Delete a database |
86
+
87
+ Supports PostgreSQL, Redis, and MongoDB via `--engine`.
88
+
89
+ ### GitHub Repo
90
+
91
+ | Command | Alias | Description |
92
+ |---------|-------|-------------|
93
+ | `lm repo view` | `lm repo v` | Show repo info |
94
+ | `lm repo prs` | | List pull requests |
95
+ | `lm repo issues` | | List issues |
96
+ | `lm repo issue-create` | `lm repo ic` | Create an issue |
97
+ | `lm repo branches` | `lm repo br` | List branches |
98
+ | `lm repo commits` | `lm repo log` | Show commit history |
99
+ | `lm repo releases` | `lm repo rl` | List releases |
100
+ | `lm repo actions` | `lm repo runs` | View GitHub Actions runs |
101
+ | `lm repo browse` | `lm repo web` | Open repo in browser |
102
+ | `lm repo clone` | | Clone the repo |
103
+ | `lm repo diff` | | Show diff |
104
+ | `lm repo stash` | | Stash changes |
105
+
106
+ ### Infrastructure
107
+
108
+ | Command | Description |
109
+ |---------|-------------|
110
+ | `lm infra list -t <team>` | List pods with CPU, memory, and readiness |
111
+ | `lm infra logs <pod>` | Stream pod logs |
112
+ | `lm infra describe <pod>` | Describe a pod |
113
+ | `lm infra restart <pod>` | Restart a pod |
114
+ | `lm infra delete <pod>` | Delete a pod |
115
+
116
+ ### Browser Automation
117
+
118
+ | Command | Alias | Description |
119
+ |---------|-------|-------------|
120
+ | `lm browser screenshot [url]` | `lm b ss` | Take a screenshot |
121
+ | `lm browser pdf [url]` | | Generate a PDF |
122
+ | `lm browser open [url]` | | Open in headed browser |
123
+ | `lm browser test [url]` | | Run smoke tests (links, console, a11y) |
124
+ | `lm browser wait [url]` | | Wait for a page to be reachable |
125
+ | `lm browser codegen [url]` | | Record and generate test code |
126
+ | `lm browser devices` | | List available device profiles |
127
+
128
+ ### Utilities
129
+
130
+ | Command | Description |
131
+ |---------|-------------|
132
+ | `lm doctor` | Scan project for deployment issues and fixes |
133
+ | `lm usage summary` | View CPU, memory, network, and replica stats |
134
+ | `lm usage history` | Resource usage over time (default 24h) |
135
+ | `lm api-key list` | List API keys |
136
+ | `lm api-key create <name>` | Create an API key |
137
+ | `lm api-key delete <id>` | Delete an API key |
138
+
139
+ ## Examples
140
+
141
+ ```bash
142
+ # Deploy a project from the current directory
143
+ lm init
144
+ lm deploy
145
+
146
+ # One-command deploy with auto-detection
147
+ lm quicklaunch
148
+
149
+ # Create an app with AI
150
+ c -c a markdown blog with syntax highlighting
151
+
152
+ # Modify an existing app
153
+ c add a dark mode toggle to the settings page
154
+
155
+ # Check project health before deploying
156
+ lm doctor
157
+
158
+ # Manage environment variables
159
+ lm env set DATABASE_URL=postgres://... REDIS_URL=redis://...
160
+
161
+ # Stream logs
162
+ lm logs
163
+
164
+ # Roll back a bad deployment
165
+ lm deployments rollback <deployment-id>
166
+
167
+ # Interactive database shell
168
+ lm db shell
169
+ ```
170
+
171
+ ## Requirements
172
+
173
+ - Node.js >= 20
174
+ - A [Launchmatic](https://launchmatic.io) account
175
+
176
+ ## License
177
+
178
+ MIT
package/dist/c.js CHANGED
File without changes