Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.16 KB

File metadata and controls

51 lines (38 loc) · 1.16 KB

drx CLI example

Install from pub.dev:

dart pub global activate drx

Use drx to run tools from pub.dev (default source):

drx melos -- --version
drx mason_cli:mason -- --help

Use drx with explicit sources:

drx --from pub:very_good_cli very_good -- --help
drx --from gh:cli/cli@v2.70.0 gh -- version
drx --from gh:BurntSushi/ripgrep rg -- --version
drx --from gh:junegunn/fzf fzf -- --version
drx --from gh:charmbracelet/gum gum -- --version
drx --allow-unsigned --from gh:sharkdp/fd fd -- --version

# GitHub Dart source mode
drx --gh-mode source --from gh:leehack/mcp_dart@mcp_dart_cli-v0.1.6 --git-path packages/mcp_dart_cli mcp_dart_cli:mcp_dart -- --help
drx --gh-mode auto --from gh:leehack/mcp_dart@mcp_dart_cli-v0.1.6 --git-path packages/mcp_dart_cli mcp_dart -- --help

Use runtime controls for pub tools:

drx --runtime jit melos -- --version
drx --runtime auto melos -- --version

Inspect and manage cache:

drx cache list
drx cache prune --max-age-days 30 --max-size-mb 2048

List available versions:

drx versions melos --limit 5
drx versions gh:cli/cli --limit 10
drx --json versions gh:cli/cli --limit 3