3.2. Activating a subscription with an activation key in the command line

An on-premise application can pre-configure subscriptions to use for a system, and that pre-configured set of subscriptions is identified by an activation key. That key can then be used to attach those subscriptions on a local system.
  1. Install the configuration RPM or manually configure Subscription Manager to point to the subscription application. For example:
    [root@server ~]# rpm -ivh http://sam.example.com/pub/candlepin-cert-consumer-latest.noarch.rpm
  2. Run the register command with the --activationkey parameter to attach the configured subscriptions:
    # subscription-manager register --username=jsmith --password=secret --org="IT Dept" --activationkey=abcd1234