- assigned_to: thomijasir
#28 [Feature]: Improve CLI release discovery and verified installation guidance
Originally created by: thomijasir
Originally owned by: thomijasir
Feature description
Make update results tell users how to install a release safely for their platform without letting the CLI replace itself.
Current behavior
dopbase update checks the latest GitHub release and prints a release link plus a general installation note.
Why we need this
Users need a clear next step when an update is available. The guidance should respect package-managed installs and make artifact verification easy.
Proposed CLI interface
Keep dopbase update as the explicit check.Add a low-frequency informational notice after safe interactive commands.Add --no-update-check to disable automatic notices.
Expected behavior
- Cache the last successful check time and perform automatic checks at most once every 24 hours.
- Skip automatic checks for
run, secret reveal or export, completion, JSON mode, quiet mode, non-interactive mode, and commands that already failed. - Use a short timeout and ignore automatic-check failures.
- Show the installed version, available version, release notes URL, and platform-specific installation command when known.
- If the install source cannot be detected, point to signed release archives and checksum verification instructions.
- Keep explicit
dopbase updatefailures visible. - Store only update timestamps and version metadata in the client data directory.
Security and compatibility
- Do not download, execute, or replace the current binary.
- Do not send authentication credentials to the release service.
- Do not run package-manager commands.
- Only trust the configured official release repository and HTTPS URLs.
Out of scope
- Self-updating the binary.
- Changing release artifact generation.
- Collecting update analytics.
Acceptance criteria
- [ ] Automatic checks run no more than once per 24 hours.
- [ ] Sensitive, scripted, quiet, and JSON commands never receive notices.
- [ ] A failed background check never changes command output or exit status.
- [ ] Explicit update checks still report errors.
- [ ] Guidance differs for detected package installs and standalone archives.
- [ ] Tests confirm that no installer or package manager is executed.
Test scenarios
- Add update policy tests under
app/tests/cli/. - Cover timing, command exclusions, timeout, unavailable release service, version comparison, install-source detection, JSON and quiet modes, and metadata permissions.
Documentation
Document explicit and automatic checks, opt-out behavior, stored metadata, package-manager guidance, and artifact verification.
Dependencies
The current release API and installer documentation remain the sources of version and installation information.