Installation¶
This guide covers installing and uninstalling the Canasta command line interface (CLI).
Contents¶
Prerequisites¶
Docker Compose (default)¶
Before using the Canasta CLI, you must have both Docker Engine and Docker Compose installed.
Windows and macOS¶
Docker Compose is included in Docker Desktop for Windows and macOS.
Linux¶
Linux is the most-tested and preferred OS environment as the host for Canasta. Installing the requirements is fast and easy to do on common Linux distributions such as Debian, Ubuntu, Red Hat, and CentOS. While you can get up and running with all the Docker requirements by installing Docker Desktop on Linux, if you are using a 'server environment' (no GUI), the recommended way to install is to uninstall any distribution-specific software and install Docker software using the Docker repositories. (The link is the install guide for Docker Compose which will also install the Docker Engine.)
Essentially, preparing your Linux server to be a Canasta host by installing the Docker suite of software includes something like
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin once you've
added the Docker repositories to your system.
Warning: Linux required group membership
Add your user to the
dockerandwww-datagroups, then log out and log back in:
docker— permission to run Docker commands (replaces the need forsudo)www-data— permission to manage files in the installation'sconfig/directory (shared with the web container)Without these groups, you will get "permission denied" errors when running CLI commands or editing configuration files.
Kubernetes (managed cluster)¶
To use Canasta with a CLI-managed Kubernetes cluster (canasta create -o k8s --create-cluster), you also need:
On macOS: brew install kubectl kind
On Linux: download the binaries from the links above or use your package manager.
Docker is still required since kind uses it to run cluster nodes. See the Kubernetes guide for full details.
Install¶
Run the automated installer (Linux/macOS):
On Windows, use WSL (Windows Subsystem for Linux) and run the installer inside your WSL distribution.
Verify Installation¶
Updating¶
The CLI automatically updates itself when you run canasta upgrade. This ensures you always have the latest CLI version when upgrading your Canasta instances.
Uninstall¶
First, delete any Canasta installations using canasta delete for each one.
Then remove the CLI binary and its configuration directory:
The configuration directory location depends on your platform:
- Linux (root):
sudo rm -r /etc/canasta - Linux (non-root):
rm -r ~/.config/canasta - macOS:
rm -r ~/Library/Application\ Support/canasta
Post-installation notes¶
Email configuration¶
Email functionality is not enabled by default. To enable email for your wiki, you must configure the $wgSMTP setting in your wiki's settings file. See the MediaWiki SMTP documentation for configuration options.