Skip to main content

Choose Your Platform

Cloudstic CLI provides native installation methods for all major platforms. Choose the method that works best for your system:
The easiest way to install Cloudstic on macOS is via Homebrew:

Curl Installer

Pre-built Binary

Download the latest release for your architecture:

Verify Installation

Confirm that Cloudstic is installed correctly:
You should see output similar to:
Installation successful! You’re ready to initialize your first repository.

Build from Source

For developers or users who want to build from the latest source code:
1

Install Go 1.21 or later

Download and install Go from golang.org
2

Clone the repository

3

Build the binary

This creates a cloudstic binary in the current directory.
4

Install the binary (optional)

Or add the current directory to your PATH.
E2E tests require Docker for Testcontainers (MinIO, SFTP). They skip gracefully if Docker is unavailable.

Shell Completions

Cloudstic supports tab-completion for commands, flags, and values in bash, zsh, and fish.

Load completion for current session

Load completion permanently

Bash completions require the bash-completion package:
  • macOS: brew install bash-completion
  • Debian/Ubuntu: apt install bash-completion

Configuration Directory

Cloudstic stores OAuth tokens and state files in a platform-specific directory:
Override the config directory by setting the CLOUDSTIC_CONFIG_DIR environment variable:
This directory contains:
  • google_token.json: Google Drive OAuth token (if using Google Drive sources)
  • onedrive_token.json: OneDrive OAuth token (if using OneDrive sources)
  • State files: For incremental backups (change tokens, delta links)

Environment Variables

Simplify your workflow by setting default values via environment variables. This is especially useful for automation:
~/.bashrc or ~/.zshrc
With these set, commands become much shorter:
See the User Guide for the complete list of supported environment variables.

Next Steps

Quick Start

Initialize your first repository and create a backup

User Guide

Explore all commands and advanced features

Troubleshooting

Problem: Shell can’t find the cloudstic binary.Solution: Make sure the installation directory is in your PATH:
Add the export statement to your ~/.bashrc, ~/.zshrc, or ~/.profile to make it permanent.
Problem: Binary is not executable.Solution: Add execute permissions:
Problem: brew install cloudstic/tap/cloudstic fails.Solution: Update Homebrew and try again:
Problem: Build fails with Go version error.Solution: Upgrade Go to version 1.21 or later:
If you encounter issues not covered here, please report them at github.com/cloudstic/cli/issues.