spiral / roadrunner-cli
RoadRunner command-line tool: downloads the RoadRunner binary and generates its configuration
Package info
pkg:composer/spiral/roadrunner-cli
Fund package maintenance!
Requires
- php: >=8.1
- ext-json: *
- composer/semver: ^3.4
- spiral/roadrunner-worker: ^2 || ^3
- spiral/tokenizer: ^2.13 || ^3.15
- symfony/console: ^5.3 || ^6.0 || ^7.0 || ^8.0
- symfony/http-client: ^4.4.51 || ^5.4.49 || ^6.4.17 || ^7.2 || ^8.0
- symfony/yaml: ^5.4.49 || ^6.4.17 || ^7.2 || ^8.0
Requires (Dev)
- jetbrains/phpstorm-attributes: ^1.2
- spiral/code-style: ^2.2.2
- spiral/dumper: ^3.3
- vimeo/psalm: ^6.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- 3.x-dev
- 2.x-dev
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.14
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- dev-dload
- dev-release-please--branches--2.x--components--spiral/roadrunner-cli
- dev-release-please--branches--3.x--components--roadrunner/cli
- dev-release-please--branches--2.x--components--roadrunner/cli
- dev-test/acceptance
- dev-feat/github-api-url
- dev-rr-v3
- dev-static-analysis
- dev-ci/mutation-testing
- dev-coverage
- dev-testo
- dev-chore/codeowners
- dev-ci/security-audit
- dev-docs/readme
- dev-ci/code-style
- dev-ci/release-please
- dev-full-rr-config
This package is auto-updated.
Last update: 2026-10-10 14:55:12 UTC
README
Command line tool to install RoadRunner binaries and generate configs
This package provides the rr console command for PHP projects that run on RoadRunner: it downloads the RoadRunner server binary and protoc-gen-php-grpc plugin built for your environment and generates a starter .rr.yaml configuration.
Note
Version 3.x of roadrunner/cli targets RoadRunner v3: rr get downloads RoadRunner 3 by default. For RoadRunner 2025.x, use spiral/roadrunner-cli 2.x.
Get Started
Installation
composer require roadrunner/cli
Getting the RoadRunner binary
Download the latest RoadRunner binary for your operating system and architecture into the project root, along with an example .rr.yaml:
vendor/bin/rr get-binary
Then start the server:
./rr serve
See the RoadRunner documentation for the configuration reference.
Commands
get-binary(orget) - allows to install the latest version of the RoadRunner compatible with your environment (operating system, processor architecture, runtime, etc...). Also, this command creates an example.rr.yamlconfiguration file. If the command is used without thepluginandpresetoptions, a configuration with the default plugins (rpc,server,http,jobs,kv,metrics) is created. Using thepluginoption (shortcutp) can create an example configuration file with only plugins needed. For example, with http plugin only:get-binary -p http, http and jobs:get-binary -p http -p jobs. Available plugins:amqp,beanstalk,boltdb,broadcast,endure,fileserver,grpc,http,jobs,kv,logs,metrics,nats,otel,redis,reload,rpc,server,service,sqs,status,tcp,temporal,websockets. Using thepresetoption can create an example configuration file with popular plugins for different typical tasks. For example, with web preset:get-binary --preset web. Available presets:web(contains pluginshttp,jobs). Use--no-configto skip the configuration file.make-config- creates the.rr.yamlconfiguration file without downloading the binary. Accepts the samepluginandpresetoptions.download-protoc-binary- allows to install the latest version of theprotoc-gen-php-grpcfile compatible with your environment (operating system, processor architecture, runtime, etc...).versions- displays a list of available RoadRunner binary versions.
Common options
The binary commands accept --filter (-f, version constraint), --stability (-s), --os (-o), --arch (-a) and --location (-l, target directory) options. Releases are fetched from the GitHub API; set the GITHUB_TOKEN environment variable to avoid its rate limits, and RR_GITHUB_API_URL to use another API endpoint (GitHub Enterprise, a mirror; defaults to https://api.github.com).