RPG Dice Roller CLI
Command Line Interface which allows rolling dice.
It is built upon this RPG dice roller.
Get started
Install
Install the script globally:
npm install -g @dice-roller/cli
Usage
roller <notation..> [options]
Commands:
roller roll <notation..> roll the dice [default]
roller play play an interactive CLI dice game
Positionals:
notation space separated list of notation to roll [string]
Options:
-V, --version Show version number [boolean]
--help Show help [boolean]
-s, --separator String to separate dice rolls [string] [default: "; "]
-e, --engine The RNG engine to use [string]
--seed The RNG engine seed [number]
-f, --format The output format [string] [default: "string"]
--result-only Only return the roll result, without the notation or dice
rolled [boolean] [default: false]
Examples:
roller 4d6 roll a 6 sided die 4 times
roller 2d10+7 roll a 10 sided die 2 times and add 7
roller play start the interactive CLI dice game
For more information visit https://dice-roller.github.io/documentation
roller play
play an interactive CLI dice game
Options:
-V, --version Show version number [boolean]
--help Show help [boolean]
--players The name of a player [array]
--count The number of players [number]
For more information visit https://dice-roller.github.io/documentation
Examples:
roller 4d6
roller 2d10 7d% 5dF
roller "4d6 # roll description"
roller 4d6 -e=MersenneTwister19937 --seed=415
roller 2d20 --result-only
roller 6d8*4 -f=BASE_64
roller play
roller play --count=4
roller play --players=Barbara Ian
roller play --count=2 --players=Susan
Read about the notation in the documentation