Hammer CLI
list available repos
hammer repository-set list --product "Red Hat Enterprise Linux Server" --organization "MyOrg"
Enable a repo
hammer repository-set enable --organization "MyOrg" --product "Red Hat Enterprise Linux Server" --name "Red Hat Enterprise Linux Server (RPMs)" --basearch "x86_64"
hammer repository-set enable --organization "MyOrg" --product "Red Hat Enterprise Linux Server" --name "Red Hat Enterprise Linux Server - RH Common (RPMs)" --basearch "x86_64"
See repos associtate to org
hammer repository list --organization-id 1
hammer repository info --id=1
hammer authentication in /etc/hammer/cli.modules.d/foreman.yml
:username: 'admin'
:password: ''