State

bl storage

Save, load, and manage named session storage snapshots

Save, load, and manage named session storage snapshots

Usage

bl storage
bl storage <command>

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl storage save github
# Snapshot the current session's storage as "github"

bl storage load github
# Restore the "github" snapshot into the current session

bl storage list
# List saved snapshots

bl storage save

Save the current session's storage as a named snapshot

Usage

bl storage save <name> [OPTIONS]

Arguments

ArgumentDescription
&lt;name&gt;Snapshot name to save (overwrites if it exists)

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl storage save github
# Save cookies + localStorage + sessionStorage

bl storage load

Restore a named snapshot into the current session

Usage

bl storage load <name> [OPTIONS]

Arguments

ArgumentDescription
&lt;name&gt;Snapshot name to load

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl storage load github
# Restore cookies and web storage

bl storage list

List saved storage snapshots

Usage

bl storage list [OPTIONS]

Options

OptionDescription
--jsonOutput as JSON

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl storage list
# Show saved snapshot names + counts

bl storage show

Show a snapshot's metadata and counts (never raw values)

Usage

bl storage show <name> [OPTIONS]

Arguments

ArgumentDescription
&lt;name&gt;Snapshot name to show

Options

OptionDescription
--jsonOutput as JSON

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl storage show github
# Print redacted metadata

bl storage delete

Delete a saved storage snapshot

Usage

bl storage delete <name> [OPTIONS]

Arguments

ArgumentDescription
&lt;name&gt;Snapshot name to delete

Options

OptionDescription
--jsonOutput as JSON

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl storage delete github
# Remove the saved snapshot

bl storage export

Export a snapshot's canonical JSON to a file

Usage

bl storage export <name> [OPTIONS]

Arguments

ArgumentDescription
&lt;name&gt;Snapshot name to export

Options

OptionDescription
-o, --output <value>Destination file path
--jsonOutput as JSON

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl storage export github -o github.json
# Write canonical JSON to a file

bl storage import

Import canonical JSON from a file into the registry

Usage

bl storage import <path> [OPTIONS]

Arguments

ArgumentDescription
&lt;path&gt;Path to a canonical storage JSON file

Options

OptionDescription
--name <value>Name to store the imported snapshot under
--jsonOutput as JSON

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl storage import github.json --name github
# Validate and store under a name

On this page