Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

CLI Tool

Discussion in 'Unity Cloud Content Delivery' started by bz_apps, Nov 20, 2020.

  1. bz_apps

    bz_apps

    Joined:
    Aug 19, 2014
    Posts:
    70
    How do i install this or run it on a mac?
     
  2. c_andrews

    c_andrews

    Joined:
    Jan 26, 2015
    Posts:
    106
    I was just going to ask the same question?
     
  3. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    124
    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.
     
  4. bz_apps

    bz_apps

    Joined:
    Aug 19, 2014
    Posts:
    70
    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.
     

    Attached Files:

  5. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    124
    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
     
    elaine_unity694 and bz_apps like this.
  6. c_andrews

    c_andrews

    Joined:
    Jan 26, 2015
    Posts:
    106
    Thanks Tim that has worked for me
     
  7. westfahlsophie

    westfahlsophie

    Joined:
    Oct 28, 2021
    Posts:
    2
    Hello,
    is that answer still valid? I can find the /usr/local but not the /usr/local/bin.
     
  8. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    1,802
    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)
     
  9. darashayda

    darashayda

    Joined:
    Jun 27, 2020
    Posts:
    255
    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
     
  10. westfahlsophie

    westfahlsophie

    Joined:
    Oct 28, 2021
    Posts:
    2
    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.