Command Reference¶
This document provides a complete reference for the commands supported by Lupaxa GitHub Repository Sync.
The command-line interface has been designed to provide a consistent and predictable experience, with each command performing a single well-defined task.
Command Syntax¶
The general command syntax is:
Where:
- Global Options affect the behaviour of the application as a whole.
- Command specifies the action to perform.
- Command Options modify the behaviour of the selected command.
Global Options¶
The following options are available regardless of the command being executed.
| Option | Description |
|---|---|
--config <file> |
Specify an alternative configuration file. |
--verbose |
Enable verbose output. May be specified multiple times if supported. |
--quiet |
Reduce console output to warnings and errors. |
--version |
Display the application version. |
--help |
Display command-line help. |
Note
The exact set of global options may evolve between releases. Always refer to
grs --helpfor the version you are using.
Available Commands¶
The application currently provides the following high-level commands.
| Command | Description |
|---|---|
sync |
Synchronise repositories defined in the configuration file. |
validate |
Validate the configuration without performing synchronisation. |
list |
Display configured organisations and repositories. |
config |
Display configuration information. |
version |
Display application version information. |
The commands available may expand as new functionality is introduced.
Sync¶
Synchronises the configured repositories.
Syntax¶
Typical Usage¶
Synchronise all configured repositories.
Synchronise using an alternative configuration file.
Enable verbose output.
Validate¶
Validates the configuration file without modifying any repositories.
Syntax¶
Typical Usage¶
Validate the default configuration.
Validate an alternative configuration.
This command is recommended before making significant configuration changes.
List¶
Displays the organisations and repositories defined in the configuration.
Syntax¶
Typical output may include:
- Configured organisations.
- Repository names.
- Local paths.
- Repository URLs.
This command performs no Git operations.
Config¶
Displays information about the active configuration.
Syntax¶
Depending on the implementation, this command may display:
- Configuration file location.
- Configuration version.
- Repository root.
- Organisation count.
- Repository count.
No synchronisation is performed.
Version¶
Displays version information.
Syntax¶
Typical information includes:
- Application version.
- Python version.
- Platform information.
This command is useful when reporting issues or requesting support.
Command Behaviour¶
All commands follow the same general execution model.
- Parse command-line arguments.
- Load configuration where required.
- Validate input.
- Execute the requested command.
- Report the outcome.
- Return an appropriate exit code.
This consistent behaviour makes the application suitable for both interactive use and automation.
Command Exit Status¶
Every command returns an exit code indicating whether it completed successfully.
Automation systems should always use the exit code rather than parsing console output to determine success or failure.
Complete details are provided in the Exit Codes guide.
Getting Help¶
Command-line help is available at any time.
Display the main help page.
Display help for a specific command, if supported.
The built-in help always reflects the capabilities of the installed version and should be considered the authoritative source for command syntax.
Related Documentation¶
For additional information, see:
- Configuration Guide
- Commands
- Automation
- Exit Codes