Since version 1.3 the Foreman is shipped with new command line interface
Hammer can be installed from the same rpm or deb repository as the Foreman server. As an alternative it can be installed from rubygems.org or from sources. For this post we will assume that you want to access your Foreman from Fedora 19. For the alternatives please check the hammer docs.
This is a companion discussion topic for the original entry at https://theforeman.org/2013/11/hammer-cli-for-foreman-part-i-setup.html