license Commands

Commands to provision and manage Permission Set Licenses in a scratch org.

license provision 

Provision Permission Set Licenses (PSL) into a target org.

Description for license provision 

Provision Permission Set Licenses (PSL) into the target org. Successful execution sets the quantity of seats for the given PSL in the indicated org.

There are two ways to run this command. You can provide the information to identify a single PSL via command line flags, or provision multiple PSLs in a single call by supplying a JSON formatted file.

See sf license provision for the format and options contained within the JSON file.

Examples for license provision 

Provision a single Permission Set License into an org:

1sf license provision --target-org myScratchOrg --namespace demo --license newLicense --quantity 5

Use a JSON formatted input file to provision one or more Permission Set Licenses into an org:

1sf license provision --target-org myScratchOrg --definition-file test/config/provisionPSLs.json

Flags 

--json

Optional

Format output as json.

Type: boolean

--flags-dir FLAGS-DIR

Optional

Import flag values from a directory.

Type: option

-o | --target-org TARGET-ORG

Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.

Type: option

--api-version API-VERSION

Optional

Override the api version used for api requests made by this command

Type: option

-n | --namespace NAMESPACE

Optional

License package namespace.

Type: option

-l | --license LICENSE

Optional

Permission Set License name.

Type: option

-q | --quantity QUANTITY

Optional

Number of licenses to provision.

Type: option

-f | --definition-file DEFINITION-FILE

Optional

Path to a JSON file that contains the PSL provisioning request information.

Type: option