License Manager CLI Client
Project description
The License Manager CLI is a client to interact with the License Manager API.
The resources that can be interacted with are:
Configurations: information about the license, its features and the location of the license server.
Licenses: Information about license usage and availability.
Bookings: Information about licenses booked for future use.
The Bookings and Licenses information are read only. The Configurations can be edited by users with permission to do so.
Usage
Command |
Description |
---|---|
lm-cli login |
Generate a URL for logging in via browser |
lm-cli show-token |
Print your access token (created after logging in) |
lm-cli logout |
Logout and remove your access token |
lm-cli licenses list |
List all licenses |
lm-cli licenses list –search <search string> |
Search licenses with the specified string |
lm-cli licenses list –sort-field <sort field> |
Sort licenses by the specified field |
lm-cli licenses list –sort-field <sort field> –sort-order ascending |
Sort licenses by the specified order |
lm-cli bookings list |
List all bookings |
lm-cli bookings list –search <search string> |
Search bookings with the specified string |
lm-cli bookings list –sort-field <sort field> |
Sort bookings by the specified field |
lm-cli bookings list –sort-field <sort field> –sort-order ascending |
Sort bookings by the specified order |
lm-cli configurations list |
List all configurations |
lm-cli configurations get-one – id <configuration id> |
List the configuration with the specified id |
lm-cli configurations list –search <search string> |
Search configurations with the specified string |
lm-cli configurations list –sort-field <sort field> |
Sort configurations by the specified field |
lm-cli configurations list –sort-field <sort field> –sort-order ascending |
Sort configurations by the specified order |
lm-cli configurations create –name <config name> –product <product name> –features <features as a string serialized JSON object> –license-servers <license servers list> –license-server-type <license server type> –grace-time <grace time in seconds> –client-id <cluster identification where the license is configured> |
Create a new configuration |
lm-cli configurations delete –id <id to delete> |
Delete the configuration with the specified id |
Development Setup
To create a development setup, use Poetry to create the virtualenv with the dependencies:
$ cd lm-cli
$ poetry install
Also create a .env file with the needed values needed to run the project. These include the License Manager API endpoint and the OIDC provider information to retrieve the access token.
$ cat <<EOF > .env
LM_API_ENDPOINT="<API endpoint>"
OIDC_DOMAIN="<OIDC domain>"
OIDC_LOGIN_DOMAIN="<OIDC login domain>"
OIDC_AUDIENCE="<OIDC audience>"
OIDC_CLIENT_ID="<OIDC client id>"
OIDC_CLIENT_SECRET="<OIDC client secret>"
EOF
To run the tests, use the Makefile:
$ make test
To lint and format the code, use the Makefile:
$ make format
License
Copyright
Copyright (c) 2022 OmniVector Solutions <info@omnivector.solutions>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for license-manager-cli-2.2.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d37026692ca44a0dadba95b429953aef4c589708f9b5d73ae0580b813740ac48 |
|
MD5 | ce3ba306842d062c63462b5ad63d5524 |
|
BLAKE2b-256 | 945cc3eb73dccbb68e0ddb2eed1eab5ca7ec30b3466616b454306e98df7ff8a1 |
Hashes for license_manager_cli-2.2.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a8c980c1719f237e795226ce5bdbb6c38d7218a0618f342e68d62cd95f024c9 |
|
MD5 | 0234b8b0be1af0be77f8789d0c4ec074 |
|
BLAKE2b-256 | c64fa88ca33bdbf9184e5fb1c2c3f2e0a21247ba467423477dbaf1ec960fbaad |