CLI just hangs after install

I just installed the CLI using

bash <( curl -sL https://particle.io/install-cli )

and it won’t let me do anything. Just hangs, even trying to print the version doesn’t work.

Max OS 14.7.2 (23H311)

➜ ~ bash <( curl -sL https://particle.io/install-cli )

PARTICLE CLI SETUP...

:::: Installing the Particle CLI for darwin arm64
:::: Downloading CLI version 3.43.1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 39.8M 100 39.8M 0 0 23.9M 0 0:00:01 0:00:01 --:--:-- 23.9M

:::: The Particle CLI has been installed to: "/Users/kristian/bin/particle" and this directory
:::: has been added to your $PATH


** YOU MUST CLOSE AND REOPEN YOUR TERMINAL BEFORE CHANGES TAKE EFFECT **


➜ ~

Hey @kayolord can you try running a command with the –verbose flag, such as particle --help --verbose?

Same behavior! Continues to hang…

➜ ~ particle --help --verbose

Can you check to see if ~/.particle exists? There should also be a ~/.particle/profile.json file.

That does not appear to exist:

➜ code ls ~/.particle
ls: /Users/kristian/.particle: No such file or directory
➜ code

That indicates a permissions issue, looking into what we can try…

First check permissions of the binary:
ls -l ~/bin/particle
it should have execution permissions, also the owner should be the user:
-rwxr-xr-x 1 <user> staff 120410416 Sep 8 16:08 /Users/<user>/bin/particle

If the permissions are wrong then use: chmod +x ~/bin/particle

Check if the binary is not in quarantine:
xattr -l ~/bin/particle -> should not show com.apple.quarantine

Commonly, if a Mac user downloads our binary from the browser this might fall in quarantine. That’s why it’s important to use just the bash <( curl -sL https://particle.io/install-cli ) at least on Mac. I know you followed this path.

➜ ~ ls -l ~/bin/particle
-rwxrwxrwx 1 kristian staff 128073120 Oct 9 10:22 /Users/kristian/bin/particle
➜ ~ xattr -l ~/bin/particle
➜ ~

Please try running a debug version of the CLI like this:

DEBUG_PKG=2 ./particle-cli-macos-arm64

Share the output as a text file. There’s nothing private in that output, just the names of the files bundled in the executable so we can tell where things get stuck.

https://binaries.particle.io/cli/beta/3.43.1/particle-cli-macos-arm64.zip