Documentation Index
Fetch the complete documentation index at: https://mintlify.com/deuxfleurs-org/garage/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
Garage provides a comprehensive command-line interface (CLI) for managing your distributed object storage cluster. The CLI allows you to perform administrative tasks such as managing nodes, configuring layouts, creating buckets, managing access keys, and running repair operations.Global Options
These options apply to all Garage commands:Host to connect to for admin operations, in the format:
<full-node-id>@<ip>:<port>Can also be set via the GARAGE_RPC_HOST environment variable.RPC secret for authenticationCan also be set via the
GARAGE_RPC_SECRET environment variable.Path to file containing the RPC secretCan also be set via the
GARAGE_RPC_SECRET_FILE environment variable.Path to the Garage configuration fileCan also be set via the
GARAGE_CONFIG_FILE environment variable.Command Structure
The Garage CLI follows this general pattern:Available Commands
server
Start the Garage server process
node
Manage individual Garage nodes
layout
Configure cluster layout and node roles
bucket
Manage S3 buckets
key
Manage S3 access keys
repair
Run data repair operations
Additional Commands
garage status- Get network status of the clustergarage stats- Gather node statisticsgarage worker- Manage background workersgarage block- Debug operations on data blocksgarage meta- Operations on the metadata databasegarage admin-token- Manage admin API tokensgarage offline-repair- Offline repair operationsgarage convert-db- Convert metadata database formats
Environment Variables
Garage respects the following environment variables:GARAGE_RPC_HOST- Default RPC host to connect toGARAGE_RPC_SECRET- RPC secret for authenticationGARAGE_RPC_SECRET_FILE- Path to file containing RPC secretGARAGE_CONFIG_FILE- Path to configuration file (default:/etc/garage.toml)RUST_LOG- Configure logging verbosity (default:netapp=warn,garage=warn)GARAGE_LOG_TO_SYSLOG- Enable syslog logging (set to1ortrue)GARAGE_LOG_TO_JOURNALD- Enable journald logging (set to1ortrue)
Configuration File
By default, Garage looks for its configuration at/etc/garage.toml. You can specify a different location using the -c flag or the GARAGE_CONFIG_FILE environment variable.
If both --rpc-host and --rpc-secret are provided via command-line or environment variables, Garage will not require a configuration file for administrative commands.
Examples
Using Configuration File
Using Environment Variables
Remote Administration
Getting Help
For help with any command, use the--help flag: