44 lines
1.3 KiB
Markdown
44 lines
1.3 KiB
Markdown
---
|
|
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](build-from-source.md), 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.
|
|
|
|
```sh
|
|
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:
|
|
|
|
```sh
|
|
unique --help
|
|
```
|
|
|
|
**Note:**
|
|
|
|
If `~/.local/bin` is not already on your `PATH`, add it:
|
|
|
|
```sh
|
|
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.
|