Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,30 @@ karate doctor
| `karate setup --all` | Non-interactive setup (JAR + JRE) |
| `karate setup --item jar` | Install JAR only (use system JRE) |
| `karate setup --item jre` | Install JRE only |
| `karate update` | Check for and install updates |
| `karate update --all` | Update all components non-interactively |
| `karate update` | Check for and install updates to LATEST version |
| `karate update --all` | Update all components non-interactively to LATEST version |
| `karate doctor` | System diagnostics |
| `karate doctor --json` | JSON output (for CI/scripts) |
| `karate version` | Show version info |

The setup command will install the pinned version from the configuration file or LATEST if not specified.
The setup command has an additional option `--force` to force a re-download of JAR and / or JRE.

To update the CLI itself, re-run the install command.

All other commands pass through to Karate:

```bash
karate test.feature # Run tests
karate ./tests # Run all tests in directory
karate -t @smoke test.feature # Run with tags
karate mock server.js # Start mock server
```

## Configuration

Global config: `~/.karate/karate-cli.json`
Project config: `.karate/karate.json`
Project config: `.karate/karate-cli.json`

```json
{
Expand Down