@nayelyz I have used the CLI without issue in the past. Recently, I have been trying to set it up on another RPi, but it will not run. Specifically, after using npm to install @smartthings/cli, I receive the following error when typing “smartthings”:
TypeError: HelpClass is not a constructor
If I execute “run” directly, I receive this error:
line 3: syntax error near unexpected token '@oclif/command'' line 3: require(’@oclif/command’).run()’
This particular RPi is running RaspberryPi OS 32 bit. When I try to execute the smartthings binary that you linked to, I receive the following error:
“cannot execute binary file”
I can’t tell what kind of system that binary was compiled for: armhf, amd64, etc.?
You don’t have to execute it, you only need to make reference to it and add the corresponding command. For example: ./path/smartthings devices.
This should open a web browser page for the authorization but you can also use a PAT
Ok, I will check more details with the engineering team.
Update: @Delgreco007, the team mentioned the failure of the commands is expected because it is not currently built for ARM.
However, the CLI support on this OS is already considered by the team for the future.
Correct. I have run prior versions of the CLI on both RaspberryPi OS 32 bit and 64 bit. I receive the same error when trying to install with npm on both at present. Unfortunately, I do not remember the prior version numbers, although I do know I was able to interface with edge devices, so it would have been some more recent versions.
Have you tried installing from scratch any time recently? I was able to upgrade previously without a problem. This only cropped up on a new installation of buster.
I think there was some problem with versioning in the oclif module. I noticed there was a correction in github involving this a day or two ago, and now they’ve pushed out 0.0.0-pre.35. I was just able to install it without a problem using npm, so it appears to be fixed.
@TAustin when I installed it this way on a RPI, the only commands I have available are edge and plugins. I’m missing the other commands like capabilities.