Files
unique/docs/installation.md
T

1.3 KiB

title
title
Installing Unique

Installing Unique

unique is meant to be used as a command-line tool, not as a project-local script that must be run from inside its source directory. For a developer workflow, the practical approach is:

  1. Follow the instructions to build from source, all the way to creating a standalone executable. This executable should be available under the dist/ directory under the project root of unique.

  2. Alternatively, download a pre-build copy of the executable for your operating system.

  3. Copy the executable into a common location, so that you can delete the unique project folder at a later point in time.

  4. Install the executable for global CLI access. You can use a command from within unique to complete the installation.

cd /{folder-where-you-copied-the-executable}
./unique install

This command creates a symlink at ~/.local/bin/unique that points to the built executable. After that, the tool can be invoked from anywhere in your shell:

unique --help

Note:

If ~/.local/bin is not already on your PATH, add it:

export PATH="$HOME/.local/bin:$PATH"

For persistence, add the same line to your shell profile, such as ~/.bashrc or ~/.zshrc, then reload the shell.