doc and other commands

This commit is contained in:
Gabriel Pastori
2023-11-19 16:31:24 -03:00
parent f28fbfcea0
commit c66cd1ad7a
14 changed files with 289 additions and 77 deletions

View File

@@ -1,31 +1,34 @@
module.exports = () => {
// Welcome message
console.log(`👋 Welcome to evolution-manager CLI!`);
console.log(`👋 Welcome to the evolution-manager CLI! Explore the power of managing your server and API with ease.`);
// Help message
console.log(`📋 Available commands:`);
console.log(`📘 Here's what you can do with evolution-manager CLI:`);
// Server commands
console.log(`\nServer:`);
console.log(` help`);
console.log(` server`);
console.log(` - start [--port=9615]`);
console.log(` - build`);
console.log(`\n🖥️ Server Commands:`);
console.log(` help - Get help and command summaries`);
console.log(` server - Manage your server`);
console.log(` - start [--port=9615] - Start the server on a specific port`);
console.log(` - build - Build the server environment`);
// PM2 commands
console.log(`\nPM2:`);
console.log(` pm2`);
console.log(` - setup`);
console.log(` - start`);
console.log(` - stop`);
console.log(` - restart`);
console.log(` - delete`);
console.log(`\n🔄 PM2 Management:`);
console.log(` pm2 - Control your PM2 processes`);
console.log(` - setup - Set up a PM2 process`);
console.log(` - start - Start a PM2 process`);
console.log(` - stop - Stop a PM2 process`);
console.log(` - restart - Restart a PM2 process`);
console.log(` - delete - Delete a PM2 process`);
// API commands
console.log(`\nAPI:`);
console.log(` api`);
console.log(` - setup (Install the manager inside the Evolution Manager in path /manager)`);
console.log(`\n🔗 API Interaction (Run these inside the Evolution API folder):`);
console.log(` api - Manage your Evolution API`);
console.log(` - setup - Install the manager at /manager in the Evolution API`);
console.log(` - uninstall - Uninstall the manager from the Evolution API`);
console.log(` - changeVersion --v=1.5.0 - Change to a specific version of the Evolution API`);
// Spacing
console.log(`\n`);
// Documentation link and disclaimer
console.log(`\n📚 For complete documentation, visit: https://github.com/gabrielpastori1/evolution-manager`);
console.log(`\n Disclaimer: This evolution-manager CLI project is independent and not affiliated with the evolution-api project.`);
};