Documents and 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.11.0 — 28.11.2026
Added
- WireCat Desktop reads the MCP port and the sign-in from ydisk itself. The manifest (
ydisk --wcat-describe) now names the fixed MCP port 8760 and the OAuth token sign-in, with the token passed on stdin. Desktop reads them from the tool and keeps its own list only as a fallback. Built on cli-base 1.2.0.
Fixed
- ydisk's package is smaller: it no longer carries its own copy of cli-core. Built on @wirecat/cli-core 3.0.0 and @wirecat/cli-base 2.1.1. Needed for the WireCat store version 79 (memo became wcat).
0.10.0 — 27.11.2026
Changed — may break callers
- On cli-core 2.0.0. An agent is
agent:<id>and a sender botbot:<id>in the JSON output, and the shared store moves to version 78 on first open. Upgrade every WireCat CLI and WireCat Desktop the same day: a CLI on cli-core 1.x refuses the store after that.
Fixed
- A sync and
files readread a file up to 10 GB, not 50 MB. A larger PDF or document was kept by name only ("file is larger than 50 MB"). The limit is cli-core's shared file budget:MESSAGING_ATTACHMENT_MAX_MIBsets another one, in MiB (usage). A file kept by name for its size is read on the next sync. A file is read whole into memory, so a large one needs that much free memory.
0.9.0 — 26.11.2026
Added
session startprints how to get a Yandex OAuth token before it asks for one at a terminal, and its--helpends with the same steps.- A read is sent again after a retryable failure (HTTP 5xx, 429, a dropped connection), with the profile's pace
and at most 60 s of waiting in all, through cli-base's
retrying. A write is sent again only after a 429, which refused it. Any other failure of a write is stilloutcome_unknown.
Changed — may break callers
sessionandmirrorsare cli-core's own commands now (cli-core 1.3.0). ydisk mountstokenSessionCommandandfileMirrorsCommandinstead of its own copies, socommands --jsongives themorigin: "cli-core". A token kept by an earlier version still signs the profile in: the keyring entry is the same, so nobody signs in again. Mirrors keep theirmirrors.json, state and versions where they were.session start --jsonandsession status --check --jsongive the account at the top level. Theuserobject is gone:item.user.id,item.user.loginanditem.user.nameare nowitem.id,item.loginanditem.name, as in the other WireCat CLIs that sign in with a token.doctor --onlinekeeps itsuser.session listrows havestate(saved,missing, orunknownwithsigned_in: nullwhen the keyring cannot be read), besidesigned_inandtoken_from.mirrors previewmarks a planned path under the sourceplan.pathin a scheduled agent's run, notpath. It also marks the paths of uploads, downloads, merges, renames, conflicts and errors.
0.8.0 — 26.11.2026
Changed — may break callers
- Built on cli-core 1.0.0 and cli-base 1.0.0. The generated API files read their types from
@wirecat/cli-base/codegen/runtime. Store version 73 comes with cli-core 1.0: once a 1.0 tool opens the store, a 0.x tool refuses it, so upgrade every WireCat CLI together.
Fixed
- Over MCP, a Disk path stays a Disk path.
filespaths and--folder,mirrors add's Disk folder,--ignoreandmirrors versions' path are marked as not local, so the server no longer makes them absolute against the client's folder or checks them as files on this computer. A local file, likefiles upload <file>orfiles download --output, is still checked.
0.7.1 — 25.11.2026
Fixed
- A scan of a page lying on its side is now read. Local OCR (
read_scans: local) turns the page first, so its text is found by search instead of coming out garbled. Scans read before are read again once, at the next sync. Without tesseract's orientation data (apt install tesseract-ocr-osd) a scan reads as before, and the sync warns withdocument.scan-unturned(cli-core 0.750.0, was 0.742.0, see scans and pictures). - In a scheduled agent's run, every text of an
apianswer is marked untrusted, ids included, not only names and paths (cli-core 0.746.0). A marked id an agent copies into its next command still works: the run takes the mark off.
0.7.0 — 24.11.2026
Added
- A sync reads the text of scans and pictures (cli-core 0.742.0, was 0.739.0). A PDF with no text layer and a
JPEG, PNG or WebP picture are read by OCR, chosen by the profile's
read_scans:localby default (thetesseractprogram on your computer, Russian and English, nothing downloaded),anthropicoropenai(theai setmodel at that provider's own address, with pictures allowed, each page sent to it and paid per page), oroff. At most 20 pages a file and 100 a sync. A scan an older ydisk kept by name is read on the next sync, and a sync with notesseractsays how to install it (scans and pictures). - More formats are read (cli-core 0.739.0, was 0.737.0): Word 97–2003
.doc, PowerPoint.pptx, OpenDocument.odt,.odsand.odp, RTF, HTML and EPUB, beside PDF,.docx,.xlsx, CSV, TSV, plain text and Markdown. A file an earlier version kept by name only is read on the next sync (usage). - A sync lists four Disk folders at once, so a sync of many folders takes less time. It stays within the 120 requests a minute ydisk sends to Yandex.
files sheets createmakes several sheets, formulas and bold cells.--valuesalso takes[{"name": "Budget", "header": true, "rows": [...]}], and a cell may be{"formula": "SUM(B2:B3)"}or{"value": "Total", "bold": true}. A text that starts with=stays text. Rows as before keep working (commands).files documents createmakes bold and italic text and tables.--payloadalso takes{"text", "bold", "italic"},{"runs": [...]}and{"table": [["Item", "Cost"], ["Rent", "950"]], "header": true}.[{"text", "style"}]keeps working (commands).
Changed — may break callers
- A file without a public link is replaced under the Disk's own check.
files update,files sheets update,files documents update,files restore <path> <version>and a mirror's push of a changed file send the new content to a hidden file next to it, move the old file to the Disk's trash at the content that was read (the Disk refuses with 409 when the file changed since), and give the hidden file its name. Before, the file was read just before the upload, and a change in that moment was overwritten. The file now gets a newresource_id, and the Disk's own version history of it starts over; the old content is in the Disk's trash, which Yandex's help says takes up space for 30 days. Its synced copy moves to the new id, so its tags, the notes about it and its links follow it; when the local store cannot be reached the write still happens, with a warning. A file with a public link is still overwritten in place after the read, so its link stays (usage, mirrors).
Fixed
- A scheduled agent reads other people's Disk names, paths and text marked. In a run locked read-only with a mark
(
YDISK_READ_ONLY=1andYDISK_UNTRUSTED_MARK),files list,files showandfiles downloadmark each name, path and read text,mirrors previeweach planned path and rename target, and theapigroup's operations the names and paths in the raw answer. A shared folder's files are named and written by whoever shares it. cli-core's shared commands (documents,search,folders list|browse,catalog,files sheets|documents show,mirrors conflicts show) already marked theirs. Outside such a run no answer changes. A marked path is passed back to afilescommand without the markers. Not marked yet:mirrors conflicts list(cli-core's), andfiles serve, which shows the Disk as a folder rather than an answer. - Requires
@wirecat/cli-core0.742.0 and@wirecat/cli-base0.132.0.
0.6.0 — 24.11.2026
Added
- New Excel and Word files (cli-core 0.737.0, was 0.724.0).
files sheets create <path> --values <json rows>makes a new.xlsx, andfiles documents create <path> --payload <json paragraphs>a new.docx. Each writes a new file only, refuses a path that is already there (office.file-exists), and answers thesha256thatupdatetakes next (usage).
Fixed
mirrors conflicts resolveruns inside the command's run.--timeoutnow bounds it,--recordkeeps a run for it, and its Disk requests are in that run. Before, it reached the Disk outside any run.- Synced and edited files keep their earlier versions for
keep_versions_for_days. The mirrors' version stores, and the onefiles update,historyandrestoreuse, dropped versions after 30 days, whatever the setting said. They now keep them for the profile'skeep_versions_for_days, one year by default, as configuration says. - An Office edit that is refused says why. A formula cell, a wrong format or a missing sheet now answers its own
reason, such as
office.formula-cell, in place ofinput.invalid. - The docs say where to revoke the Yandex token.
session endremoves the token from this computer only, and it stays valid at Yandex. Security, the installation guide and troubleshooting now name Yandex ID's Data access page, where you remove the app to revoke it. changes --since <time>and--until <time>in help (cli-core 0.724.0, was 0.722.0, and cli-base 0.130.0, was 0.128.0).--untilsaid<when>. The flags take the same values as before. The vocabulary now knowschanges,--sinceand--event, so the command lint needs no exceptions for them.session endsays where to revoke the token. Its help said the token stays valid at Yandex but not where to revoke it. It now names Yandex ID's Data access page, where you remove the app the token was issued for.
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.