Metadata-Version: 2.1
Name: empower-cli
Version: 1.8.1
Summary: Empower cli client for API interaction
Home-page: https://github.com/hitachisolutionsamerica/empower/tree/development/tools/empower_cli
License: MIT
Author: Empower Team
Author-email: empower@hitachisolutions.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: PyJWT (>=2.6.0,<3.0.0)
Requires-Dist: PyYAML (>=6.0,<7.0)
Requires-Dist: pickleDB (>=0.9.2,<0.10.0)
Requires-Dist: pydantic (>=1.9.1,<2.0.0)
Requires-Dist: python-dotenv (>=0.20.0,<0.21.0)
Requires-Dist: python-keycloak (>=2.0.0,<3.0.0)
Requires-Dist: requests (>=2.28.1,<3.0.0)
Requires-Dist: typer (>=0.5.0,<0.6.0)
Project-URL: Repository, https://github.com/hitachisolutionsamerica/empower/tree/development/tools/empower_cli
Description-Content-Type: text/markdown

# Empower cli client

A Command Line Interface ("CLI") is designed to provide rapid access to key Empower functions without the need to construct REST calls manually.
The Empower CLI can be used to manage all Empower functions,
and certain functions may only be available via the CLI.

[Documentation](https://docs.empoweranalytics.io/empower/docs)

## How to start

1. Setup discovery URL `empowercli context set --discovery-url https://discovery.empoweranalytics.io`.
Follow step 2 or step 3.
2. Login with your domain if browser flow is used `empowercli auth login <domain>`
3. Login with credentials flow. To do that export EMPOWER_CLI_CLIENT_ID and EMPOWER_CLI_CLIENT_SECRET into environment variables. Those variables represent keycloak client id and secret. After that type
`empowercli auth login-pipeline`
4. After the login, cli lists information for this domain from the discovery service. Now you can copy one of the available empower api URLs and setup it up for context.
`empowercli empowercli context set --api-url <api-url>`
5. Now cli is able to perform commands to api endpoints, for example `empowercli api sources list`
All other commands could be checked in [docs](https://docs.empoweranalytics.io/empower/docs/cli) or with empowercli --help

