Skip to content

CLI Reference

Complete reference for all Gira commands and options.

Table of Contents

Other Commands

Global Options

These options can be used with any command:

  • --help - Show help message and exit
  • --version - Show version number and exit

Commands

gira restore

gira restore <backup_file> [options]

Arguments:

  • backup_file - Path to the backup file to restore (required)
  • Type: string
  • Examples: .gira/config.json, /path/to/file.txt, ./relative/path.md

Options:

  • -t, --target - Target directory for restoration. Defaults to current directory
  • Default:
  • Pattern: ^\d{4}-\d{2}-\d{2}$
  • Examples: 2025-01-20, 2025-12-31

  • -f, --force - Skip confirmation prompt

  • Type: boolean

Examples:

gira restore .gira/config.json
gira restore .gira/config.json --force