Get the Prism SDK
Download the latest release of Prism CLI from the Github page of the project (https://github.com/prism-os/os/releases) for your system.
Make sure you have
zipinstalled in your system, these should be pre-installed in most systems.
Extract the file in the desired location, for example:
cd ~/development unzip ~/Downloads/prismtool-macos-amd64.zip -d prism
setup_platforms.shscript in the root of extracted directory.
prismtoolbinary to your path:
This command sets your PATH variable for the current terminal window only. To permanently add Prism to your path, see Update your path.
Update your path
You can update your PATH variable for the current session at the command line, as shown in Get the Prism SDK section. You’ll probably want to update this variable permanently, so you can run
prismtool commands in any terminal session.
The steps for modifying this variable permanently for all terminal sessions are machine-specific. Typically you add a line to a file that is executed whenever you open a new window. The steps below will cover the most common cases:
- Determine the directory where you placed the Prism SDK. You need this in Step 3.
- Open (or create) the rc file for your shell. For example,
Linux uses the Bash shell by default, so edit
MacOS Mojave (and earlier) uses the Bash shell by default, so edit
MacOS Catalina uses the Z shell by default, so edit
If you are using a different shell, the file path and filename will be different on your machine.
- Add the following line and change
PATH_TO_PRISM_SDK_DIRECTORYto be the path where you placed Prism SDK:
source $HOME/.<rc file>to refresh the current window, or open a new terminal window to automatically source the file.
- Verify that the
prism/bindirectory is now in your PATH by running:
Verify that the
prismtool command is available by running: