CLI Tool

How do i install this or run it on a mac?

I was just going to ask the same question?

We don’t currently have the OSX CLI signed (which is something we plan to do). If you unzip it and right-click on it to open it OSX will ask if you want to run the file. Once you said ok once you should be able to run it from the command line. Let me know if that doesn’t work for you.

hi @timtunity3d thanks for the reply.

When i run it, it just says “process complete” and i dont have access to it via the command line.

6544519--740173--Screenshot 2020-11-20 at 16.08.16.png

It’s a command line tool, so you would need to open a terminal to use it (or call it from code). I’d recommend copying it from your downloads folder to /usr/local/bin

cp ~/Download/ucd_0.9.8/ucd /usr/local/bin/

Then when you’re at the terminal it should be in your path and you can just run it like:

ucd --help

2 Likes

Thanks Tim that has worked for me

Hello,
is that answer still valid? I can find the /usr/local but not the /usr/local/bin.

MacOS generally doesn’t load anything into /usr/local/bin but it recognizes that you may. So the stock OS may not have created the directory since it would be empty.

  • confirm your user has /usr/local/bin in their environment with echo $PATH; if it is not in there, you will need to adjust your .bashrc, .bash_profile or .zshenv and this is outside the scope of this forum

  • create the subdirectory /usr/local/bin (owned by root with group wheel, mode 655 typically)

  • put whatever executables you want to have reachable by all users there (and make sure it has a suitably executable mode)

Forget about /usr/local/ … no one should alter that directory.

Below works on macOS Big Sur

PATH=“$PATH:/Volumes/SeagatePlus/CCD/ucd”

  1. I copied the ucd into my backup drive.

  2. Then run that PATH thingy on the terminal console on your mac

  3. Then simply enter ucd at the terminal command line

Thanks both for your quick answers!

I just figured out my own solution and just created a folder called “bin” in the usr/local/ by myself and copied the ucd there. Now everything is working.