Skip to content

Add 'env' command to pull API key#40

Open
developersdigest wants to merge 1 commit intomainfrom
pull-env
Open

Add 'env' command to pull API key#40
developersdigest wants to merge 1 commit intomainfrom
pull-env

Conversation

@developersdigest
Copy link
Member

No description provided.

Introduce a new CLI command to pull the authenticated FIRECRAWL_API_KEY into a local .env file. Adds src/commands/env.ts which implements handleEnvPullCommand(options) — it gets the API key (via getApiKey or ensureAuthenticated), and creates/updates/appends the FIRECRAWL_API_KEY line in the target env file, with an --overwrite flag to replace an existing key. Also registers the command in src/index.ts with options (-f/--file and --overwrite). This provides a convenient way for developers to sync their API key into project .env files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments