Skip to main content
Look up the latest published @talkvalue/cli version on npm and compare it against the version you are running. If a newer version exists, the response carries a ready-to-copy install command tuned to the package manager that put the CLI on disk: npm, pnpm, yarn, or bun. The command performs no install; it prints the command to run.

Synopsis

Options

This command takes no flags beyond the global flags. Output respects --format / --json.

Examples

1. Quick check

Prints a single record with the installed version, the latest published version, an outdated boolean, and (when out of date) the install command for your package manager.

2. Detect outdated in a script

Use this guard at the top of automation that depends on a recent CLI feature. Combine with set -e and an explicit exit 1 if you want the script to halt instead of warn.

3. CI gate that fails when the CLI is stale

jq -e returns non-zero when the assertion fails, so the CI step fails, signalling the pinned @talkvalue/cli version in your image or workflow needs bumping.

Response

installCommand is null when outdated is false. The picked package manager is inferred from npm_config_user_agent. When the CLI is run directly from the binary the fallback is npm. The remote lookup uses a 10-second timeout. Network failures surface as a hard error rather than a stale “up to date” answer.

See also

  • talkvalue version. Print the version that is installed right now.
  • Install. Clean install and upgrade instructions per package manager.