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

173 views Asked by At

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

There are 1 answers

0
neu242 On

Luckily answer was pretty simple:

export default class Foo extends Command {

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