The OLP CLI supports the following:
Retrieves all the available credentials. The OLP CLI resolves the credentials list in the same order as it resolves the credentials being passed. For more more information, see Passing credentials to CLI.
olp credentials list [command options]
--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.
--profile <profile name>The name of the credentials profile to use from the
--jsonDisplays the command result in JSON format.
--quietDisplays app IDs, each on a new line.
For more information on using credentials and profiles, see Credentials setup.
olp credentials list
App ID Profile Scope Source ylH5uh69n7DedRvGMUmp demo-profile hrn:here:authorization::olp-here:project/project-e2e-lv /.here/olpcli.ini f6AvwZgJBeHM51sosAKQ prod /.here/olpcli.ini F9p0HU3qCqtxnZ3KnH4a staging /.here/olpcli.ini
Imports the credentials from the specified
credentials.properties file to the
olp credentials import <profile name> <path to credentials.properties file> [command parameters]
If the default profile is not present in
<profile name>The name of a new profile.
<path to credentials.properties file>The path to the
olpcli.ini is present, then
credentials.properties is not used unless specified with the
--credentials parameter. For more information, see Passing credentials to CLI.
The command below creates an
.here\olpcli.ini file in your home directory and associates the credentials from the
credentials.properties file with the
olp credentials import newProfile credentials.properties
[profile newProfile] here.user.id = HERE-01966c94-aaf1-4ae2-a1y6-6516b3f9b6c1 here.client.id = mzLcb1rL8nskvDQpCAAO here.access.key.id = BELUTk45QdaYGgZ9A_IMTA here.access.key.secret = 108lI7w9m8G_6sIw9kng-PXGoeHQQ-cv6xByNOuMcRYixZZp... here.token.endpoint.url = https://account.api.here.com/oauth2/token here.token.scope = hrn:here:authorization::olp-here:project/project-e2e-lv
To use this new profile, add
--profile newProfile to CLI commands or set the
OLP_PROFILE environment variable to
Deletes the specified profile from the
olp credentials delete <profile name> [command paramenters]
<profile name>The name of the profile to remove.
The command below removes the
newProfile profile from the
olp credentials delete newProfile