Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement the Puppeteer CLI #11344

Merged
merged 3 commits into from Nov 23, 2023
Merged

feat: implement the Puppeteer CLI #11344

merged 3 commits into from Nov 23, 2023

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Nov 9, 2023

This PR implements the CLI for Puppeteer. It is a variation of the @puppeteer/browsers but unlike @puppeteer/browsers it is stateful because it will resolve the Puppeteer's pinned browser versions and prefer them over the latest versions. So the version that is downloaded and the cache folder is determined by Puppeteer's configuration and might be different from a project to a project. It's recommended that you use the Puppeteer CLI in the context of your Puppeteer project and don't install it globally.

Usage

Install Puppeteer into your project if you don't have it installed yet:

npm install puppeteer

Launch the CLI:

npx puppeteer browsers --help # get help message
npx puppeteer browsers install chrome # installs the pinned version of Chrome
npx puppeteer browsers install firefox # installs the pinned version of Firefox (currently, it's the nightly though)

@OrKoN OrKoN marked this pull request as ready for review November 22, 2023 12:20
@OrKoN
Copy link
Collaborator Author

OrKoN commented Nov 22, 2023

TODO:

  • an installation test

Copy link
Contributor

@thiagowfx thiagowfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK. Didn't test it

@OrKoN OrKoN enabled auto-merge (squash) November 23, 2023 08:37
@OrKoN OrKoN merged commit 53fb69b into main Nov 23, 2023
54 checks passed
@OrKoN OrKoN deleted the orkon/cli branch November 23, 2023 08:51
@release-please release-please bot mentioned this pull request Nov 23, 2023
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.

None yet

3 participants