Documentation Download and setup CLI Data structures FAQ About

Canasta: CLI

Canasta has a commmand-line interface (CLI) for creating and running wikis; it is actually also the easiest way to install Canasta in general.

Table of contents

Before starting

You should have Docker Engine and Docker Compose installed. This is very fast and easy to do on common Linux distros such as Debian, Ubuntu, Red Hat, and CentOS. By installing Docker Engine from apt or yum, you get Docker Compose along with it. See the following install guides for each OS:


curl -fsL | bash

All available commands

A CLI tool to create, import, start, stop and backup multiple Canasta installations

  sudo canasta [command]

Available Commands:
  list        List all Canasta installations
  create      Create a Canasta installation
  import      Import a wiki installation
  start       Start the Canasta installation
  stop        Shuts down the Canasta installation
  restart     Restart the Canasta installation
  skin        Manage Canasta skins
  extension   Manage Canasta extensions
  restic      Use restic to backup and restore Canasta
  maintenance Run maintenance update jobs
  delete      Delete a Canasta installation
  help        Help about any command

  -h, --help      help for Canasta
  -v, --verbose   Verbose output

Use "sudo canasta [command] --help" for more information about a command.

Create a new wiki

Import an existing wiki

Enable/disable an extension

Enable/disable a skin

Using restic

restic is a very useful utility for doing automated backups to a variety of different storage types; though Canasta's usage of restic is configured for using AWS S3-based repositories.

Canasta makes use of restic's dockerized binary.

How to get started

  1. Add these environment variables to your Canasta installation's .env file. Follow the steps at cli-configure-quickstart to obtain ACCESS_KEY_ID and SECRET_ACESS_KEY.
  2. When using restic for the first time in a Canasta installation, run the following command to initialize a restic repo in the AWS S3 bucket specified in the .env file:
    sudo canata restic init -i canastaId

    Now you should be able to use any of the available commands.

Available restic commands

  check         Check restic snapshots
  diff          Show difference between two snapshots
  forget        Forget restic snapshots
  init          Initialize a restic repo
  list          List files in a snapshost
  restore       Restore restic snapshot
  take-snapshot Take restic snapshots
  unlock        Remove locks other processes created
  view          View restic snapshots

Use "sudo canasta restic [command] --help" for more information about a command.