Execute a cli command
POSThttps://localhost:8900/cli/execute
The body defines the command to execute. The command is executed and the result is returned to the client. Request and execution are synchronized: the request is done, when the command is done.
Request
Query Parameters
env object
All search parameter form the environment passed to the CLI interpreter.
- text/plain
Body
The command will be sent as request body. A command can contain multiple command line separated by semicolon. Every single line can contain multiple commands that are combined via the pipe operator.
string
Responses
- 200
The result of the command.
- application/json
- application/x-ndjson
- Schema
- Example (from schema)
Schema
Array [
]
property name* any
[
{}
]
- Schema
- Example (from schema)
Schema
Array [
]
property name* any
[
{}
]
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://localhost:8900/cli/execute' \
-H 'Content-Type: text/plain' \
-H 'Accept: application/json' \
-d ''