1.0.0-beta • Published 6 months ago
executer v1.0.0-beta
Executer
executer
is a CLI tool for remote command execution on servers. It supports executing commands via SSH, REST API, and within Docker containers.
Installation
To install executer
, you can run:
npm install executer
Usage
SSH Command
Execute a command on a remote server via SSH:
executer ssh <host> <username> <password> <command>
Example:
executer ssh 192.168.1.1 user password "ls -la"
REST Command
Execute a command on a remote server via REST API:
executer rest <url> <method> [data]
Example:
executer rest https://api.example.com GET
executer rest https://api.example.com POST '{"key":"value"}'
Docker Command
Execute a command within a Docker container:
executer docker <container> <command>
Example:
executer docker my-container "echo Hello, World!"
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.