CLI Reference
gocronx init
Create a new project.
bash
gocronx init [project-name] [flags]Flags
| Flag | Description | Default |
|---|---|---|
--module | Go module path | (interactive prompt) |
--db | Database driver: sqlite, mysql, postgres | (interactive prompt) |
--redis | Enable Redis support | false |
Examples
bash
# Interactive mode
gocronx init
# All flags provided — no prompts
gocronx init myapp --module github.com/user/myapp --db postgres --redis
# Minimal quick start with SQLite
gocronx init myapp --module github.com/user/myapp --db sqlitegocronx update
Update the CLI to the latest version.
bash
gocronx updateThis command:
- Checks GitHub Releases for the latest version
- If a new version is found, downloads and installs it
- Prefers
go installif Go is available, falls back to direct binary download
gocronx uninstall
Remove gocronx from your system.
bash
gocronx uninstallThis deletes the gocronx binary. If installed to a system path (e.g. /usr/local/bin), you may need sudo.
Version
bash
gocronx --version