[PR #1747] Add persona CLI command with browser cookie import #3006

Closed
opened 2026-03-01 18:01:23 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/ArchiveBox/ArchiveBox/pull/1747

State: closed
Merged: Yes


  • Add archivebox persona create/list/update/delete commands
  • Support --import=chrome|firefox|brave to copy browser profile
  • Extract cookies via CDP to generate cookies.txt for non-browser tools
  • Fix JSDoc comment parsing issue in chrome_utils.js

Summary by cubic

Adds a new persona CLI to manage browser profiles for archiving, with one-step import from Chrome/Firefox/Brave and automatic cookies.txt generation via CDP. Enables authenticated, headless archiving without manual cookie exports, and hardens persona management with strict path validation to prevent traversal.

  • New Features

    • New command: archivebox persona create/list/update/delete
    • --import=chrome|firefox|brave copies the default browser profile into the persona
    • Extracts cookies via CDP and writes Netscape cookies.txt per persona
    • JSONL I/O for list/update/delete with filters, limit, dry-run, and --yes
    • Detects browser profiles on macOS/Linux/Windows
  • Bug Fixes

    • Added input validation and path safety to block path traversal in create/rename/delete
    • Fixed JSDoc comment in chrome_utils.js to prevent parsing issues

Written for commit 3659adeb7e. Summary will update on new commits.

**Original Pull Request:** https://github.com/ArchiveBox/ArchiveBox/pull/1747 **State:** closed **Merged:** Yes --- - Add `archivebox persona create/list/update/delete` commands - Support `--import=chrome|firefox|brave` to copy browser profile - Extract cookies via CDP to generate cookies.txt for non-browser tools - Fix JSDoc comment parsing issue in chrome_utils.js <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a new persona CLI to manage browser profiles for archiving, with one-step import from Chrome/Firefox/Brave and automatic cookies.txt generation via CDP. Enables authenticated, headless archiving without manual cookie exports, and hardens persona management with strict path validation to prevent traversal. - **New Features** - New command: archivebox persona create/list/update/delete - --import=chrome|firefox|brave copies the default browser profile into the persona - Extracts cookies via CDP and writes Netscape cookies.txt per persona - JSONL I/O for list/update/delete with filters, limit, dry-run, and --yes - Detects browser profiles on macOS/Linux/Windows - **Bug Fixes** - Added input validation and path safety to block path traversal in create/rename/delete - Fixed JSDoc comment in chrome_utils.js to prevent parsing issues <sup>Written for commit 3659adeb7ea93ed5b57dcb8fe4bb3dbc517c36d8. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->
kerem 2026-03-01 18:01:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#3006
No description provided.