heroku / heroku/cli

Slow startup time when using plugins

Open
#2,238 2 comments 0 reactions 0 assignees View on GitHub
on-call reviewed
Dominant language
TypeScript
Stars
889
Forks
236
Avg merge
2d 10h
Merged PRs (30d)
33

Description

What is the current behavior?
-----------------------------
Currently if you install some plugins the CLI slows down considerably, for example the heroku-pg-extras plugin:

### Before

```bash
heroku ps -a myapp 0.49s user 0.27s system 33% cpu 2.316 total
```

### After

```bash
$ heroku plugins:install heroku-pg-extras
heroku ps -a myapp 1.33s user 1.32s system 41% cpu 6.377 total
```

What is the expected behavior?
------------------------------
I would expect some commands like `ps` would not load the entire plugin suite, saving time.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.