browserlane
CLI referenceBrowser state & emulation

bl storage

Export or restore browser state (cookies, localStorage, sessionStorage)

Export or restore browser state (cookies, localStorage, sessionStorage)

Usage

bl storage [flags]
bl storage [command]

Flags

FlagDescription
-o, --output stringOutput file path

Global flags

FlagDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
-v, --verboseEnable debug logging

Examples

bl storage
# Print state as JSON

bl storage -o state.json
# Save state to file

bl storage restore

Restore browser state from a JSON file

Usage

bl storage restore [path] [flags]

Global flags

FlagDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
-v, --verboseEnable debug logging

Examples

bl storage restore state.json
# Restore cookies and storage from saved state

On this page