This title says it all: How do I programatically read the version of a currently running oclif command-line app (from within the app)?
This title says it all: How do I programatically read the version of a currently running oclif command-line app (from within the app)?
Luckily answer was pretty simple:
export default class Foo extends Command {
async run() {
console.log(this.config.version);
}
}