From f7f44d4fd80926e2baf30d4a1905bb0ad70c6851 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 8 Jun 2022 15:13:33 +0200 Subject: [PATCH] docs: move cli install-deps under install browsers (#14700) --- docs/src/cli.md | 120 ++++++++++++++++++++++++------------------------ 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/docs/src/cli.md b/docs/src/cli.md index 6cf4891ac1..c34781b4b4 100644 --- a/docs/src/cli.md +++ b/docs/src/cli.md @@ -99,6 +99,66 @@ playwright install --help pwsh bin\Debug\netX\playwright.ps1 install --help ``` +## Install system dependencies + +System dependencies can get installed automatically. This is useful for CI environments. + +```bash js +# See command help +npx playwright install-deps +``` + +```bash java +# See command help +mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="install-deps" +``` + +```bash python +# See command help +playwright install-deps +``` + +```bash csharp +# See command help +pwsh bin\Debug\netX\playwright.ps1 install-deps +``` + +You can also install the dependencies for a single browser only by passing it as an argument: + +```bash js +npx playwright install-deps chromium +``` + +```bash java +mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="install-deps chromium" +``` + +```bash python +playwright install-deps chromium +``` + +```bash csharp +pwsh bin\Debug\netX\playwright.ps1 install-deps chromium +``` + +It's also possible to combine `install-deps` with `install` and install by that the browsers and OS dependencies with a single command. This would do both for Chromium, but you can also leave it out. + +```bash js +npx playwright install --with-deps chromium +``` + +```bash java +mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="install --with-deps chromium" +``` + +```bash python +playwright install --with-deps chromium +``` + +```bash csharp +pwsh bin\Debug\netX\playwright.ps1 install --with-deps chromium +``` + ## Generate code ```bash js @@ -532,63 +592,3 @@ playwright pdf https://en.wikipedia.org/wiki/PDF wiki.pdf # See command help pwsh bin\Debug\netX\playwright.ps1 pdf https://en.wikipedia.org/wiki/PDF wiki.pdf ``` - -## Install system dependencies - -System dependencies can get installed automatically. This is useful for CI environments. - -```bash js -# See command help -npx playwright install-deps -``` - -```bash java -# See command help -mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="install-deps" -``` - -```bash python -# See command help -playwright install-deps -``` - -```bash csharp -# See command help -pwsh bin\Debug\netX\playwright.ps1 install-deps -``` - -You can also install the dependencies for a single browser only by passing it as an argument: - -```bash js -npx playwright install-deps chromium -``` - -```bash java -mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="install-deps chromium" -``` - -```bash python -playwright install-deps chromium -``` - -```bash csharp -pwsh bin\Debug\netX\playwright.ps1 install-deps chromium -``` - -It's also possible to combine `install-deps` with `install` and install by that the browsers and OS dependencies with a single command. This would do both for Chromium, but you can also leave it out. - -```bash js -npx playwright install --with-deps chromium -``` - -```bash java -mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="install --with-deps chromium" -``` - -```bash python -playwright install --with-deps chromium -``` - -```bash csharp -pwsh bin\Debug\netX\playwright.ps1 install --with-deps chromium -```