Forge CLI is super slow

The forge cli is unbelievably slow, every command takes about a minute to execute. It makes it very hard to use.

I don’t know what its doing but I"m assuming its doing some telemetry that my corporate firewall blocks and it ends up waiting for a timeout. It would be really nice to disable any telemetry if possible and if that is not the cause then I’m begging for some updates here to make it more responsive.

Try this: forge settings set usage-analytics false

It ran successfully but there is no change, the performance is very very slow.

This is still a big deal for us, every command could take between 30s to 1.5 minutes, that’s crazy

$ time forge install --upgrade -h
(node:15000) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Usage: cli install [options] [command]

manage app installations

Options:
  --verbose                          enable verbose mode
  -e, --environment [environment]    specify the environment (see your default environment by running forge settings list)
  -s, --site [site]                  site URL (example.atlassian.net)
  -p, --product [context]            context (Jira, Confluence, Compass, Bitbucket)
  --upgrade                          upgrade an existing installation (default: false)
  --confirm-scopes                   skip confirmation of scopes for the app before installing or upgrading the app (default: false)
  -l, --license [license]            specify the license value for the app (allowed values: active, standard, advanced, inactive, and trial)
  --license-modes [licenseModes...]  specify the list of license mode value for the app (allowed values: user-access)
  --users-with-access [user...]      specify the list of Atlassian Account IDs(aaid) for users who have access to the app
  --non-interactive                  run the command without input prompts
  -h, --help                         display help for command

Commands:
  list [options]                     list app installations

real    0m31.878s
user    0m0.539s
sys     0m2.944s

this work for me, thanks :smiling_face:

it connects to external services even for a -h as in the example above so it’s likely it was hanging on one of those.

take a look at the documented list of external services: https://developer.atlassian.com/platform/forge/enterprise/use-forge-cli-on-corporate-network/#allowing-the-forge-cli-to-make-outbound-connections

consider setting a proxy too forge settings set proxy.