Systemd .env parse

systemd-env-parse · version 1.0.0 · Structured formats · free, no key needed

Parse a systemd EnvironmentFile into assignments, a last-wins map, and duplicate keys.

Use when you need to: parse systemd environment file · read systemd EnvironmentFile assignments · systemd environmentfile quoting rules.

Decide before calling

Read the versioned contract and the supported scope below. Reuse systemd-env-parse@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 systemd-env-parse@1.0.0 for parse systemd environment file. 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:

{
  "text": "NAME=Ada\nCITY=Tel Aviv\n"
}

Response:

{
  "result": {
    "assignments": [
      {
        "key": "NAME",
        "value": "Ada",
        "line": 1
      },
      {
        "key": "CITY",
        "value": "Tel Aviv",
        "line": 2
      }
    ],
    "variables": {
      "NAME": "Ada",
      "CITY": "Tel Aviv"
    },
    "duplicate_keys": []
  }
}

How to call it

MCP

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

{
  "id": "systemd-env-parse",
  "version": "1.0.0",
  "input": {
    "text": "NAME=Ada\nCITY=Tel Aviv\n"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/systemd-env-parse/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"NAME=Ada\nCITY=Tel Aviv\n"}'

The machine-readable contract is at /v1/tools/systemd-env-parse/versions/1.0.0.

CLI

node cli.mjs run systemd-env-parse 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.