add path api to CLI

This commit is contained in:
Gabriel Pastori
2023-11-19 15:01:19 -03:00
parent e5e6e27dbc
commit f28fbfcea0
10 changed files with 207 additions and 62 deletions

View File

@@ -1,21 +1,31 @@
module.exports = () => {
// welcome message
console.log(`👋 Welcome to evolution-manager CLI!`)
// Welcome message
console.log(`👋 Welcome to evolution-manager CLI!`);
// help message
console.log(`📋 Available commands:`)
console.log(` help`)
console.log(` server`)
console.log(` - start [--port=9615]`)
console.log(` - build`)
console.log(` pm2`)
console.log(` - setup`)
console.log(` - start`)
console.log(` - stop`)
console.log(` - restart`)
console.log(` - delete`)
// Help message
console.log(`📋 Available commands:`);
// Server commands
console.log(`\nServer:`);
console.log(` help`);
console.log(` server`);
console.log(` - start [--port=9615]`);
console.log(` - build`);
// spacing
console.log(`\n`)
}
// PM2 commands
console.log(`\nPM2:`);
console.log(` pm2`);
console.log(` - setup`);
console.log(` - start`);
console.log(` - stop`);
console.log(` - restart`);
console.log(` - delete`);
// API commands
console.log(`\nAPI:`);
console.log(` api`);
console.log(` - setup (Install the manager inside the Evolution Manager in path /manager)`);
// Spacing
console.log(`\n`);
};