Run any saved project from anywhere on your system — no cd required.
# 1. Install
go install github.com/ChengaDev/runx@latest
# 2. Save a project — interactive wizard
runx add
# Or if you're already inside the project directory
runx here
# 3. Run it from anywhere
runx run myapi
# 4. Pass extra flags to the underlying command
runx run myapi -- --port 9000
# 5. See all saved projects
runx list
# 6. Remove one
runx remove myapibrew install ChengaDev/tap/runxgo install github.com/ChengaDev/runx@latestGrab a pre-built binary from Releases.
Launch the interactive wizard — browse for the directory and confirm the auto-detected command:
runx addOr pass arguments directly (supports . and relative paths):
runx add myapi --path ~/projects/myapi
runx add myapi --path .
runx add myapi --path ~/projects/myapi --cmd "go run ."From inside a project, register it in one step — name defaults to the directory name:
cd ~/projects/myapi
runx hereAuto-detection rules:
| File found | Command inferred |
|---|---|
package.json |
npm run dev |
manage.py |
python manage.py runserver |
Cargo.toml |
cargo run |
go.mod |
go run . |
pyproject.toml |
python main.py |
main.py |
python main.py |
runx run myapiPass extra arguments after --:
runx run myapi -- --port 9000runx listrunx edit myapi --cmd "go run ./cmd/server"
runx edit myapi --path ~/new/pathrunx remove myapiProjects are saved in ~/.runx/projects.json.
Override the directory with the RUNX_CONFIG_DIR environment variable:
export RUNX_CONFIG_DIR=/custom/pathReleases are managed with GoReleaser. Binaries are built for:
- Linux (amd64, arm64)
- macOS (amd64, arm64)
- Windows (amd64, arm64)
MIT — see LICENSE.