The Marketplace CLI authenticates using a VMware Cloud Services API Token.
-
Go to the API Tokens page on My Account
-
Click "Generate Token"
-
Set the token's name
-
Set the token's expiration
-
Add the "VMware Marketplace" service role
If your org has access to the Staging Marketplace, add the "Cloud Stage Marketplace" service role
-
No organization role is required
-
Click Generate
-
Record the token somewhere (preferably a secure secret store)
You have two options for passing the API Token to the Marketplace CLI:
$ mkpcli products list --csp-api-token <CSP API Token>
$ export CSP_API_TOKEN=<CSP API Token>
$ mkpcli products list