okta / okta-cli

Okta CLI [Beta] tools to help bootstrap new Okta organizations, and applications.
Apache License 2.0
90 stars 26 forks source link

Linux CLI install with curl script not completing #558

Open kharmony opened 2 months ago

kharmony commented 2 months ago

Just FYI. I tried running the command per the installation instructions:

curl https://raw.githubusercontent.com/okta/okta-cli/master/cli/src/main/scripts/install.sh | bash

I confirmed everything was downloaded and put in the proper directory, but when I ran okta register it would always say okta command not found.

Ultimately I downloaded the install.sh script and modified it as such to get it to work.

image

Changed:

LOCATION=$(command -v okta)

To:

LOCATION=""

It then completed the installation without issue. Running Ubuntu 22.04 LTS.

carlafernandezbain commented 4 weeks ago

Same problem, worked flawlessly with your solution.