Evaluate a cli command
POSThttps://localhost:8900/cli/evaluate
This method can be used to analyze if the command can be interpreted without executing it. When this method returns a 200 OK, the command can be parsed and evaluated.
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
- 300
When the command can be evaluated.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
property name* any
[
{}
]
When the command can not be evaluated.
- text/plain
- Schema
Schema
string
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://localhost:8900/cli/evaluate' \
-H 'Content-Type: text/plain' \
-H 'Accept: application/json' \
-d ''