π» Installation
π» Installation
π¦ Dependencies
- Bash version 5 or superior is required (might work with older versions but it is not guaranteed).
- From GNU coreutils: it uses
rm
,mv
,mkdir
for all commands. It usescp
,chmod
,touch
for the installation/updates. You most likely already have all of these! - curl and tar are needed only if you want to use the
self update
orself extend
command.
π Automated installation
Run the following command to install Valet:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/jcaillon/valet/latest/commands.d/self-install.sh)"
π‘
Please review the installation script or the self install command usage to learn about the different installer options.
Here is an example command to install Valet with the options --unattended --single-user-installation
(no interactive prompt during installation and installs itself in the home directory of the user):
bash -c "$(curl -fsSL https://raw.githubusercontent.com/jcaillon/valet/latest/commands.d/self-install.sh)" -s --unattended --single-user-installation
Finally, call valet
to get started with the example commands!
πͺ Manual installation
- Download the package from the latest release from GitHub.
- Extract the archive to your favorite installation directory.
- Add this directory to your PATH so you can call
valet
from your terminal. - Call
valet
to get started with the example commands!
π¨ Manual installation from sources
- You can clone this project or download the source from the latest release into the directory of your choice.
- Add this directory to your PATH so you can call
valet
from your terminal. - Call
valet
to get started with the example commands!
βοΈ Extra config for your terminal
- Nerd font: Valet can make use of Nerd fonts to display icons in the logs and interactive sessions. You can download any nerd font from here, install it, and configure your terminal to use that font.
- Word separator: Valet usually prints important values between βquotesβ using the UTF8 top left and top right corners (respectively U+231C and U+231D). You can add these two characters as word separators in your terminal for quick double click selection:
ββ
.
πͺ Use Valet on windows
It is recommended to use Git bash, installed with Git for Windows and Windows terminal as your terminal program. You can also use Valet with any Linux distribution and Windows Subsystem for Linux (WSL).
π Run Valet in a container
With a container engine (such as Docker or Podman), you can run a containerized version of Valet:
docker run --rm -it ghcr.io/jcaillon/valet
Find the list of image tags under Valet packages.
π‘
Alternatively, use
docker run --rm -it noyacode/valet
to pull and run the image stored on DockerHub.