CLI Commands
hyperfile login
Authenticate with your Hyperfile account via browser-based OAuth.
hyperfile logout
Remove stored credentials.
hyperfile sync
Sync a local directory with a remote filesystem. See Sync for details.
hyperfile ls
List files in a remote filesystem:
hyperfile ls --fs <uid> [path]
hyperfile upload
Upload a single file:
hyperfile upload ./file.pdf --fs <uid> --path /documents/
hyperfile download
Download a file to your local machine:
hyperfile download --fs <uid> --path /documents/file.pdf -o ./file.pdf
hyperfile fs site snapshot
Save what your site publishes as a snapshot, which any of its addresses can serve in place of the live files — keep your custom domain on a reviewed version while the subdomain shows your latest edits. Snapshots need the filesystem to keep every version of its files; --keep-all-versions switches that on first. --domain serves the new snapshot on that address straight away. Taking a snapshot and pointing an address at one need a Personal or Team plan; listing, deleting and switching back to live do not. Up to 20 per site:
hyperfile fs site snapshot create --fs <uid> [--domain <hostname>] [--keep-all-versions]
hyperfile fs site snapshot list --fs <uid>
hyperfile fs site snapshot delete <snapshot-uid> --fs <uid> [-y]
Choose what one address serves, a snapshot or live:
hyperfile fs site domain edit --fs <uid> --domain <hostname> --serve live|<snapshot-uid>
A snapshot an address still serves cannot be deleted; point that address elsewhere first.
hyperfile markdown lint
Check Markdown files and chart files on your own disk, with the same checks and findings as the MCP lint_file tool and the editor, except for size, depth and where paths are looked up. A Markdown file is checked up to 100 MB here and 1 MB there, and a document lint_file finds too complex to lint is checked here, as the editor checks it. Charts are checked in full, as the editor and the preview check them, where lint_file checks each one's format and its first few values. And the paths a document names are looked up on disk, under the root. A YAML body nested too deep is declined by all three, and a declined one is a finding in lint_file but a note here, never counted. It never goes online, so it works on files you have never uploaded:
hyperfile markdown lint <paths…> [--root <dir>] [--strict] [--json]
Paths can be files, folders or globs; quote a glob ('docs/**/*.md'), or the shell expands it before the command sees it. A folder is walked for Markdown files (.md, .mdx, .markdown), always skipping .git, .hyperfile-trash and *.hyperfile-segments.* files, and whatever .hyperfileignore and .gitignore ignore, as sync does — those of the root, or of the folder you named when it lies outside the root; with no .hyperfileignore, sync's default list (.env, node_modules/ and the like). A glob's matches are filtered the same way and may include chart files (.yaml, .yml, .json). Walks and globs skip symlinks, to files and folders alike, as sync does. A path you name is checked whatever the ignore files say, and followed when it is a symlink, and a chart file is also checked when a chart block in a Markdown file points at it. A folder with nothing to check is not an error: it exits 0, printing nothing in text mode and {"root":"…","files":[]} with --json.
The root
Links, images, chart sources and chart files resolve as the preview resolves them: a relative path from the file's own folder, an absolute one (/…) from the root. The root is --root — relative to the current folder, or absolute — or else the current folder, so run it from the folder your /… links start at, or pass that folder. A file outside the root, named or walked from a folder outside it, is still linted, but none of its paths is checked and no chart file it names is followed: its answer carries one warning, Paths not checked: this file is outside the root (<root>); run from its folder or pass --root. Nothing outside the root is ever looked up or read: a link that climbs above it is reported as not a file path, and a symlink under it that leads out of it reads as missing. [license](../LICENSE) in docs/guide.md, run from docs, climbs above the root; run from the repository, or with --root .., it is checked.
The first line of the output names the root — relative to the current folder when it is inside it, otherwise its absolute path; --json carries the absolute path as root instead:
root: .
docs/guide.md: 1 warning · on disk
- line 3, column 1 [link, warning]: ../LICENSE is not a file path in this filesystem
Warnings and --strict
A path a document names that is not there — a link or image target, a chart file or a chart's data source, or one that climbs above the root — is a warning, and so is a file's paths left unchecked outside the root, since it hangs on the root you ran from. Its line is tagged warning and the header counts warnings apart from issues (2 issues, 1 warning). Everything else is an issue, including what a followed chart file itself gets wrong, and a chart file that is there but cannot be read as one — a folder, over 1 MB, or one that cannot be read. Warnings alone leave the exit code 0; with --strict they fail the run, as a CI check wants.
Sizes, output and exit codes
Markdown files up to 100 MB are checked whole, chart blocks in them included, and a chart file up to 1 MB, what the preview loads. A larger file is reported and skipped. So when lint_file says a Markdown document was too large or too complex to check, run this where the file is on disk.
A text answer prints at most 150 problems and 20 KB of help per file, and each file follows at most 20 chart files and looks up at most 500 paths; a closing line says what each cap left out; --json carries every finding the lint kept.
Where a finding comes with help, it points at hyperfile markdown syntax for the extension it concerns.
--json prints one JSON document instead of text: root, the absolute folder paths resolved from, and files, where each finding carries its severity, error or warning. A file that could not be checked carries error in place of its findings, and column, block and help appear only when they apply. A finding the text output prints as a note carries declined: true, and total counts only the rest, warnings included, so it can be below the number of findings:
{ "root": "/home/me/docs", "files": [
{ "path": "notes.md", "total": 1, "findings": [
{ "line": 4, "column": 3, "rule": "link", "tag": "link", "message": "…", "severity": "warning" }
] },
{ "path": "big.md", "error": "…" }
] }
The exit code is 0 when every file is clean or has only warnings, 1 when at least one has an issue — or a warning, with --strict — and 2 for a usage error or any path that could not be checked — for example one that is missing, could not be read or linted, is not Markdown or a chart file or is too large, a glob that matches nothing, or a negated glob ('!docs/*.md'), which names no files to check. 2 wins over 1, and a path not checked still lets every other answer print in full, with a summary on stderr. Notes — a YAML body that was not checked — never count.
hyperfile markdown syntax
Print how to write a Markdown extension Hyperfile renders — the same entries agents read through the MCP markdown_syntax tool and the Markdown guide lists. With no name, or basics, it prints the overview: the Markdown basics and the list of extensions. With an extension's name (chart, signature, …) it prints that entry's syntax, examples, common mistakes and schema. A name no extension has prints No extension is named "<name>"., then the overview, and exits 2, as a usage error of markdown lint or markdown syntax does; a bad hyperfile markdown invocation itself, such as an unknown subcommand, exits as the CLI's other usage errors do.
hyperfile markdown syntax [name]
hyperfile whoami
Display the currently authenticated account.
hyperfile --help
Show all available commands and global options.