get version() {
        let activeVersion = this._cliConfig.get('active-version', null);
        if (!activeVersion) {
            try {
                const {version} = fs.readJsonSync(path.join(this.dir, 'current/package.json'));
                if (version) {
                    this._cliConfig.set('active-version', version).save();
                    activeVersion = version;
                }
            } catch (e) {
                // ignore error
            }
        }

        return activeVersion;
    }
Instance version

@property version
@type string
@public