Docs
Build your own App with the CLI: give this to your AI
Paste it into an AI coding assistant that can run terminal commands, such as Claude Code, Codex or Cursor. It builds your App into an .spk with the Syno Package Land CLI and tells you how to install it
Help me build an App for my Synology NAS as a DSM package (.spk) with the Syno Package Land CLI. Run the CLI as `pnpm dlx @synopackageland/cli@latest <command>`. It needs Node.js 22 or newer; its guide says what else a template needs (for example Go). Check what is installed first and tell me what is missing. 1. Before anything else, read the CLI's built-in guide: `pnpm dlx @synopackageland/cli@latest skill list`, then `pnpm dlx @synopackageland/cli@latest skill show orchestrator`, and follow it step by step, reading the page it points to at each step. The guide and `--help` are the authority for commands and flags; do not rely on memory or invent any. 2. Ask me what the App should do before you create anything. 3. Build it the way the guide says, then check the project and build and inspect the .spk with the CLI. Fix every error before you call it done. 4. Tell me how to install it: Package Center → Manual Install with the .spk file; the SPK is unsigned, so DSM may warn first. Do not install anything on my NAS or publish anything unless I ask. You can also install with `pnpm dlx @synopackageland/cli@latest install ./file.spk --host <name> --dry-run --json`: explain the plan first and wait for my agreement before repeating it with `--yes` instead of `--dry-run` Docs: https://synopkgland.com/docs/
Your computer needs Node.js 22+ (and Go 1.25+ for the default template). The AI checks for them first
The synopkgland CLI turns a project folder into an unsigned SPK that you install on a Synology NAS. You can build a native app with a Go backend and a DSM window UI, package a static Linux CGI you already have, wrap a Docker Compose app, or package an existing native product.
Start with the Quick start to go from an empty folder to an installed package. Capabilities lists what your code can do on the NAS and which actions an administrator must approve.
Building blocks
Section titled “Building blocks”| Package | What it holds | Install as |
|---|---|---|
| syno-pkg-land-cli | The synopkgland CLI: init, check, build, inspect, deploy, status | npm @synopackageland/cli |
| syno-pkg-land-templates | The app-owned files init and add copy into a project | npm @synopackageland/templates, a dependency of the CLI |
| syno-pkg-land-sdk | Executor protocol spec, the executor, the Go client packages, and the TypeScript and Vue client | Go module github.com/synopackageland/syno-pkg-land-sdk, npm @synopackageland/sdk |
| syno-pkg-land-ui | DSM-styled Vue components | npm @synopackageland/ui |
The SDK repository is public: Go modules resolve through the public Go proxy or GitHub, and Cargo fetches the public Git tag, without GitHub credentials. Pin the installed dependency tree for reproducible builds; templates, SDK and UI versions move independently of the CLI.
A generated native-go project names its SDK version once, in backend/go.mod. The CLI reads executor manifest format 1 from that SDK to resolve the immutable executor release and its verified payload digests, and builds the executor from the same version.
What you can build
Section titled “What you can build”| You want to | Template | Create it with | You need |
|---|---|---|---|
| Build a new app with a Go backend and a Vue UI in a DSM window | native-go with Vue (default) | synopkgland init -t native-go | Go, Node.js |
| Build the same app with a hand-written UI | native-go with a plain UI | synopkgland init -t native-go --ui plain | Go. The plain UI cannot use login. |
| Package a static Linux CGI that handles its own authentication | binary | synopkgland init -t binary | Go, to build the sample CGI |
| Package an upstream container | compose | synopkgland init -t compose | A compose.yaml, or the generated example |
| Package a product that already has its own payload and DSM window | existing native | No template. Write dsm-package.yaml with backend: {kind: native}. | Your own build scripts |
Add --with files,jobs,login (and delegate, root-ops) to a native-go project at creation time, or later with synopkgland add.
How it fits together
Section titled “How it fits together”initcopies a template into your project and writesdsm-package.yaml.checkvalidates the manifest, the capability combination and the API permissions.buildbuilds the UI and the backend and writes one SPK per architecture todist/.deployinstalls that SPK on a NAS through DSM;statusreports the installed state and the address that opens the app.