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.

NOTE: This is not the same as Okta's own okta CLI interface. The latter is apparently used for setting up the source for development projects.

Requirements

REQUIRES Python 3.7+, for the change log see CHANGES.rst.

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                                # install :)
$ okta-cli config new \                               # create a new okta profile
           -n my-profile -\
           -u https://my.okta.url \
           -t API_TOKEN
$ okta-cli users list \                               # search users with a query
           -f 'profile.email eq "my@email.com"'
$ okta-cli features list                              # list okta server-side features
$ okta-cli features enable "Recent Activity"          # enable an Okta feature
$ okta cli users groups adduser \                     # add a user to a group
           -g app1_rollout \
           -u fred.flintstone@flintstones.com
$ okta-cli apps adduser \                             # assign an app to a user
           -a my_app_name -u 0109121 \
           -f profile.employeeId
$ okta-cli users update id012345678 \                 # update a field of a user record
           --set profile.email=my@other.email.com
$ okta-cli users bulk-update update-list.xlsx         # CSV is okay as well :)
$ okta-cli version                                    # print version and exit
$ okta-cli users get my-login -vvvvv                  # see http debug output

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 Distribution

okta-cli-18.0.2.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file okta-cli-18.0.2.tar.gz.

File metadata

  • Download URL: okta-cli-18.0.2.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for okta-cli-18.0.2.tar.gz
Algorithm Hash digest
SHA256 769f1f80949de64361cb3ebad8ffeec5d5d47e063b925ac2bb5b4543bd9ce41c
MD5 0507997b9e7c9df1a646d1785512e8c0
BLAKE2b-256 22cdced9c7a47cf9147c00803249e21eb641b86135a5ed57c7bce17943bac902

See more details on using hashes here.

File details

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

File metadata

  • Download URL: okta_cli-18.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for okta_cli-18.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f287022461e6fa2f4b1e652316118f617adc6dab50f380a685a9f9023c511459
MD5 a785efd6a0c0d014eb11042ee0f6c8ab
BLAKE2b-256 f38bec0ebfd27280d0785682a405e5f48684f58178abff6de16d6da76a83f5fe

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