How to install the Ruby Gem hiera-mock with the CLI

By Where is my Ruby Gem

Ruby
Gem
hiera-mock

Run the command below to install the gem in the local repository.

gem install hiera-mock