Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

okta_cli-17.0.0-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file okta_cli-17.0.0-py3-none-any.whl.

File metadata

  • Download URL: okta_cli-17.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for okta_cli-17.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92efedaa53ea4060efb73b5113a1aa14dd10f78d38759a7a82367115887e17d8
MD5 694fac45d3edea3e8ac956b7917cc407
BLAKE2b-256 e8a13c0cc84d121188e7b9b85c4177d08307904f0c957610d8cc1c6c8f0ca40a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page