#2573·encore

encore version exits 1 when the update-check hangs (still)

Author: devlatoCreated Sep 8, 2026Updated Sep 12, 2026

Is there an existing issue for this?

  • I have searched the existing issues

What part(s) of Encore does this bug report apply to?

  • Encore.ts (TypeScript)
  • Encore.go (Go)
  • Encore CLI
  • Local Development Dashboard
  • Encore Cloud

Current behavior

$ encore version
encore version v1.58.1
error: could not check for update: update.Check: Get "https://encore.dev/api/releases?actor=<usr_id>&arch=arm64&channel=ga&current=v1.58.1&os=darwin": context deadline exceeded

$ echo $?
1

The issue also occurs when using the latest available version (1.58.4).

encore 1.58.1 and 1.58.4, macOS arm64, brew install.

I reported this previously in #2493, so:

  • I think it's bad practice for a command that's supposed to print the current version to depend on the health or availability of a remote API endpoint. It's standard practice to call <toolname> --version (or, in this case, encore version) to check whether the tool is installed and whether its version satisfies the required constraints — especially in setup scripts. The current behaviour breaks that pattern by failing not because the tool is missing, but because a remote URL can't be accessed.
  • Would you consider not checking for available updates by default and adding a separate flag for that instead? E.g. --check-for-updates

Minimum reproduction code

No response

Steps to reproduce

encore version

Expected behavior

It must print the version and exit with 0.

Checking for updates must not happen by default, or must not crash the command.

Encore CLI version

1.58.4

Node.js version

24.16.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response