AI

Generate a Terminal Command

Turns a natural language request into shell command suggestions for the given session, without executing any of them.

post/ai/command

Request

  • Base URL: https://docs.nexterm.dev/api
  • URL: https://docs.nexterm.dev/api/ai/command
  • Auth: HTTP bearer

Request body

sessionIdstring required

Session id

promptstring required

Prompt (1-2000 characters)

shellstring nullable

Shell (maximum 100 characters)

rejectedstring[]

Rejected

Response

The generated command suggestions

object required

Changes

No recorded changes to this operation across all 1 revision of this API.