Skip to main content

Browsing and reading

  • zd ls [path] [-R] [--json] (alias list) lists folders quickly (zd ls Projects/2026 -R --json).
  • zd tree [path] [--depth N] [--dirs-only] prints a folder tree (zd tree Clients --depth 3 --dirs-only).
  • zd size [path] [--json] totals files and bytes from cloud metadata.
  • zd cat <path> [--lines N-M] [--head N] [--tail N] [--bytes OFFSET-END] (alias read) reads exact slices without downloading whole files.
  • zd find <pattern> [path] [--json] matches filenames in the cloud (zd find "*.mp4" Renders --json).
  • zd grep <query> [path] searches text inside files with line numbers.

Transfers and sharing

  • zd cp <src> <dst> (alias copy) multi-stream upload, download, or cloud copy (ending <dst> with / copies into that folder).
  • zd mv <src> <dst> [--symlink] [--resume] (alias move) moves inside the vault (200 files/step, share links stay working), or uploads locally with --symlink, clears empty folders safely, and leaves a shortcut inside ~/ZeroDrive/My Drive/<dst>.
  • zd share <path> [--hours N] [--json] (alias link) creates a download link (1 to 168 hours, default 24).
  • zd symlinks [--json] verifies active local shortcuts.

Duplicates, versions, and drives

  • zd duplicates [path] [--json] [--remove] [--keep PATH] (alias dupes) scans identical files read-only by default. --remove requires typing REMOVE or DELETE interactively.
  • zd versions <path> and zd restore-version <path> <version> inspect and restore File Version History.
  • zd drives <action> manages drives (list, create, rename, delete, deleted, restore).

Status and health

  • zd status [--json] checks mount state, free SSD space, cache size, pending uploads, and moves.
  • zd refresh [path] [-R] [--json] (alias sync) refreshes Finder or Explorer listings.
  • zd doctor [--json] (alias check) tests /mcp, /v1/health, OAuth discovery, vault access, and desktop mount health.