Skip to main content

Global flags

You can also run nylio help <command> to view help for any command:

Auth

Workspaces

Documents

Create a personal document. If you omit --title, the document defaults to “Untitled document”. You can pass the initial body as a positional argument, with --markdown, or piped through --stdin:
List documents:
Fetch a document by id or Nylio URL:
Apply one exact string replacement to a personal document. You can read either oldString or newString from stdin, but not both in the same call:
Preview a write without sending it:
Replace the full enhanced markdown body:
Preview a full replace without sending it:
Export one document:

Write-safety rules

  • documents edit performs one replacement per call.
  • documents edit supports at most one stdin-backed field (--old-string-stdin or --new-string-stdin) per invocation.
  • Write commands are scoped to personal documents owned by the authenticated user.
  • documents replace expects Nylio enhanced markdown, not plain rich-text HTML.