Choose Your Platform
Cloudstic CLI provides native installation methods for all major platforms. Choose the method that works best for your system:- macOS
- Linux
- Windows
- Go
Verify Installation
Confirm that Cloudstic is installed correctly: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
cloudstic binary in the current directory.4
Install the binary (optional)
PATH.Run the test suite
Run the test suite
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.- Bash
- Zsh
- Fish
Configuration Directory
Cloudstic stores OAuth tokens and state files in a platform-specific directory:
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
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
Command not found after installation
Command not found after installation
Problem: Shell can’t find the Add the export statement to your
cloudstic binary.Solution: Make sure the installation directory is in your PATH:~/.bashrc, ~/.zshrc, or ~/.profile to make it permanent.Permission denied when running cloudstic
Permission denied when running cloudstic
Problem: Binary is not executable.Solution: Add execute permissions:
Homebrew tap not found
Homebrew tap not found
Problem:
brew install cloudstic/tap/cloudstic fails.Solution: Update Homebrew and try again:Go version too old
Go version too old
Problem: Build fails with Go version error.Solution: Upgrade Go to version 1.21 or later: