Commands Overview
Complete reference for all GoMask CLI commands
Commands Overview
Complete reference for all GoMask CLI commands and options.
Quick Reference
| Command | Description |
|---|---|
gomask init | Initialize CLI configuration |
gomask version | Display version info |
gomask setup | Interactive routine wizard |
gomask example | Create example routine |
gomask validate | Validate YAML configuration |
gomask import | Import YAML to database |
gomask export | Export routine to YAML |
gomask run | Execute a routine |
gomask connectors | Manage database connectors |
gomask functions | Explore generation functions |
gomask routines | Manage routines |
gomask executions | Monitor executions |
Global Options
These options are available on all commands:
| Option | Description |
|---|---|
--debug | Enable debug logging for troubleshooting |
--api-url URL | Override the GoMask API URL (for self-hosted) |
--secret SECRET | Override API authentication secret |
--version | Display CLI version information |
-h, --help | Show help text for any command |
Configuration
Set up and configure the CLI:
Routine Workflow
Create, validate, and execute routines:
Resource Management
Manage connectors, functions, routines, and executions:
| Command | Description |
|---|---|
connectors | Create, test, and manage database connections |
functions | Explore available data generation functions |
routines | List and inspect routines |
executions | Monitor and manage running jobs |
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 130 | Interrupted (Ctrl+C) |
Getting Help
# General help
gomask --help
# Command-specific help
gomask run --help
gomask connectors create --help