UNPKG

@digicms/cms

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

24 lines (15 loc) 505 B
'use strict'; const CLITable = require('cli-table3'); const chalk = require('chalk'); const strapi = require('../../index'); module.exports = async function () { const appContext = await strapi.compile(); const app = await strapi(appContext).register(); const list = app.container.get('services').keys(); const infoTable = new CLITable({ head: [chalk.blue('Name')], }); list.forEach((name) => infoTable.push([name])); console.log(infoTable.toString()); await app.destroy(); };