Skip to content

charly-version

Recipe card from the charly-core plugin (Commands — runtime CLI verbs).

Displays the installed version of the charly CLI binary.

Action Command Description
Show version charly version Print charly version string
Terminal window
charly version

charly version writes the CalVer tag to stdout via fmt.Println. Declarative tests should match stdout: — for example candy/charly/charly.yml uses:

- id: charly-version
command: /usr/local/bin/charly version
exit_status: 0
stdout:
- matches: "[0-9]{4}\\.[0-9]+"

VersionCmd writes via fmt.Println (not Go’s builtin println, which bypasses os.Stderr and writes directly to fd 2) so the in-process MCP tool-call path — which captures os.Stdout — surfaces the version correctly. See /charly-check:check Authoring Gotcha #5 and /charly-build:charly-mcp-cmd “Capture model” for the capture-pipeline detail.