Okta CLI on Apple M1 chip - CLI only available for intel?

OS: macOS
Chip: Apple M1 Max
Container: Docker
Container OS: Alpine

I’m not a fan of installing the Okta CLI directly on my machine through brew, so I thought I’d install it to a docker container. However, when I ran it using the cURL instructions, I get:

unsupported arch: aarch64

Looking at the https://raw.githubusercontent.com/okta/okta-cli/master/cli/src/main/scripts/install.sh script, it’s rejecting anything that is not an intel chip x86_64.

A lot of the developer examples now are pushing using Okta CLI to setup the quickstart GitHub… Is Okta CLI limited to intel chips? Will there be support for aarch64 or arm64?

I have an M1 and I’m able to install the Okta CLI just fine through Homebrew.

$ brew install --cask oktadeveloper/tap/okta
==> Tapping oktadeveloper/tap
Cloning into '/opt/homebrew/Library/Taps/oktadeveloper/homebrew-tap'...
remote: Enumerating objects: 49, done.
remote: Counting objects: 100% (49/49), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 49 (delta 13), reused 32 (delta 7), pack-reused 0
Receiving objects: 100% (49/49), 8.40 KiB | 1.05 MiB/s, done.
Resolving deltas: 100% (13/13), done.
Tapped 1 cask (14 files, 14.7KB).
==> Downloading https://github.com/okta/okta-cli/releases/download/okta-cli-tools-0.10.0/okta-cli-macos-0.10.0-x86_64.zi
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/199477028/393e338c-174
######################################################################## 100.0%
==> Installing Cask okta
==> Linking Binary 'okta' to '/opt/homebrew/bin/okta'
🍺  okta was successfully installed!
Execution time: 26 s.
1 Like

Thanks mraible. Good to see the brew install doesn’t have a problem with the M1. I mentioned earlier:

I’m not a fan of installing the Okta CLI directly on my machine through brew, so I thought I’d install it to a docker container.

I was following the cURL instructions GitHub - okta/okta-cli: Okta CLI [Beta] tools to help bootstrap new Okta organizations, and applications. installing on an Alpine linux Docker container.

If a direct install through brew is the only way to use it on an M1, then I’ll try to get the github samples working without. If I can’t get the samples working the way I used to a year ago by downloading and configuring off of GitHub, I may resort to the direct install.

1 Like