Documents & filesYandex Disk
Yandex Disk CLI changelog
Read Yandex Disk CLI release notes, including new capabilities, changes and fixes.
Notable changes to @wirecat/yandex-disk-cli. One section per version, newest first.
0.5.0 — 23.11.2026
Added
- Earlier versions of every synced file, and a change log (cli-core 0.722.0, was 0.711.0; cli-base 0.128.0, was
0.122.0). Sync keeps a document's text, title and front matter before each change and before it leaves the copy.
documents history <document>lists the versions and--revision <n>shows one.changes --since 1dlists what was added, changed, no longer visible or came back. Both read the copy, so agents get them over MCP too (usage). keep_versions_for_days, 365 by default, for a profile ordefaults. A sync that finishes its pass drops older versions and change log rows (configuration).- Edit a file on the Disk where it is.
files updatereplaces a text file's whole text,files sheets showandfiles sheets updateread and write an.xlsx's cells, andfiles documents showandfiles documents updateread and change a.docx's paragraphs, keeping the rest of the file as it is. Each edit takes the file'ssha256as--expected-fingerprintand asks asfiles.deletedoes. The file is checked just before the write, and what it replaced is kept on this computer; a file changed since it was read is aconflict, with nothing uploaded.files historylists what the edits replaced, andfiles restore <path> <version>puts one back. See edit a file on the Disk and edit a file with your agent. - A mirror merges a text file changed on both sides. A
.md,.markdown,.txt,.csvor.tsvfile up to 1 MB edited here and on the Disk in different places is merged line by line and written to both sides; the answer lists it undermerged. Changes on the same or neighbouring lines stay a conflict. See a file changed on both sides. mirrors conflicts list|show|resolve. See each conflict a sync left, its three versions and the lines that conflict, and settle it on both sides at once with--keep local|disk|bothor the final file (--file, for you only). A side that changed since is refused with nothing written.mirrors sync --allow-replacements <count>lets one run replace up to that many existing files when the guard stops it;--replacestill allows any number.- A whole-Disk sync goes on listing where the last run stopped. A Disk too big to list in one run is listed over
several, so each run is the usual length; the stopped answer says to run it again instead of asking for more
time, and
listedshowsresumedandso_far. A folder's mirror still lists from the start each run. files restoretakes a version fromfiles historyas well as a path in the trash.- Requires
@wirecat/cli-core0.722.0 and@wirecat/cli-base0.127.0. files showandfiles listgive each file'smd5andsha256, so an agent can tell whether a file changed since it read it.files downloadgives thesha256beside the file's whole text only: a text it cut or read out of a PDF, docx or xlsx hassha256: null, so it cannot be written back over the file.- A cut text says so in the help and the terminal.
files downloadwithout--outputstill answers at most 200,000 characters withtruncated: true; its help, usage and a terminal warning now say never to write a cut text back over the file.
Fixed
- A file sync no longer finds keeps its text. It leaves lists and search, is marked no longer visible, and comes back as it was when the Disk shows it again. Before, sync blanked its text as if it were deleted, though the Disk cannot tell sync a deletion from a move or a lost share.
0.4.0 — 19.11.2026
Added
- Mirror the whole Disk.
mirrors add / ~/YandexDiskkeeps the whole Disk in a folder of its own, read with Yandex's flat file list, up to 100,000 files. See the whole Disk. - Leave folders out of a mirror.
mirrors add --ignore <path>(repeated, a path or a glob) andmirrors update <id> --ignore <path>…adds to the list, and--clearempties it first. An ignored path is never deleted on either side: ignoring one trashes nothing, and one no longer ignored syncs as a new folder. See leave folders out. - A sync checks free space first. It stops with
mirror.no-spacewhen its downloads and the versions it keeps would leave too little free: a tenth of what it writes, at least 100 MB and at most 1 GB. ydisk <profile> files serve [path]shows a Disk folder, or the whole Disk, as a read-only folder on this computer. It serves the folder over WebDAV on 127.0.0.1 behind a random address made for each run, and the system's own client mounts it:gio mounton Linux, Finder on macOS,net useon Windows. Nothing can write, rename or delete on the Disk through it. It runs until Ctrl-C, is never offered to agents over MCP, and is refused wherefiles.downloadis denied (mount).
Changed — may break callers
- Many changes at once always wait for your approval. A sync stops before more than 10 deletions or more than 50
replacements of existing files, however big the mirror (40 deletions out of 1,000 files used to pass). The error
names the counts and the exact command;
--replacejoins--allow-deletions, both for you only, never for an agent over MCP, and both need the mirror's id when you have more than one. A stopped mirror no longer holds up the others, andmirrors watchreports the stop at every cycle that syncs the mirror. See many changes at once. - A deletion on a busy Disk is still proven. A file missing from the listing is deleted here only once the Disk, asked for it by its path after the listing, has nothing there. The listing is no longer read up to three times while the Disk changes, so a phone uploading photos no longer blocks every deletion.
- The home folder is never mirrored, even when the CLI's own folders are moved out of it.
- Requires
@wirecat/cli-core0.711.0.
Fixed
mirrors addrefuses a drive root on Windows, such asD:\, even on a drive that holds no home folder.mirrors syncno longer fails after 30 seconds on a big Disk. It may run 15 minutes in a terminal and 45 seconds for an agent, stops before that on its own, keeps what it did and answers partial: each mirror says how many Disk files it listed and whether the listing was complete, andnextnames the run that goes on. A listing cut short deletes nothing: the Disk files it did not reach are counted inunlisted.mirrors previewmay list for 5 minutes in a terminal and 45 seconds for an agent, and fails withtimeoutand the cut plan when the listing does not fit.- A page of the whole-Disk listing may take 2 minutes instead of 30 seconds.
0.3.0 — 19.11.2026
Added
- Mirrors: a local folder and a Disk folder kept the same, both ways.
mirrors add <disk folder> <local folder>, thenmirrors sync, ormirrors watchto keep syncing. A change on one side is copied to the other; a file changed on both sides is reported and settled with--keep local|disk|both. A deletion goes to the other side's trash, the Disk's or.wirecat-trash/in the folder, and only when the sync can prove it: a file missing from an incomplete listing, or from a folder that was replaced, is never deleted.mirrors previewshows the plan, and a run that would delete many files waits for--allow-deletions. See mirrors. mirrors versions list|restore: the version a sync replaced or deleted, on your computer or on the Disk, is kept for 30 days and can be put back.
Fixed
folders listnames each chosen folder and gives its Disk path, not only its id.api public-settings-updateno longer reports a write it could not confirm when the Disk answers with no body.- The token steps suggest an app name like
My laptop.
0.2.0 — 18.11.2026
Added
ydisk store infoshows the shared store's file, size, format and row counts, so WireCat Desktop can say whether Yandex Disk reads it.ydisk <profile> account remove --keep-data|--delete-datasigns the profile out and forgets it on this computer. It keeps or deletes the chosen folders and the synced files.folders browsegives each folder akindand ahas_children. Yandex gives no child count, so it looks inside each folder, one request each, when the level has 20 folders or fewer; with more,has_childrenisnull.
Fixed
- Published from GitHub Actions with npm provenance, so WireCat Desktop installs it: Desktop refuses a built-in tool's release that its own repository's workflow did not build, and 0.1.0 was published from a computer.
- The guides cover what the tool does, step by step. New pages: find a document (words,
word forms, meaning, file names), connect your agent (the skill,
mcp add,mcp config, browser apps and what an agent may change), recipes and compared with other tools. Install and sign in walks through getting the Yandex token with Yandex's own labels, troubleshooting is by symptom with the exit codes, and security says what stays on your computer and how to remove it. The token steps now name the app type "For API access or debugging", as Yandex's pages do. - The help and the error of
--cursorinfolders browseandfiles listnamepage.next_cursor, the key the answer has, notpage.next.
0.1.0 — 17.11.2026
Added
- Started from
@wirecat/cli-template0.25.0. - Sign in with a Yandex OAuth token pasted once:
session startreads it hidden or from stdin, checks it withGET /v1/diskand keeps it in the system keyring;session status --checkanddoctor --onlinesay whose it is. - Chosen Disk folders as searchable text:
folders add <path>,sync,status,documents list|show|export,search,catalog, tags, notes and memories, cli-core's shared documents commands. Each sync walks the chosen folders again (the Disk API has no change feed) and reads only files whose MD5 changed; a moved file keeps its id, tags and notes. Text from PDF, docx, xlsx, CSV, TSV, text and Markdown. Times are kept and answered in UTC. - The files live:
files list|show|download|upload|copy|move|create|delete|restore|publish|unpublish, by Disk path.files deletemoves to the trash.--replaceandfiles deleteask asfiles.deletedoes,files publishasfiles.sharedoes, and--dry-runshows each key the write checks.files publishanswers the public link, or leavespublic_urlout when it cannot read it back. Downloads and uploads go to the address Yandex gives, without the token. api: one command per operation of Yandex's Swagger 1.2 description, 20 in all. The three that answer a download or upload link are left out, and a resource'sfile,previewandsizeslinks are taken out of every answer.--allpages where the API pages. A permanent delete,overwrite=trueand a public link ask byfiles.deleteandfiles.share. An operation that does what afilescommand does also checks that command's key:files.move: denystopsapi resources-movetoo, in the run and in--dry-run.