An Okta command line interface for scripting and quickly performing routine tasks
Project description
Okta-CLI
This is a python-based CLI tool for Okta. It is not made or maintained by or in any way affiliated with anyone working at Okta. It is mainly driven by the personal needs of its author, although the feature set is becoming quite complete now.
It basically is a CLI wrapper around the Okta REST API.
Requirements
REQUIRES Python 3.6+
Quickstart
Every more complex function should have help texts available: okta-cli users add -h
, or maybe okta-cli users update -h
or maybe okta-cli apps add -h
... those are probably the most interesting ones.
$ pip install okta-cli
$ okta-cli config new -n my-profile -u https://my.okta.url -t API_TOKEN
$ okta-cli users list -f 'profile.email eq "my@email.com"'
$ okta-cli features list
$ okta cli users groups adduser -g app1_rollout -u fred.flintstone@flintstones.com
$ okta-cli apps adduser -a my_app_name -u 0109121 -f profile.employeeId
$ okta-cli users update id012345678 --set profile.email=my@other.email.com
$ okta-cli users bulk-update update-list.xlsx # CSV is okay as well :)
$ okta-cli version
Configuration
Running config new
(see above) will store a JSON configuration file in the directory determined by the appdirs
module.
References
This project uses a few nice other projects:
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 Distributions
Built Distribution
Hashes for okta_cli-17.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a71a4bb6f20795caec5ffeb6bcf08a4d23c04da525dd734db7263b044b351294 |
|
MD5 | b03a2edcbded2b63669cb9728bf84c9b |
|
BLAKE2b-256 | 91c621b565af194cf77f94e638226ef1b022c7dcfe7d325bc2c77ccb5869b152 |