NinjaSurfer Docs / CLI --json output ← Back to the site
Docs · CLI --json output

ninjasurfer --json output

--json prints one JSON document on stdout; progress, notes and warnings go to stderr, so stdout always parses. A workspace profile's --json is the same object the MCP tool of the same name returns (profile_create, profile_update): the command line, MCP and the app are one contract.

The shapes below are stable. A field is never renamed, removed or given another meaning without a Breaking line in the CHANGELOG. New fields may be added. Each block marked cli-json: is checked against the real output, key for key, by the test suite, so this page and the command cannot drift apart.

No output ever shows a proxy's password, its IP change link, its CA or a provider's keys: a proxy shows hasPassword, hasRotateUrl and hasCa instead.

profile create (workspace)

ninjasurfer profile create NAME --scope workspace --persona-os win|mac|android|ios [--proxy URL | --proxy-file FILE | --proxy-id ID] [--proxy-ca PEM-FILE] --json

json
{
  "scope": "workspace",
  "profile": "0b5f3a52-9d0e-4c4b-8f39-6c1a2e7d4b11",
  "id": "0b5f3a52-9d0e-4c4b-8f39-6c1a2e7d4b11",
  "name": "shop-1",
  "title": "shop-1",
  "persona_os": "win",
  "engine": "chromium",
  "local_id": "5d1c0f6e-2a47-4b8e-9c33-0e6f1a2b7c90",
  "server_linked": true,
  "proxy_id": "8f2e…",
  "proxy": { "id": "8f2e…", "name": "px.example.net:1080", "scheme": "socks5", "host": "px.example.net", "port": 1080, "username": "alice",
             "hasPassword": true, "hasRotateUrl": false, "provider": null, "hasCa": false, "tags": [], "color": null,
             "created": "2026-12-02T00:00:00.000Z", "lastCheck": null },
  "fonts": { "state": "preparing", "percent": 0 }
}

profile update (workspace)

ninjasurfer profile update PROFILE --scope workspace [--timezone TZ] [--locale L | --no-locale] [--proxy URL | --proxy-file FILE | --proxy-id ID | --no-proxy] [--proxy-ca PEM-FILE] --json

json
{
  "scope": "workspace",
  "id": "0b5f3a52-9d0e-4c4b-8f39-6c1a2e7d4b11",
  "name": "shop-1",
  "settings": { "network": { "kind": "proxy", "proxyId": "8f2e…" } },
  "card": null,
  "proxy_id": "8f2e…",
  "proxy": null
}

profile update (local)

ninjasurfer profile update PROFILE --scope local … --json

json
{ "scope": "local", "id": "5d1c0f6e-2a47-4b8e-9c33-0e6f1a2b7c90", "name": "alice" }

A proxy

Every proxy above (and MCP's workspace_list kind proxy and proxy_save) shows a workspace proxy this way:

json
{ "id": "8f2e…", "name": "px.example.net:1080", "scheme": "socks5", "host": "px.example.net", "port": 1080, "username": "alice",
  "hasPassword": true, "hasRotateUrl": false, "provider": null, "hasCa": false, "tags": [], "color": null,
  "created": "2026-12-02T00:00:00.000Z", "lastCheck": null }

provider is null for a proxy entered by hand; for one bought from a provider it names the provider with its inputs, and any key or password in them reads (set).

Local profiles

profile create (local) and profile info print a local profile's info view, and profile list an array of them: the manifest (profiles.md, Manifest) with the proxy password removed, plus its launch settings and route_state.