Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Usage Examples

realkarmakun edited this page Mar 14, 2023 · 3 revisions

Send commands

Send command list to panel server with ID ad332323

pteroctl command list -s ad332323

You can specify multiple servers on most commands to run against by iterating them with comma. So to send command stop to servers ad332323 and bb585fb5 you need the following:

pteroctl command stop --servers ad332323,bb585fb5

pteroctl command has proactive behaviour. It sends the command without checking the results of said command. If you need more reactive behaviour look into Conditional Commands (WIP).

File management

Remove file/directory

You can delete remote file resource (either file or directory) with path file/to/delete for server ad332323 the following way:

pteroctl file rm file/to/delete -s ad332323

Note that pteroctl file commands consider /home/container/ as root path, so paths to needed resources need to be specified relatively to it. Meaning that actual path to file from example would be /home/container/file/to/delete.

Upload file

pteroctl file -s ad332323 local/path/to/file remote/path/
Clone this wiki locally