
Cx Cli
- 919 installs
- 113 repo stars
- Updated August 4, 2026
- coralogix/cx-cli
Cross-cutting behaviors for all cx CLI commands, including surfacing binary-upgrade and skills-refresh update notices after each command.
About
Provides shared behaviors that apply to every cx CLI command, chiefly detecting and reporting available binary and skills updates. A developer uses it whenever running any cx observability command.
- Scans the last stdout line for _meta.update in agents output
- Offers both binary upgrade and skills refresh commands together
Cx Cli by the numbers
- 919 all-time installs (skills.sh)
- +127 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #100 of 550 CLI & Terminal skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/coralogix/cx-cli --skill cx-cliAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 919 |
|---|---|
| repo stars | ★ 113 |
| Last updated | August 4, 2026 |
| Repository | coralogix/cx-cli ↗ |
What it does
Cross-cutting behaviors for all cx CLI commands, including surfacing binary-upgrade and skills-refresh update notices after each command.
Files
cx-cli
Cross-cutting behaviors for all cx CLI commands.
---
Update Notifications
After running any cx command, check for update notices using the channels below (in priority order). If a newer version is available, finish answering the user's request first, then mention the update once at the end.
An update notice always has two parts — binary upgrade and skills refresh. Offer both commands; don't mention only the version number or only the binary upgrade.
1. Primary — agents mode (-o agents)
Commands with --output agents append a standalone trailing JSON line to stdout:
{"_meta":{"update":{"binary":{"current":"0.1.7","latest":"0.2.0","command":"brew upgrade cx"},"skills":{"command":"npx skills add coralogix/cx-cli","docs":"https://github.com/coralogix/cx-cli#install"}}}}Scan the last line of stdout for _meta.update. When present:
- Binary upgrade:
_meta.update.binary.command(current:.binary.current, latest:.binary.latest) - Skills refresh:
_meta.update.skills.command
2. Schema startup check
cx schema embeds the same _meta.update object at the top level of the schema JSON (not a trailing line). Check _meta.update.binary and _meta.update.skills the same way.
3. Fallback — human-readable text
Also scan stderr and stdout for plain-text notices. Binary and skills appear on one line, separated by |:
[cx update] v0.2.0 available (you have 0.1.9) | upgrade: brew upgrade cx | skills: npx skills add coralogix/cx-cliTTY text mode uses two lines with the same upgrade: ... | skills: ... pattern:
cx 0.2.0 is available (you have 0.1.9).
upgrade: brew upgrade cx | skills: npx skills add coralogix/cx-cliThese appear on stderr for text/json mode after normal commands.
Response template
[Summarize the command result here]
>
---
A newer cx version (X.Y.Z) is available — you have A.B.C. Would you like me to run<binary upgrade command>andnpx skills add coralogix/cx-clito update?
Keep it to one brief closing line. Don't repeat on later commands in the same session.
---
General cx CLI Guidelines
- Always use
--output agentsfor machine-readable output when processing results programmatically - Use
cx schemato discover available commands and their flags - Commands support multi-profile fan-out with
-p profile1 -p profile2 - Use
--yesto skip confirmation prompts in scripts - Use
--read-onlyfor safe exploration without risk of modifications