CLI: Add API health probe #601
Labels
difficulty: 2
good first issue
Good for newcomers
help wanted
Extra attention is needed
priority: high
scope: cli
Everything related to the CLI
type: feature
Release drafter tag for tagging PRs related to adding new features
Description
Since our CLI can be configured to work with any version of the backend (self hosted / production / staging), we would need to ensure that the CLI first checks if the backend is reachable before issuing commands that make HTTP requests. Otherwise, we might land up with this error:
Solution
base.command.ts
hascanMakeHttpRequests
. If this is set to true, we need to make a request to/api/health
path to ensure the servers are reachable fromBaseCommand#prepare
function.The text was updated successfully, but these errors were encountered: