# Installation
It's about download (or building) the binary and putting them in an easily accessible location (like `/bin/`).
The YouTube TUI is not tested for Windows.
## Install from Crates.io (recommended)
Crates.io is a repository for programs written in Rust, and the YouTube TUI is avaliable *there*.
To install using this method, you will need `rustc` and `cargo` present. *Here*'s a tutorial on how to get them.
Now, run the following command:
```sh
cargo install youtube-tui
```
> To check and update all programs installed from Crates.io, you can use CLI tools like *cargo-update*.
## AUR for Arch Linux (recommended)
The YouTube TUI is avaliable in the AUR *here*.
Use an AUR helper like `yay` to install.
```sh
yay -S youtube-tui-git # replace `yay` with your AUR helper
yay -S youtube-tui-full-bin # requires libsixel
yay -S youtube-tui-nodefaults-bin
```
## Build from source
Use the `cargo` command:
```sh
cargo install --git https://github.com/siriusmart/youtube-tui
```
### Confirm YouTube TUI has been installed
Run the following command in terminal:
```sh
youtube-tui
```
If installed correctly, a TUI should be launched. Press `q` to close the TUI.
## Features
The TUI has features that can be enabled/disabled when compiling.
```sh
cargo install youtube-tui # install with all default features
cargo install youtube-tui --no-default-features # install without any features enabled
cargo install youtube-tui --no-default-features -F 'halfblock' # install with only HalfBlocks support (but not Sixels)
cargo install youtube-tui --no-default-features -F 'halfblock' -F 'sixel' # can install with multiple features by doing this
cargo install youtube-tui --all-features # install with all features (even if not included in default)
```
### `halfblock` (default)
Display images through HalfBlocks, work best in terminals with TrueColour support.
### `sixel` (default)
Display images with Sixels, allows the display of images at full definition. Not present on windows.
Enabling this will also enable `halfblock`.
Requires `libsixel`.
> `sixel` and `halfblock` does not compile on Windows.