@@ -153,141 +153,141 @@ Create an API key from the [Kernel dashboard](https://dashboard.onkernel.com).
153153 - ` -s, --stealth ` - Launch browser in stealth mode to avoid detection
154154 - ` -H, --headless ` - Launch browser without GUI access
155155 - ` --kiosk ` - Launch browser in kiosk mode
156- - ` kernel browsers delete <id or persistent id > ` - Delete a browser
156+ - ` kernel browsers delete <id> ` - Delete a browser
157157 - ` -y, --yes ` - Skip confirmation prompt
158- - ` kernel browsers view <id or persistent id > ` - Get live view URL for a browser
158+ - ` kernel browsers view <id> ` - Get live view URL for a browser
159159
160160### Browser Logs
161161
162- - ` kernel browsers logs stream <id or persistent id > ` - Stream browser logs
162+ - ` kernel browsers logs stream <id> ` - Stream browser logs
163163 - ` --source <source> ` - Log source: "path" or "supervisor" (required)
164164 - ` --follow ` - Follow the log stream (default: true)
165165 - ` --path <path> ` - File path when source=path
166166 - ` --supervisor-process <name> ` - Supervisor process name when source=supervisor. Most useful value is "chromium"
167167
168168### Browser Replays
169169
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
170+ - ` kernel browsers replays list <id> ` - List replays for a browser
171+ - ` kernel browsers replays start <id> ` - Start a replay recording
172172 - ` --framerate <fps> ` - Recording framerate (fps)
173173 - ` --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
174+ - ` kernel browsers replays stop <id> <replay-id> ` - Stop a replay recording
175+ - ` kernel browsers replays download <id> <replay-id> ` - Download a replay video
176176 - ` -o, --output <path> ` - Output file path for the replay video
177177
178178### Browser Process Control
179179
180- - ` kernel browsers process exec <id or persistent id > [--] [command...] ` - Execute a command synchronously
180+ - ` kernel browsers process exec <id> [--] [command...] ` - Execute a command synchronously
181181 - ` --command <cmd> ` - Command to execute (optional; if omitted, trailing args are executed via /bin/bash -c)
182182 - ` --args <args> ` - Command arguments
183183 - ` --cwd <path> ` - Working directory
184184 - ` --timeout <seconds> ` - Timeout in seconds
185185 - ` --as-user <user> ` - Run as user
186186 - ` --as-root ` - Run as root
187- - ` kernel browsers process spawn <id or persistent id > [--] [command...] ` - Execute a command asynchronously
187+ - ` kernel browsers process spawn <id> [--] [command...] ` - Execute a command asynchronously
188188 - ` --command <cmd> ` - Command to execute (optional; if omitted, trailing args are executed via /bin/bash -c)
189189 - ` --args <args> ` - Command arguments
190190 - ` --cwd <path> ` - Working directory
191191 - ` --timeout <seconds> ` - Timeout in seconds
192192 - ` --as-user <user> ` - Run as user
193193 - ` --as-root ` - Run as root
194- - ` kernel browsers process kill <id or persistent id > <process-id> ` - Send a signal to a process
194+ - ` kernel browsers process kill <id> <process-id> ` - Send a signal to a process
195195 - ` --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)
196+ - ` kernel browsers process status <id> <process-id> ` - Get process status
197+ - ` kernel browsers process stdin <id> <process-id> ` - Write to process stdin (base64)
198198 - ` --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
199+ - ` kernel browsers process stdout-stream <id> <process-id> ` - Stream process stdout/stderr
200200
201201### Browser Filesystem
202202
203- - ` kernel browsers fs new-directory <id or persistent id > ` - Create a new directory
203+ - ` kernel browsers fs new-directory <id> ` - Create a new directory
204204 - ` --path <path> ` - Absolute directory path to create (required)
205205 - ` --mode <mode> ` - Directory mode (octal string)
206- - ` kernel browsers fs delete-directory <id or persistent id > ` - Delete a directory
206+ - ` kernel browsers fs delete-directory <id> ` - Delete a directory
207207 - ` --path <path> ` - Absolute directory path to delete (required)
208- - ` kernel browsers fs delete-file <id or persistent id > ` - Delete a file
208+ - ` kernel browsers fs delete-file <id> ` - Delete a file
209209 - ` --path <path> ` - Absolute file path to delete (required)
210- - ` kernel browsers fs download-dir-zip <id or persistent id > ` - Download a directory as zip
210+ - ` kernel browsers fs download-dir-zip <id> ` - Download a directory as zip
211211 - ` --path <path> ` - Absolute directory path to download (required)
212212 - ` -o, --output <path> ` - Output zip file path
213- - ` kernel browsers fs file-info <id or persistent id > ` - Get file or directory info
213+ - ` kernel browsers fs file-info <id> ` - Get file or directory info
214214 - ` --path <path> ` - Absolute file or directory path (required)
215- - ` kernel browsers fs list-files <id or persistent id > ` - List files in a directory
215+ - ` kernel browsers fs list-files <id> ` - List files in a directory
216216 - ` --path <path> ` - Absolute directory path (required)
217- - ` kernel browsers fs move <id or persistent id > ` - Move or rename a file or directory
217+ - ` kernel browsers fs move <id> ` - Move or rename a file or directory
218218 - ` --src <path> ` - Absolute source path (required)
219219 - ` --dest <path> ` - Absolute destination path (required)
220- - ` kernel browsers fs read-file <id or persistent id > ` - Read a file
220+ - ` kernel browsers fs read-file <id> ` - Read a file
221221 - ` --path <path> ` - Absolute file path (required)
222222 - ` -o, --output <path> ` - Output file path (optional)
223- - ` kernel browsers fs set-permissions <id or persistent id > ` - Set file permissions or ownership
223+ - ` kernel browsers fs set-permissions <id> ` - Set file permissions or ownership
224224 - ` --path <path> ` - Absolute path (required)
225225 - ` --mode <mode> ` - File mode bits (octal string) (required)
226226 - ` --owner <user> ` - New owner username or UID
227227 - ` --group <group> ` - New group name or GID
228- - ` kernel browsers fs upload <id or persistent id > ` - Upload one or more files
228+ - ` kernel browsers fs upload <id> ` - Upload one or more files
229229 - ` --file <local:remote> ` - Mapping local: remote (repeatable)
230230 - ` --dest-dir <path> ` - Destination directory for uploads
231231 - ` --paths <paths> ` - Local file paths to upload
232- - ` kernel browsers fs upload-zip <id or persistent id > ` - Upload a zip and extract it
232+ - ` kernel browsers fs upload-zip <id> ` - Upload a zip and extract it
233233 - ` --zip <path> ` - Local zip file path (required)
234234 - ` --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
235+ - ` kernel browsers fs write-file <id> ` - Write a file from local data
236236 - ` --path <path> ` - Destination absolute file path (required)
237237 - ` --mode <mode> ` - File mode (octal string)
238238 - ` --source <path> ` - Local source file path (required)
239239
240240### Browser Extensions
241241
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.
242+ - ` kernel browsers extensions upload <id> <extension-path>... ` - Ad-hoc upload of one or more unpacked extensions to a running browser instance.
243243
244244### Browser Computer Controls
245245
246- - ` kernel browsers computer click-mouse <id or persistent id > ` - Click mouse at coordinates
246+ - ` kernel browsers computer click-mouse <id> ` - Click mouse at coordinates
247247 - ` --x <coordinate> ` - X coordinate (required)
248248 - ` --y <coordinate> ` - Y coordinate (required)
249249 - ` --num-clicks <n> ` - Number of clicks (default: 1)
250250 - ` --button <button> ` - Mouse button: left, right, middle, back, forward (default: left)
251251 - ` --click-type <type> ` - Click type: down, up, click (default: click)
252252 - ` --hold-key <key> ` - Modifier keys to hold (repeatable)
253- - ` kernel browsers computer move-mouse <id or persistent id > ` - Move mouse to coordinates
253+ - ` kernel browsers computer move-mouse <id> ` - Move mouse to coordinates
254254 - ` --x <coordinate> ` - X coordinate (required)
255255 - ` --y <coordinate> ` - Y coordinate (required)
256256 - ` --hold-key <key> ` - Modifier keys to hold (repeatable)
257- - ` kernel browsers computer screenshot <id or persistent id > ` - Capture a screenshot
257+ - ` kernel browsers computer screenshot <id> ` - Capture a screenshot
258258 - ` --to <path> ` - Output file path for the PNG image (required)
259259 - ` --x <coordinate> ` - Top-left X for region capture (optional)
260260 - ` --y <coordinate> ` - Top-left Y for region capture (optional)
261261 - ` --width <pixels> ` - Region width (optional)
262262 - ` --height <pixels> ` - Region height (optional)
263- - ` kernel browsers computer type <id or persistent id > ` - Type text on the browser instance
263+ - ` kernel browsers computer type <id> ` - Type text on the browser instance
264264
265265 - ` --text <text> ` - Text to type (required)
266266 - ` --delay <ms> ` - Delay in milliseconds between keystrokes (optional)
267267
268- - ` kernel browsers computer press-key <id or persistent id > ` - Press one or more keys
268+ - ` kernel browsers computer press-key <id> ` - Press one or more keys
269269
270270 - ` --key <key> ` - Key symbols to press (repeatable)
271271 - ` --duration <ms> ` - Duration to hold keys down in ms (0=tap)
272272 - ` --hold-key <key> ` - Modifier keys to hold (repeatable)
273273
274- - ` kernel browsers computer scroll <id or persistent id > ` - Scroll the mouse wheel
274+ - ` kernel browsers computer scroll <id> ` - Scroll the mouse wheel
275275
276276 - ` --x <coordinate> ` - X coordinate (required)
277277 - ` --y <coordinate> ` - Y coordinate (required)
278278 - ` --delta-x <pixels> ` - Horizontal scroll amount (+right, -left)
279279 - ` --delta-y <pixels> ` - Vertical scroll amount (+down, -up)
280280 - ` --hold-key <key> ` - Modifier keys to hold (repeatable)
281281
282- - ` kernel browsers computer drag-mouse <id or persistent id > ` - Drag the mouse along a path
282+ - ` kernel browsers computer drag-mouse <id> ` - Drag the mouse along a path
283283 - ` --point <x,y> ` - Add a point as x,y (repeatable)
284284 - ` --delay <ms> ` - Delay before dragging starts in ms
285285 - ` --button <button> ` - Mouse button: left, middle, right (default: left)
286286 - ` --hold-key <key> ` - Modifier keys to hold (repeatable)
287287
288288### Browser Playwright
289289
290- - ` kernel browsers playwright execute <id or persistent id > [code] ` - Execute Playwright/TypeScript code against the browser
290+ - ` kernel browsers playwright execute <id> [code] ` - Execute Playwright/TypeScript code against the browser
291291 - ` --timeout <seconds> ` - Maximum execution time in seconds (defaults server-side)
292292 - If ` [code] ` is omitted, code is read from stdin
293293
@@ -375,20 +375,23 @@ kernel browsers list
375375# Create a new browser session
376376kernel browsers create
377377
378- # Create a persistent browser session
379- kernel browsers create --persistence-id my-browser-session
378+ # Create a browser with a longer timeout (up to 72 hours)
379+ kernel browsers create --timeout 3600
380380
381381# Create a headless browser in stealth mode
382382kernel browsers create --headless --stealth
383383
384384# Create a browser in kiosk mode
385385kernel browsers create --kiosk
386386
387- # Delete a persistent browser
388- kernel browsers delete --by-persistent-id my-browser-session --yes
387+ # Create a browser with a profile for session state
388+ kernel browsers create --profile-name my-profile
389+
390+ # Delete a browser
391+ kernel browsers delete browser123 --yes
389392
390393# Get live view URL
391- kernel browsers view --by-id browser123
394+ kernel browsers view browser123
392395
393396# Stream browser logs
394397kernel browsers logs stream my-browser --source supervisor --follow --supervisor-process chromium
0 commit comments