feat: profiles by junhsss · Pull Request #39 · steel-dev/cli
This pull request introduces support for named browser profiles in Steel, enabling users to persist and reuse browser state (such as cookies and local storage) across sessions. It adds new commands for importing, syncing, listing, and deleting profiles, updates documentation across the project, and integrates profile-related flags into browser session commands. These changes make it easier to manage session state and automate workflows that require persistent authentication or configuration.
New browser profile management commands:
- Added four new CLI commands:
profile import,profile sync,profile list, andprofile delete, allowing users to import Chrome profiles (macOS only), sync changes, list all saved profiles, and delete profiles, respectively. (source/commands/profile/import.tsx,source/commands/profile/sync.tsx,source/commands/profile/list.tsx,source/commands/profile/delete.tsx) [1] [2] [3] - Added a new top-level description for the profile command group. (
source/commands/profile/index.tsx)
Integration with browser session commands:
- Added
--profile <name>and--update-profileflags tosteel browser start, allowing users to load a named profile into a session and optionally save session state back to the profile when the session ends. (source/commands/browser/start.tsx,skills/steel-browser/references/steel-browser-lifecycle.md) [1] [2] [3] [4] [5]
Documentation updates:
- Updated quickstart and reference documentation to include the new profile commands and flags, explain profile persistence, and document the config directory structure and relevant environment variables. (
README.md,docs/README.md,docs/references/steel-browser.md,docs/references/steel-cli.md,skills/steel-browser/references/steel-browser-lifecycle.md) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
Dependency additions:
- Added new dependencies for profile import and persistence:
better-sqlite3,@types/better-sqlite3, andfflateto handle Chrome profile packaging and metadata storage. (package.json)