@@ -149,145 +149,144 @@ Create an API key from the [Kernel dashboard](https://dashboard.onkernel.com).
149149
150150- ` kernel browsers list ` - List running browsers
151151- ` kernel browsers create ` - Create a new browser session
152- - ` -p, --persistence-id <id> ` - Unique identifier for browser session persistence
153152 - ` -s, --stealth ` - Launch browser in stealth mode to avoid detection
154153 - ` -H, --headless ` - Launch browser without GUI access
155154 - ` --kiosk ` - Launch browser in kiosk mode
156- - ` kernel browsers delete <id or persistent id > ` - Delete a browser
155+ - ` kernel browsers delete <id> ` - Delete a browser
157156 - ` -y, --yes ` - Skip confirmation prompt
158- - ` kernel browsers view <id or persistent id > ` - Get live view URL for a browser
157+ - ` kernel browsers view <id> ` - Get live view URL for a browser
159158
160159### Browser Logs
161160
162- - ` kernel browsers logs stream <id or persistent id > ` - Stream browser logs
161+ - ` kernel browsers logs stream <id> ` - Stream browser logs
163162 - ` --source <source> ` - Log source: "path" or "supervisor" (required)
164163 - ` --follow ` - Follow the log stream (default: true)
165164 - ` --path <path> ` - File path when source=path
166165 - ` --supervisor-process <name> ` - Supervisor process name when source=supervisor. Most useful value is "chromium"
167166
168167### Browser Replays
169168
170- - ` kernel browsers replays list <id or persistent id > ` - List replays for a browser
171- - ` kernel browsers replays start <id or persistent id > ` - Start a replay recording
169+ - ` kernel browsers replays list <id> ` - List replays for a browser
170+ - ` kernel browsers replays start <id> ` - Start a replay recording
172171 - ` --framerate <fps> ` - Recording framerate (fps)
173172 - ` --max-duration <seconds> ` - Maximum duration in seconds
174- - ` kernel browsers replays stop <id or persistent id > <replay-id> ` - Stop a replay recording
175- - ` kernel browsers replays download <id or persistent id > <replay-id> ` - Download a replay video
173+ - ` kernel browsers replays stop <id> <replay-id> ` - Stop a replay recording
174+ - ` kernel browsers replays download <id> <replay-id> ` - Download a replay video
176175 - ` -o, --output <path> ` - Output file path for the replay video
177176
178177### Browser Process Control
179178
180- - ` kernel browsers process exec <id or persistent id > [--] [command...] ` - Execute a command synchronously
179+ - ` kernel browsers process exec <id> [--] [command...] ` - Execute a command synchronously
181180 - ` --command <cmd> ` - Command to execute (optional; if omitted, trailing args are executed via /bin/bash -c)
182181 - ` --args <args> ` - Command arguments
183182 - ` --cwd <path> ` - Working directory
184183 - ` --timeout <seconds> ` - Timeout in seconds
185184 - ` --as-user <user> ` - Run as user
186185 - ` --as-root ` - Run as root
187- - ` kernel browsers process spawn <id or persistent id > [--] [command...] ` - Execute a command asynchronously
186+ - ` kernel browsers process spawn <id> [--] [command...] ` - Execute a command asynchronously
188187 - ` --command <cmd> ` - Command to execute (optional; if omitted, trailing args are executed via /bin/bash -c)
189188 - ` --args <args> ` - Command arguments
190189 - ` --cwd <path> ` - Working directory
191190 - ` --timeout <seconds> ` - Timeout in seconds
192191 - ` --as-user <user> ` - Run as user
193192 - ` --as-root ` - Run as root
194- - ` kernel browsers process kill <id or persistent id > <process-id> ` - Send a signal to a process
193+ - ` kernel browsers process kill <id> <process-id> ` - Send a signal to a process
195194 - ` --signal <signal> ` - Signal to send: TERM, KILL, INT, HUP (default: TERM)
196- - ` kernel browsers process status <id or persistent id > <process-id> ` - Get process status
197- - ` kernel browsers process stdin <id or persistent id > <process-id> ` - Write to process stdin (base64)
195+ - ` kernel browsers process status <id> <process-id> ` - Get process status
196+ - ` kernel browsers process stdin <id> <process-id> ` - Write to process stdin (base64)
198197 - ` --data-b64 <data> ` - Base64-encoded data to write to stdin (required)
199- - ` kernel browsers process stdout-stream <id or persistent id > <process-id> ` - Stream process stdout/stderr
198+ - ` kernel browsers process stdout-stream <id> <process-id> ` - Stream process stdout/stderr
200199
201200### Browser Filesystem
202201
203- - ` kernel browsers fs new-directory <id or persistent id > ` - Create a new directory
202+ - ` kernel browsers fs new-directory <id> ` - Create a new directory
204203 - ` --path <path> ` - Absolute directory path to create (required)
205204 - ` --mode <mode> ` - Directory mode (octal string)
206- - ` kernel browsers fs delete-directory <id or persistent id > ` - Delete a directory
205+ - ` kernel browsers fs delete-directory <id> ` - Delete a directory
207206 - ` --path <path> ` - Absolute directory path to delete (required)
208- - ` kernel browsers fs delete-file <id or persistent id > ` - Delete a file
207+ - ` kernel browsers fs delete-file <id> ` - Delete a file
209208 - ` --path <path> ` - Absolute file path to delete (required)
210- - ` kernel browsers fs download-dir-zip <id or persistent id > ` - Download a directory as zip
209+ - ` kernel browsers fs download-dir-zip <id> ` - Download a directory as zip
211210 - ` --path <path> ` - Absolute directory path to download (required)
212211 - ` -o, --output <path> ` - Output zip file path
213- - ` kernel browsers fs file-info <id or persistent id > ` - Get file or directory info
212+ - ` kernel browsers fs file-info <id> ` - Get file or directory info
214213 - ` --path <path> ` - Absolute file or directory path (required)
215- - ` kernel browsers fs list-files <id or persistent id > ` - List files in a directory
214+ - ` kernel browsers fs list-files <id> ` - List files in a directory
216215 - ` --path <path> ` - Absolute directory path (required)
217- - ` kernel browsers fs move <id or persistent id > ` - Move or rename a file or directory
216+ - ` kernel browsers fs move <id> ` - Move or rename a file or directory
218217 - ` --src <path> ` - Absolute source path (required)
219218 - ` --dest <path> ` - Absolute destination path (required)
220- - ` kernel browsers fs read-file <id or persistent id > ` - Read a file
219+ - ` kernel browsers fs read-file <id> ` - Read a file
221220 - ` --path <path> ` - Absolute file path (required)
222221 - ` -o, --output <path> ` - Output file path (optional)
223- - ` kernel browsers fs set-permissions <id or persistent id > ` - Set file permissions or ownership
222+ - ` kernel browsers fs set-permissions <id> ` - Set file permissions or ownership
224223 - ` --path <path> ` - Absolute path (required)
225224 - ` --mode <mode> ` - File mode bits (octal string) (required)
226225 - ` --owner <user> ` - New owner username or UID
227226 - ` --group <group> ` - New group name or GID
228- - ` kernel browsers fs upload <id or persistent id > ` - Upload one or more files
227+ - ` kernel browsers fs upload <id> ` - Upload one or more files
229228 - ` --file <local:remote> ` - Mapping local: remote (repeatable)
230229 - ` --dest-dir <path> ` - Destination directory for uploads
231230 - ` --paths <paths> ` - Local file paths to upload
232- - ` kernel browsers fs upload-zip <id or persistent id > ` - Upload a zip and extract it
231+ - ` kernel browsers fs upload-zip <id> ` - Upload a zip and extract it
233232 - ` --zip <path> ` - Local zip file path (required)
234233 - ` --dest-dir <path> ` - Destination directory to extract to (required)
235- - ` kernel browsers fs write-file <id or persistent id > ` - Write a file from local data
234+ - ` kernel browsers fs write-file <id> ` - Write a file from local data
236235 - ` --path <path> ` - Destination absolute file path (required)
237236 - ` --mode <mode> ` - File mode (octal string)
238237 - ` --source <path> ` - Local source file path (required)
239238
240239### Browser Extensions
241240
242- - ` kernel browsers extensions upload <id or persistent id > <extension-path>... ` - Ad-hoc upload of one or more unpacked extensions to a running browser instance.
241+ - ` kernel browsers extensions upload <id> <extension-path>... ` - Ad-hoc upload of one or more unpacked extensions to a running browser instance.
243242
244243### Browser Computer Controls
245244
246- - ` kernel browsers computer click-mouse <id or persistent id > ` - Click mouse at coordinates
245+ - ` kernel browsers computer click-mouse <id> ` - Click mouse at coordinates
247246 - ` --x <coordinate> ` - X coordinate (required)
248247 - ` --y <coordinate> ` - Y coordinate (required)
249248 - ` --num-clicks <n> ` - Number of clicks (default: 1)
250249 - ` --button <button> ` - Mouse button: left, right, middle, back, forward (default: left)
251250 - ` --click-type <type> ` - Click type: down, up, click (default: click)
252251 - ` --hold-key <key> ` - Modifier keys to hold (repeatable)
253- - ` kernel browsers computer move-mouse <id or persistent id > ` - Move mouse to coordinates
252+ - ` kernel browsers computer move-mouse <id> ` - Move mouse to coordinates
254253 - ` --x <coordinate> ` - X coordinate (required)
255254 - ` --y <coordinate> ` - Y coordinate (required)
256255 - ` --hold-key <key> ` - Modifier keys to hold (repeatable)
257- - ` kernel browsers computer screenshot <id or persistent id > ` - Capture a screenshot
256+ - ` kernel browsers computer screenshot <id> ` - Capture a screenshot
258257 - ` --to <path> ` - Output file path for the PNG image (required)
259258 - ` --x <coordinate> ` - Top-left X for region capture (optional)
260259 - ` --y <coordinate> ` - Top-left Y for region capture (optional)
261260 - ` --width <pixels> ` - Region width (optional)
262261 - ` --height <pixels> ` - Region height (optional)
263- - ` kernel browsers computer type <id or persistent id > ` - Type text on the browser instance
262+ - ` kernel browsers computer type <id> ` - Type text on the browser instance
264263
265264 - ` --text <text> ` - Text to type (required)
266265 - ` --delay <ms> ` - Delay in milliseconds between keystrokes (optional)
267266
268- - ` kernel browsers computer press-key <id or persistent id > ` - Press one or more keys
267+ - ` kernel browsers computer press-key <id> ` - Press one or more keys
269268
270269 - ` --key <key> ` - Key symbols to press (repeatable)
271270 - ` --duration <ms> ` - Duration to hold keys down in ms (0=tap)
272271 - ` --hold-key <key> ` - Modifier keys to hold (repeatable)
273272
274- - ` kernel browsers computer scroll <id or persistent id > ` - Scroll the mouse wheel
273+ - ` kernel browsers computer scroll <id> ` - Scroll the mouse wheel
275274
276275 - ` --x <coordinate> ` - X coordinate (required)
277276 - ` --y <coordinate> ` - Y coordinate (required)
278277 - ` --delta-x <pixels> ` - Horizontal scroll amount (+right, -left)
279278 - ` --delta-y <pixels> ` - Vertical scroll amount (+down, -up)
280279 - ` --hold-key <key> ` - Modifier keys to hold (repeatable)
281280
282- - ` kernel browsers computer drag-mouse <id or persistent id > ` - Drag the mouse along a path
281+ - ` kernel browsers computer drag-mouse <id> ` - Drag the mouse along a path
283282 - ` --point <x,y> ` - Add a point as x,y (repeatable)
284283 - ` --delay <ms> ` - Delay before dragging starts in ms
285284 - ` --button <button> ` - Mouse button: left, middle, right (default: left)
286285 - ` --hold-key <key> ` - Modifier keys to hold (repeatable)
287286
288287### Browser Playwright
289288
290- - ` kernel browsers playwright execute <id or persistent id > [code] ` - Execute Playwright/TypeScript code against the browser
289+ - ` kernel browsers playwright execute <id> [code] ` - Execute Playwright/TypeScript code against the browser
291290 - ` --timeout <seconds> ` - Maximum execution time in seconds (defaults server-side)
292291 - If ` [code] ` is omitted, code is read from stdin
293292
@@ -375,20 +374,23 @@ kernel browsers list
375374# Create a new browser session
376375kernel browsers create
377376
378- # Create a persistent browser session
379- kernel browsers create --persistence-id my-browser-session
377+ # Create a browser with a longer timeout (up to 72 hours)
378+ kernel browsers create --timeout 3600
380379
381380# Create a headless browser in stealth mode
382381kernel browsers create --headless --stealth
383382
384383# Create a browser in kiosk mode
385384kernel browsers create --kiosk
386385
387- # Delete a persistent browser
388- kernel browsers delete --by-persistent-id my-browser-session --yes
386+ # Create a browser with a profile for session state
387+ kernel browsers create --profile-name my-profile
388+
389+ # Delete a browser
390+ kernel browsers delete browser123 --yes
389391
390392# Get live view URL
391- kernel browsers view --by-id browser123
393+ kernel browsers view browser123
392394
393395# Stream browser logs
394396kernel browsers logs stream my-browser --source supervisor --follow --supervisor-process chromium
0 commit comments