How do I programatically read the version of a currently running oclif app?

Viewed 30

This title says it all: How do I programatically read the version of a currently running oclif command-line app (from within the app)?

1 Answers

Luckily answer was pretty simple:

export default class Foo extends Command {

  async run() {
    console.log(this.config.version);
  }
}
Related