Read-only server commands to run
server_discovery_commandsGenerates read-only root commands to gather Plesk/OS, processes, ports, nginx, document root, Git status, env names, databases, crontabs, and .env/.git exposure when direct access isn't available.
Instructions
Returns the block of read-only commands for the user to run as root on the Plesk server and paste back (phase 2): Plesk and OS, who runs the app (PM2 as root and as the domain user, systemd), listening ports and nginx directives, the document root, git status of the app folder, env file NAMES only, databases, crontabs, and whether .env/.git are exposed. Values you know are filled in; unknown ones stay as . It runs nothing and connects to nothing. Use it when you can’t reach the server yourself, or before server_discover.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | The app name used by the release manager (<app>-deploy, /etc/<app>/) | |
| domain | Yes | The site domain, e.g. example.com | |
| app_dir | No | The folder the app runs from today, if known | |
| env_file | No | The path of the app's current .env on the server, if known | |
| system_user | No | The domain's system user (Plesk subscription), if known | |
| pm2_processes | No | PM2 process names, if known |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | Yes | ||
| commands | Yes |