instavm 0.15.0 → 0.16.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 +49 -2
- package/dist/cli.js +2449 -228
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -45,8 +45,11 @@ printf '%s' "$INSTAVM_API_KEY" | instavm auth set-key
|
|
|
45
45
|
```bash
|
|
46
46
|
instavm whoami
|
|
47
47
|
instavm ls
|
|
48
|
+
instavm ls -a
|
|
48
49
|
instavm create --type computer-use --memory 4096
|
|
49
50
|
instavm connect vm_123
|
|
51
|
+
instavm deploy
|
|
52
|
+
instavm deploy --plan
|
|
50
53
|
instavm snapshot ls
|
|
51
54
|
instavm volume ls
|
|
52
55
|
instavm volume files upload <volume_id> ./README.md --path docs/README.md
|
|
@@ -58,11 +61,43 @@ instavm doc
|
|
|
58
61
|
instavm billing
|
|
59
62
|
```
|
|
60
63
|
|
|
64
|
+
`instavm ls` shows active VMs only. Use `-a` or `--all` to include terminated VM records.
|
|
65
|
+
|
|
66
|
+
### Cookbooks
|
|
67
|
+
|
|
68
|
+
`instavm cookbook` pulls curated starter apps from the public [`instavm/cookbooks`](https://github.com/instavm/cookbooks) catalog, creates a VM, starts the service, creates the share, and returns the public URL.
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
instavm cookbook list
|
|
72
|
+
instavm cookbook info neon-city-webgl
|
|
73
|
+
instavm cookbook deploy neon-city-webgl
|
|
74
|
+
instavm cookbook deploy hello-fastapi
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The CLI syncs the cookbook repo into `~/.instavm/cookbooks/`, checks for `git`, `ssh`, `scp`, and `tar`, prompts for any required secrets, and auto-registers a local public SSH key if your account does not already have one.
|
|
78
|
+
|
|
79
|
+
### Deploy
|
|
80
|
+
|
|
81
|
+
`instavm deploy` tries to deploy the app in the current directory without asking you to create an `instavm.yaml` first. It detects a simple Node.js or Python web app, creates a VM, uploads the project, starts the service, and gives you a share URL.
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
instavm deploy
|
|
85
|
+
instavm deploy --plan
|
|
86
|
+
instavm deploy ./path/to/app
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`--plan` shows the detected runtime, install command, start command, port, and secrets without creating a VM.
|
|
90
|
+
|
|
91
|
+
`instavm deploy` is experimental right now. The zero-config path is working best for straightforward Node.js and Python apps. Some runtimes and projects still need follow-up fixes or backend support.
|
|
92
|
+
|
|
61
93
|
### Command Reference
|
|
62
94
|
|
|
63
95
|
- `auth`: `set-key`, `status`, `logout`
|
|
64
96
|
- `whoami`: show account details and SSH keys
|
|
65
|
-
- `
|
|
97
|
+
- `ls`/`list`: show active VMs by default; use `-a` or `--all` for all VM records
|
|
98
|
+
- `cookbook`: `list`, `info`, `deploy` for curated starter apps from `instavm/cookbooks`
|
|
99
|
+
- `deploy`: experimental zero-config deploy for the current app directory
|
|
100
|
+
- `create`/`new`, `rm`/`delete`, `clone`, `connect`: core VM workflows
|
|
66
101
|
- `snapshot`: `ls`, `create`, `build`, `get`, `rm`
|
|
67
102
|
- `desktop`: `status`, `start`, `stop`, `viewer`
|
|
68
103
|
- `volume`: `ls`, `get`, `create`, `update`, `rm`, `checkpoint`, `files`
|
|
@@ -93,6 +128,8 @@ console.log(vms.length);
|
|
|
93
128
|
- [CLI](#cli)
|
|
94
129
|
- [Auth & Config](#auth--config)
|
|
95
130
|
- [Common Commands](#common-commands)
|
|
131
|
+
- [Cookbooks](#cookbooks)
|
|
132
|
+
- [Deploy](#deploy)
|
|
96
133
|
- [Command Reference](#command-reference)
|
|
97
134
|
- [Library Quick Start](#library-quick-start)
|
|
98
135
|
- [Code Execution](#code-execution)
|
|
@@ -489,7 +526,17 @@ npm run build # Build package
|
|
|
489
526
|
|
|
490
527
|
## Changelog
|
|
491
528
|
|
|
492
|
-
Current package version: **0.
|
|
529
|
+
Current package version: **0.16.0**
|
|
530
|
+
|
|
531
|
+
### 0.16.0
|
|
532
|
+
|
|
533
|
+
- Expanded CLI docs for `instavm cookbook`
|
|
534
|
+
- Added experimental `instavm deploy` for zero-config app deploys from the current directory
|
|
535
|
+
|
|
536
|
+
### 0.15.1
|
|
537
|
+
|
|
538
|
+
- `ls` now matches the SSH gateway: active VMs by default, `-a` or `--all` for all VM records
|
|
539
|
+
- `whoami` now uses the live `/v1/users/me` endpoint
|
|
493
540
|
|
|
494
541
|
### 0.15.0
|
|
495
542
|
|