docs: move cli install-deps under install browsers (#14700)

This commit is contained in:
Max Schmitt 2022-06-08 15:13:33 +02:00 committed by GitHub
parent a5506a80ee
commit f7f44d4fd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```