Installation
A Umono site is managed with the Umono CLI. It downloads Umono, creates a site, starts and stops it and updates it. It is also the tool to develop themes.
Requirements
Section titled “Requirements”- Linux or macOS, on amd64 or arm64.
curlorwget.
Install the CLI
Section titled “Install the CLI”curl -fsSL https://umono.io/install.sh | shThe script downloads the latest release of the CLI for your platform from GitHub and installs it as ~/.local/bin/umono.
If ~/.local/bin is not in your PATH, the script says so. Add this line to your shell configuration, for example ~/.bashrc or ~/.zshrc:
export PATH="$HOME/.local/bin:$PATH"Open a new terminal and check the installation:
umono versionShell completion
Section titled “Shell completion”Since v0.4, the CLI completes its commands and arguments in bash, zsh and fish. umono completion <shell> prints the completion script of the shell. The install script does not set up completion and the CLI never edits your shell files: load the script yourself as below, then open a new terminal.
The script does not hold the list of commands. It asks the CLI on every completion, so it stays up to date when the CLI is updated and never needs to be generated again.
The script needs the bash-completion package. Without it, the script loads, but every completion fails with _get_comp_words_by_ref: command not found. Install it with your package manager, for example sudo apt install bash-completion or sudo dnf install bash-completion.
Then add this line to ~/.bashrc:
source <(umono completion bash)Completion must be enabled in ~/.zshrc. If it is not, add this line first:
autoload -U compinit; compinitThen add this line after it:
source <(umono completion zsh)zsh is the default shell of macOS, and these steps work there too.
Write the script to the completion directory of fish, which fish loads by itself:
mkdir -p ~/.config/fish/completionsumono completion fish > ~/.config/fish/completions/umono.fishUpdate the CLI
Section titled “Update the CLI”Run the install script again. It replaces the CLI with the latest release.
Each Umono release names the oldest CLI that can install it. When your CLI is older, umono create and umono upgrade stop before they download anything, with the error CLI version incompatible and the version they need. Update the CLI and run the command again.