Report the server version
GET
/version
const url = 'https://example.com/version';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/versionReturns the running server version and the oldest CLI version the server still supports. The CLI compares itself against min_cli_version before deploying and asks the user to update when it falls behind.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
VersionResponse
object
min_cli_version
required
Min Cli Version
string
version
required
Version
string
Examplegenerated
{ "min_cli_version": "example", "version": "example"}