Skip to content

CLI Reference ​

gocronx init ​

Create a new project.

bash
gocronx init [project-name] [flags]

Flags ​

FlagDescriptionDefault
--moduleGo module path(interactive prompt)
--dbDatabase driver: sqlite, mysql, postgres(interactive prompt)
--redisEnable Redis supportfalse

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 sqlite

gocronx update ​

Update the CLI to the latest version.

bash
gocronx update

This command:

  1. Checks GitHub Releases for the latest version
  2. If a new version is found, downloads and installs it
  3. Prefers go install if Go is available, falls back to direct binary download

gocronx uninstall ​

Remove gocronx from your system.

bash
gocronx uninstall

This deletes the gocronx binary. If installed to a system path (e.g. /usr/local/bin), you may need sudo.

Version ​

bash
gocronx --version