Skip to content
Syno Package Land
Language: English

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

build-my-nas-app.txt
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.

Available packages

PackageWhat it holdsInstall as
syno-pkg-land-cliThe synopkgland CLI: init, check, build, inspect, deploy, statusnpm @synopackageland/cli
syno-pkg-land-templatesThe app-owned files init and add copy into a projectnpm @synopackageland/templates, a dependency of the CLI
syno-pkg-land-sdkExecutor protocol spec, the executor, the Go client packages, and the TypeScript and Vue clientGo module github.com/synopackageland/syno-pkg-land-sdk, npm @synopackageland/sdk
syno-pkg-land-uiDSM-styled Vue componentsnpm @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.

You want toTemplateCreate it withYou need
Build a new app with a Go backend and a Vue UI in a DSM windownative-go with Vue (default)synopkgland init -t native-goGo, Node.js
Build the same app with a hand-written UInative-go with a plain UIsynopkgland init -t native-go --ui plainGo. The plain UI cannot use login.
Package a static Linux CGI that handles its own authenticationbinarysynopkgland init -t binaryGo, to build the sample CGI
Package an upstream containercomposesynopkgland init -t composeA compose.yaml, or the generated example
Package a product that already has its own payload and DSM windowexisting nativeNo 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.

  1. init copies a template into your project and writes dsm-package.yaml.
  2. check validates the manifest, the capability combination and the API permissions.
  3. build builds the UI and the backend and writes one SPK per architecture to dist/.
  4. deploy installs that SPK on a NAS through DSM; status reports the installed state and the address that opens the app.