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 ext list

List all available hooks and their status.

gira ext list [options]

Options:

  • -v, --verbose - Show detailed information about each hook
  • Type: boolean

Examples:

gira ext list
gira ext list --verbose

gira ext init

Initialize the hooks directory with example templates.

gira ext init [options]

Options:

  • -f, --force - Overwrite existing hooks directory
  • Type: boolean

Examples:

gira ext init
gira ext init --force

gira ext install

Install a specific hook template.

gira ext install <hook_name> [options]

Arguments:

  • hook_name - Name of the hook template to install (required)
  • Type: string

Options:

  • -f, --force - Overwrite existing hook
  • Type: boolean

Examples:

gira ext install <hook_name>
gira ext install <hook_name> --force

gira ext test

Test a hook with sample data.

gira ext test <hook_name> [options]

Arguments:

  • hook_name - Name of the hook to test (required)
  • Type: string

Options:

  • --data - JSON string with test event data
  • Default:

Examples:

gira ext test <hook_name>

gira ext enable

Enable hook execution.

gira ext enable

Examples:

gira ext enable

gira ext disable

Disable hook execution.

gira ext disable

Examples:

gira ext disable

gira ext show

Display the contents of a hook file.

gira ext show <hook_name>

Arguments:

  • hook_name - Name of the hook to display (required)
  • Type: string

Examples:

gira ext show <hook_name>