UNPKG

@strapi/strapi

Version:

An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite

16 lines (13 loc) 455 B
import { createCommand } from 'commander'; import { version } from '../../../package.json.mjs'; /** * `$ strapi version` */ const command = ()=>{ // load the Strapi package.json to get version and other information return createCommand('version').description('Output the version of Strapi').action(()=>{ process.stdout.write(`${version}\n`); process.exit(0); }); }; export { command }; //# sourceMappingURL=version.mjs.map