mirror of
https://github.com/EvolutionAPI/evolution-manager.git
synced 2025-12-19 03:22:18 -06:00
2.1 KiB
2.1 KiB
Evolution-Manager CLI
Description
The Evolution-Manager CLI is a command-line tool designed to manage servers, PM2 processes, and interact with the "evolution-api" project.
Installation
To install the Evolution-Manager CLI, run the following command:
npm install -g evolution-manager
Available Commands
General
help: Displays a list of available commands. Refer to this document for additional details on each command.
Server
server start [--port=9615]: Starts a temporary server in the terminal, ideal for local use. The--portparameter allows specifying the port, with9615as the default.server build: Executes the server build but does not start it. (Currently without specific use).
PM2
Interacts with PM2 to manage Evolution Manager processes:
pm2 setup: Configures PM2 to host the Evolution Manager. Automatically installs PM2 if not present.pm2 start: Starts the Evolution Manager process in PM2.pm2 stop: Stops the Evolution Manager process in PM2.pm2 restart: Restarts the Evolution Manager process in PM2.pm2 delete: Removes the Evolution Manager process from PM2.
API
The API section of the Evolution-Manager CLI includes various functions for managing the installation and versions of the Evolution Manager within the API. The available commands are:
setuporinstall: Installs the manager inside the Evolution API at the path/manager. This command can also be accessed using the shorthandi.uninstall: Uninstalls the manager from the Evolution API.changeVersionorcv: Switches to a specific version of the Evolution API, whether newer or older. Example usage:changeVersion --v=1.5.0.
These commands provide a flexible and powerful command-line interface for managing the versions and configuration of the manager in your Evolution API installation.
Typical Usage Flow
- Install the CLI globally.
- Use
helpto view available commands. - Use PM2 commands to host the Evolution Manager.
- Run
server startfor a local temporary server. - Within the "evolution-api" installation, use
api setupto update to the new manager.