Usage and Authorization
You authorize your terminal or application to use the pi-cli
framework by configuring the LicensingOptions.
Identifiers
The identifiers help identify and configure your terminal or application correctly.
- Go to our Consumer Portal
- Login to your account
- Go to Identifiers in your accounts menu
- Scroll down to Consumer section
- Copy
Consumer Tenant Id
- Scroll down to Licensing section
- Copy
Subject Id (Subscription Id)
- Copy
Authorized Application Id
- Configure the copied identifiers in your CLI terminal options
options.Licensing.AuthorizedApplicationId = "<Your copied authorized application id>";
options.Licensing.Subject = "<Your copied subject id>";
options.Licensing.ConsumerTenantId = "<Your copied consumer tenant id>";
License Keys
Download your primary or secondary license key as explained in the License Keys topic. The downloaded file is a JSON file with license audience claims and licenses keys.
Note: You need to specify either primary or secondary.
options.Licensing.KeySource = SaaSKeySources.JsonFile;
options.Licensing.LicenseKey = "<Your license key file path>"