Working with files
Browse, upload, organize, and publish files on a Syncropel instance with the spl fs command.
Every Syncropel instance has a filesystem — a place
for your working files, published artifacts, and connected drives. This guide
walks through managing it from the command line with spl fs.
Before you start
You need a running instance — see Your first run
to set one up locally, or Hosted instances for a
managed one. spl fs talks to whichever instance your CLI is pointed at, and
uses the same credential as the rest of the CLI — if you've already paired or
saved a token, you're set (Authentication).
Browse
spl fs ls lists a directory. With no path, it lists the filesystem root —
the four top-level areas:
spl fs lsTo look inside an area, give a path:
spl fs ls /files/files (files)
/ projects dir 0
notes.md file 482
data.csv file 15834Upload a file
spl fs cp uploads a local file into your working area under /files:
spl fs cp ./quarterly-report.md /files/quarterly-report.md✓ uploaded ./quarterly-report.md -> /files/quarterly-report.md (4821 bytes)
content hash: 9565f5d1cf0a882c35dd2fc1cf2c29a90c8769b923fa9681e696fbd19f2bf345Large files upload in chunks and resume cleanly if a transfer is interrupted — re-run the same command and it picks up where it left off.
Inspect a file
spl fs stat shows a file's metadata — its kind, size, and content hash:
spl fs stat /files/quarterly-report.mdspl fs cat prints a file's contents to your terminal:
spl fs cat /files/quarterly-report.mdOrganize
Create directories, move and rename, and remove files inside /files:
spl fs mkdir /files/reports
spl fs mv /files/quarterly-report.md /files/reports/q1.md
spl fs rm /files/reports/old-draft.md
spl fs rm /files/reports --recursive # remove a directory and its contentsThese work in /files and in any writable connected drive. /artifacts and
/threads are read-only — they reject changes by design.
Publish a file
When a working file is finished, publish it. Publishing promotes the file
to /artifacts as a permanent, read-only artifact with a fixed address:
spl fs publish /files/reports/q1.md✓ published /files/reports/q1.md
content hash: 9565f5d1cf0a882c35dd2fc1cf2c29a90c8769b923fa9681e696fbd19f2bf345
manifest: 35b25801ff8d7079d7f0d72eaab43fc5b4083d4136c8ad78e6193c7e0e7ff8d0The content hash is the artifact's permanent address — it's derived from the
file's exact bytes, so it never changes and always points at precisely that
version. The working copy stays in /files; you can keep editing it and
publish again later, and each publish produces its own fixed artifact. See
Files for the model.
Connected drives
spl fs mounts lists external drives connected to the instance. Connected
drives appear under /mnt/<name> and can be browsed like any other directory:
spl fs mounts
spl fs ls /mnt/my-driveJSON output for scripting
Every spl fs command accepts -o json (or --json), so you can drive the
filesystem from scripts:
spl fs ls /files -o json | jq '.entries[].name'
spl fs stat /files/data.csv --json | jq '.size_bytes'In the browser
Everything here is also available visually. Open your instance on the web
and use the Files tab — it's a browser AND editor for the same
filesystem, so a file you upload from the terminal shows up there
immediately, and vice versa. See Files in your
instance for the full walkthrough — drag-
upload, the in-Studio editor with autosave, right-click context actions,
quick find with ⌘K, attaching files to chat with @files, and the
mobile experience.
What's next
- Files — the filesystem model: the four areas, and the working-file → artifact lifecycle.
- Working with files in your instance — the same filesystem, visually.
- CLI reference: Files — the complete
spl fscommand list.
Projections
Schema, validators, and a markdown-subset parser for the Syncropel Rendering Protocol (SRP) — the declarative document format for query-driven and AI-generated UI.
Working with files in your instance
Browse, edit, organize, and reference your files visually — drag-and-drop uploads, an inline editor with autosave, quick find, and attaching files to chat.