Katello 3.2 Documentation


What is the CLI?

The Hammer CLI provides users with a command-line interface for interacting with Katello. It’s our goal to make all functionality that’s accessible through Katello’s Web UI also available through Hammer so that users may use Hammer for their entire Katello workflow.


The first step to install the CLI is to setup the appropriate repositories: foreman, katello and epel.

Select your Operating System:

yum -y  --disablerepo="*" --enablerepo=rhel-6-server-rpms install yum-utils wget
yum-config-manager --disable "*"
yum-config-manager --enable rhel-6-server-rpms epel
yum-config-manager --enable rhel-6-server-optional-rpms
yum -y localinstall https://fedorapeople.org/groups/katello/releases/yum/3.2/katello/el6/x86_64/katello-repos-latest.rpm
yum -y localinstall https://yum.theforeman.org/releases/1.13/el6/x86_64/foreman-release.rpm
yum -y localinstall https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

After setting up the appropriate repositories, install Katello:

yum -y install rubygem-hammer_cli_katello

How do I use Hammer?

To get started with hammer, view the help:

hammer -u <user> -p <password> --help

How do I contribute to Hammer?

See the Katello Hammer CLI project if you want to get setup for contributing to the hammer code.

Foreman 2.3.2 has been released! Follow the quick start to install it.

Foreman 2.2.2 has been released! Follow the quick start to install it.