How to install SAP license key

To install a SAP license key use the utility saplicense i.e.

saplicense -install

It will prompt you for SAP SYSTEM ID, hardware key etc. Enter all the information it's asking and hit enter. You should see this:

saplicense: License successfully installed

You can also check what licenses were installed by running

saplicense -show