Complete guide to Keystone CLI commands and options
keystone-runner <command> [options]
Image: CLI command structure would go here
start
Option | Alias | Description | Default |
---|---|---|---|
--port | -p | WebSocket server port | 9223 |
--headless | Run browser in headless mode | false | |
--debug | Enable verbose debug logging | false | |
--proxy | Enable proxy mode for cloud Studio | false | |
--api-key | API key for authentication | - | |
--backend-url | Backend URL | https://api.withkeystone.com | |
--base-url | Base URL for relative navigation | - | |
--chrome-path | Path to Chrome executable | Auto-detected | |
--chrome-args | Additional Chrome arguments | - |
check-chrome
version
version
command or --version
flag.
Image: Version command output would go here
help
Variable | CLI Option | Description |
---|---|---|
KEYSTONE_API_KEY | --api-key | API key for authentication |
KEYSTONE_API_URL | --backend-url | Backend API URL |
RUNNER_API_KEY | - | Runner-specific API key |
CHROME_PATH | --chrome-path | Chrome executable path |
PORT | --port | WebSocket server port |
BASE_URL | --base-url | Base URL for tests |
HEADLESS | --headless | Run in headless mode |
DEBUG | --debug | Enable debug logging |
keystone.config.js
in your project root to define default settings for server, browser, test execution, API connections, and recording options.
Image: Configuration file structure would go here
Configuration sections include:
--no-sandbox
- Disable sandbox (required in Docker)--disable-setuid-sandbox
- Disable setuid sandbox--disable-gpu
- Disable GPU hardware acceleration--disable-dev-shm-usage
- Overcome limited resource problems--disable-web-security
- Disable same-origin policy (testing only)--window-size=width,height
- Set initial window size--user-data-dir=/path
- Use specific Chrome profileCode | Description |
---|---|
0 | Success |
1 | General error |
2 | Chrome not found |
3 | Port already in use |
4 | Authentication failed |
5 | Configuration error |
keystone.config.js
instead of many CLI flags