SCANOSS Code Compare
is primarily a GUI application, but it can also be run directly from the terminal as a command-line tool. Follow the steps below to set up and use it as a CLI tool.
- Open the
.dmg
file - Drag and drop
SCANOSS Code Compare
into the/Applications
folder
You have two options to make the CLI accessible from your terminal:
Run the following command in your terminal:
sudo ln -s "/Applications/SCANOSS Code Compare.app/Contents/MacOS/SCANOSS Code Compare" /usr/local/bin/scanoss-cc
Add the following lines to your shell configuration file (~/.zshrc
, ~/.bashrc
, or ~/.bash_profile
):
export PATH="/Applications/SCANOSS Code Compare.app/Contents/MacOS:$PATH"
alias scanoss-cc='"/Applications/SCANOSS Code Compare.app/Contents/MacOS/SCANOSS Code Compare"'
Then reload your shell configuration:
source ~/.zshrc # or source ~/.bash_profile
To verify the installation, open a terminal and run:
scanoss-cc --help
You should see a list of available commands and options.
To remove the CLI tool:
sudo rm /usr/local/bin/scanoss-cc
Remove the export PATH line and the alias line from your shell configuration file (~/.zshrc
, ~/.bashrc
, or ~/.bash_profile
).