Shell argv quote

shell-argv-quote · version 1.0.0 · Developer tools · free, no key needed

Quote inert argv strings for POSIX sh or PowerShell 7, returning a command and its per-argument fragments.

Use when you need to: quote argv for POSIX shell · escape command arguments for sh · quote argv for PowerShell 7.

Decide before calling

Read the versioned contract and the supported scope below. Reuse shell-argv-quote@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use shell-argv-quote@1.0.0 for quote argv for POSIX shell. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "profile": "posix-sh",
  "argv": [
    "printf",
    "%s\\n",
    "it's ready",
    ""
  ]
}

Response:

{
  "result": {
    "command": "'printf' '%s\\n' 'it'\"'\"'s ready' ''",
    "fragments": [
      "'printf'",
      "'%s\\n'",
      "'it'\"'\"'s ready'",
      "''"
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "shell-argv-quote",
  "version": "1.0.0",
  "input": {
    "profile": "posix-sh",
    "argv": [
      "printf",
      "%s\\n",
      "it's ready",
      ""
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/shell-argv-quote/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"profile":"posix-sh","argv":["printf","%s\\n","it'\''s ready",""]}'

The machine-readable contract is at /v1/tools/shell-argv-quote/versions/1.0.0.

CLI

node cli.mjs run shell-argv-quote 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.