@onkernel/cli 0.11.2 → 0.11.3
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 +43 -3
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ Kernel provides sandboxed, ready-to-use Chrome browsers for browser automations
|
|
|
21
21
|
|
|
22
22
|
### What you can do with the CLI
|
|
23
23
|
|
|
24
|
+
- Create new Kernel applications from templates
|
|
24
25
|
- Deploy and version apps to Kernel
|
|
25
26
|
- Invoke app actions (sync or async) and stream logs
|
|
26
27
|
- Create, list, view, and delete managed browser sessions
|
|
@@ -50,19 +51,25 @@ kernel --version
|
|
|
50
51
|
|
|
51
52
|
## Quick Start
|
|
52
53
|
|
|
53
|
-
1. **
|
|
54
|
+
1. **Create a new Kernel app:**
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
kernel create
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
2. **Authenticate with Kernel:**
|
|
54
61
|
|
|
55
62
|
```bash
|
|
56
63
|
kernel login
|
|
57
64
|
```
|
|
58
65
|
|
|
59
|
-
|
|
66
|
+
3. **Deploy your app:**
|
|
60
67
|
|
|
61
68
|
```bash
|
|
62
69
|
kernel deploy index.ts
|
|
63
70
|
```
|
|
64
71
|
|
|
65
|
-
|
|
72
|
+
4. **Invoke your app:**
|
|
66
73
|
```bash
|
|
67
74
|
kernel invoke my-app action-name --payload '{"key": "value"}'
|
|
68
75
|
```
|
|
@@ -103,6 +110,20 @@ Create an API key from the [Kernel dashboard](https://dashboard.onkernel.com).
|
|
|
103
110
|
- `kernel logout` - Clear stored credentials
|
|
104
111
|
- `kernel auth` - Check authentication status
|
|
105
112
|
|
|
113
|
+
### App Creation
|
|
114
|
+
|
|
115
|
+
- `--name <name>`, `-n` - Name of the application
|
|
116
|
+
- `--language <language>`, `-l` - Sepecify app language: `typescript`, or `python`
|
|
117
|
+
- `--template <template>`, `-t` - Template to use:
|
|
118
|
+
- `sample-app` - Basic template with Playwright integration
|
|
119
|
+
- `advanced-sample` - Sample apps using advanced Kernel configs
|
|
120
|
+
- `stagehand` - Template with Stagehand SDK (TypeScript only)
|
|
121
|
+
- `browser-use` - Template with Browser Use SDK (Python only)
|
|
122
|
+
- `computer-use` - Anthropic Computer Use prompt loop
|
|
123
|
+
- `cua` - OpenAI Computer Using Agent (CUA) sample
|
|
124
|
+
- `gemini-cua` - Google Gemini CUA sample (TypeScript only)
|
|
125
|
+
- `magnitude` - Magnitude framework sample (TypeScript only)
|
|
126
|
+
|
|
106
127
|
### App Deployment
|
|
107
128
|
|
|
108
129
|
- `kernel deploy <file>` - Deploy an app to Kernel
|
|
@@ -356,6 +377,25 @@ Create an API key from the [Kernel dashboard](https://dashboard.onkernel.com).
|
|
|
356
377
|
|
|
357
378
|
## Examples
|
|
358
379
|
|
|
380
|
+
### Create a new app
|
|
381
|
+
|
|
382
|
+
```bash
|
|
383
|
+
# Interactive mode (prompts for all options)
|
|
384
|
+
kernel create
|
|
385
|
+
|
|
386
|
+
# Create a TypeScript app with sample template
|
|
387
|
+
kernel create --name my-app --language typescript --template sample-app
|
|
388
|
+
|
|
389
|
+
# Create a Python app with Browser Use
|
|
390
|
+
kernel create --name my-scraper --language python --template browser-use
|
|
391
|
+
|
|
392
|
+
# Create a TypeScript app with Stagehand
|
|
393
|
+
kernel create --name my-agent --language ts --template stagehand
|
|
394
|
+
|
|
395
|
+
# Create a Python Computer Use app
|
|
396
|
+
kernel create --name my-cu-app --language py --template computer-use
|
|
397
|
+
```
|
|
398
|
+
|
|
359
399
|
### Deploy with environment variables
|
|
360
400
|
|
|
361
401
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onkernel/cli",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "Kernel CLI",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node install.js",
|
|
@@ -34,75 +34,75 @@
|
|
|
34
34
|
},
|
|
35
35
|
"archives": {
|
|
36
36
|
"darwin-arm64": {
|
|
37
|
-
"name": "kernel_0.11.
|
|
38
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.11.
|
|
37
|
+
"name": "kernel_0.11.3_darwin_arm64.tar.gz",
|
|
38
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.11.3/kernel_0.11.3_darwin_arm64.tar.gz",
|
|
39
39
|
"bins": [
|
|
40
40
|
"kernel"
|
|
41
41
|
],
|
|
42
42
|
"format": "tar.gz",
|
|
43
43
|
"checksum": {
|
|
44
44
|
"algorithm": "sha256",
|
|
45
|
-
"digest": "
|
|
45
|
+
"digest": "f6be46a4b07c857ac37ae75255a59cd7769f94f11a7f00ef3642393cc5efcdfc"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"darwin-x64": {
|
|
49
|
-
"name": "kernel_0.11.
|
|
50
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.11.
|
|
49
|
+
"name": "kernel_0.11.3_darwin_amd64.tar.gz",
|
|
50
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.11.3/kernel_0.11.3_darwin_amd64.tar.gz",
|
|
51
51
|
"bins": [
|
|
52
52
|
"kernel"
|
|
53
53
|
],
|
|
54
54
|
"format": "tar.gz",
|
|
55
55
|
"checksum": {
|
|
56
56
|
"algorithm": "sha256",
|
|
57
|
-
"digest": "
|
|
57
|
+
"digest": "0987d5ba0d9cacb2f3c5667c2ea3db0ccb6a82c2c96767839f00a0f3bbf2b9c6"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"linux-arm64": {
|
|
61
|
-
"name": "kernel_0.11.
|
|
62
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.11.
|
|
61
|
+
"name": "kernel_0.11.3_linux_arm64.tar.gz",
|
|
62
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.11.3/kernel_0.11.3_linux_arm64.tar.gz",
|
|
63
63
|
"bins": [
|
|
64
64
|
"kernel"
|
|
65
65
|
],
|
|
66
66
|
"format": "tar.gz",
|
|
67
67
|
"checksum": {
|
|
68
68
|
"algorithm": "sha256",
|
|
69
|
-
"digest": "
|
|
69
|
+
"digest": "c4aad9282b660c2ca286b20ef49e20692b20c4ca1e97343c51a60d3f3b1d1d73"
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"linux-x64": {
|
|
73
|
-
"name": "kernel_0.11.
|
|
74
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.11.
|
|
73
|
+
"name": "kernel_0.11.3_linux_amd64.tar.gz",
|
|
74
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.11.3/kernel_0.11.3_linux_amd64.tar.gz",
|
|
75
75
|
"bins": [
|
|
76
76
|
"kernel"
|
|
77
77
|
],
|
|
78
78
|
"format": "tar.gz",
|
|
79
79
|
"checksum": {
|
|
80
80
|
"algorithm": "sha256",
|
|
81
|
-
"digest": "
|
|
81
|
+
"digest": "6716ad94c9f1a626c81f80da6c4f2fbc56fb9ec152d5fc1929f0d73109305c3b"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"win32-arm64": {
|
|
85
|
-
"name": "kernel_0.11.
|
|
86
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.11.
|
|
85
|
+
"name": "kernel_0.11.3_windows_arm64.tar.gz",
|
|
86
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.11.3/kernel_0.11.3_windows_arm64.tar.gz",
|
|
87
87
|
"bins": [
|
|
88
88
|
"kernel.exe"
|
|
89
89
|
],
|
|
90
90
|
"format": "tar.gz",
|
|
91
91
|
"checksum": {
|
|
92
92
|
"algorithm": "sha256",
|
|
93
|
-
"digest": "
|
|
93
|
+
"digest": "de0aeeb7ff293cace008eb4e3e374f13b4da86a463f5a2d747cd60d462eb2bd4"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"win32-x64": {
|
|
97
|
-
"name": "kernel_0.11.
|
|
98
|
-
"url": "https://github.com/onkernel/cli/releases/download/v0.11.
|
|
97
|
+
"name": "kernel_0.11.3_windows_amd64.tar.gz",
|
|
98
|
+
"url": "https://github.com/onkernel/cli/releases/download/v0.11.3/kernel_0.11.3_windows_amd64.tar.gz",
|
|
99
99
|
"bins": [
|
|
100
100
|
"kernel.exe"
|
|
101
101
|
],
|
|
102
102
|
"format": "tar.gz",
|
|
103
103
|
"checksum": {
|
|
104
104
|
"algorithm": "sha256",
|
|
105
|
-
"digest": "
|
|
105
|
+
"digest": "f290e946dc4d759226888aa22ca7d640bfd7ec5e6b492988d7426e31d49937c8"
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|