Have you ever needed so badly to use a star rating from your command line? No? Me neither.
But in case you will need it at some point stidda is the utility for you:
yarn global add stidda
or, if you are an idiot
npm install -g stidda
-> % stidda 1
★☆☆☆☆
-> % stidda 4
★★★★☆