Ship
synopkgland builds an unsigned SPK, checks it without installing, and deploys it to a NAS. It does not sign, publish or submit a package.
synopkgland checksynopkgland build --arch x86_64build writes dist/<package>-<version>-<build>-<arch>.spk, for example dist/MyApp-0.1.0-0001-x86_64.spk. Without --arch it builds every architecture in arches. --out-dir changes the folder; -o names one file and needs one --arch.
| Project | Architectures | Output |
|---|---|---|
native-go, binary | x86_64, aarch64, armv7 | One SPK per declared architecture. init -t native-go omits armv7; add it before an armv7 build. |
compose | x86_64, aarch64 | <package>.spk, or with the web gateway one per architecture: <package>-x86_64.spk and <package>-aarch64.spk. |
Run pnpm install in frontend/ before the first build (pnpm install --frozen-lockfile with a pnpm-lock.yaml); build installs nothing.
Inspect
Section titled “Inspect”synopkgland inspect dist/MyApp-0.1.0-0001-x86_64.spkinspect reads an SPK without installing it. The DSM format section checks the DSM 7 layout and reports each finding with an SPK rule code. For an SPK that synopkgland built, a contract section adds the identity, platforms, signature, capabilities and their approval needs, the files, and the uninstall review directories. Any error fails with SPK_INSPECTION_FAILED; warnings alone pass.
An SPK from another tool gets the DSM format section only. See Package scripts and interpreted languages.
Deploy
Section titled “Deploy”synopkgland deploy --dry-run --arch x86_64synopkgland deploy --host my-nas--dry-run prints the plan and never connects. deploy --host builds one SPK for one architecture, installs it, and prints the status.
Register the NAS and sign in first; host registration, sessions, install and uninstall are in the CLI reference.
Without --arch, deploy reads the CPU vendor from the NAS:
| CPU vendor | Architecture |
|---|---|
| Intel, AMD | x86_64 |
| Realtek, Rockchip | aarch64 |
| Annapurna | armv7 |
| Any other | Fails with DEPLOY_ARCH_UNDETERMINED. Pass --arch. |
--dev, --share and --run-as are Compose only; a native project rejects --dev with DEVELOPMENT_INSTANCE_UNSUPPORTED. For an install-selected delegate, --param takes only delegate_share or delegate_home.
Status and logs
Section titled “Status and logs”synopkgland status --host my-nassynopkgland logs --host my-nasstatus prints the installed state, the DSM status (or NOT_INSTALLED), the Open URL, and each capability’s state: ready, needs-admin-approval, unsupported or blocked. See Capabilities. --json returns {ok, command, data}, or {ok: false, code, message, hint} on failure.
logs prints status lines and redacted diagnostics, does not stream application logs, and does not work on a native layout, which reports only its installed state and Open URL.
Versions and upgrades
Section titled “Versions and upgrades”version holds up to four dot-separated numbers and build an integer from 1 to 9999. The package version is <version>-<build>, with the build padded to four digits: 0.1.0-0001. Package Center shows it and the SPK file name contains it.
deploy installs when version is higher, or when version matches and build is higher than the installed build. Otherwise it fails with DEPLOY_VERSION_INVALID; a lower version adds “Refusing downgrade”. Raise build for every SPK you hand to someone, and version for a feature release.
A Compose project gets the next build number from deploy. An upgrade keeps the app data; see Data and removal. With delegate or root-ops, an upgrade resumes the executor only while the approved pins match, and otherwise an administrator approves again.
Hand the SPK to someone else
Section titled “Hand the SPK to someone else”- Send the
.spkfor the NAS CPU;inspectlists the platforms inside. - On the NAS, choose Manual Install in Package Center and pick the file. It is unsigned, so DSM may warn; continue only if you trust the source.
- For
delegateorroot-ops, a DSM administrator opens the app and approves once.
No CLI command submits to Package Source or another catalog. Users can add https://packages.synopkgland.com/ in Package Center for the packages listed there. To publish your app, see List your app.
Limits
Section titled “Limits”| Limit | Value |
|---|---|
| Signing | The SPK is always unsigned. |
deploy | One architecture per run. |
| Minimum DSM | os_min_ver in dsm-package.yaml: 7.1-42661 for native-go and binary, 7.2.1-69057 for compose; --min-dsm takes a release or a full 7.x-build. See Platforms. |
| Native layout | check, build, inspect, deploy, status; build accepts 1 to 2147483647. |
Troubleshooting
Section titled “Troubleshooting”| Symptom or code | Cause | Fix |
|---|---|---|
STANDALONE_UI_BUILD_FAILED | The UI build failed or dependencies are missing. | Run pnpm install in frontend/, then build. |
STANDALONE_GO_MISSING | go is missing from your path. | Install Go 1.25 or later. |
STANDALONE_ARCH_NOT_DECLARED | --arch is not in arches. | Add it in dsm-package.yaml. |
HOST_REQUIRED | deploy, status or logs has no --host. | Pass --host, or use deploy --dry-run. |
DEPLOY_VERSION_INVALID | The version is not higher than the installed one. | Raise build, or version. |
NOT_INSTALLED from logs | The package is not installed. | Run deploy first. |
blocked for delegate or root-ops | status cannot match the installed version to a built SPK. | Build that version here, then run status again. |
Look up any other code in Errors.
Test that the App opens
Section titled “Test that the App opens”New projects include tests/e2e/smoke.e2e.ts and
pnpm run e2e:smoke at the package project root. The shared helper runs three
checks: a DSM administrator (A), a normal DSM user with Application Privileges
(N), and a fresh browser context without a DSM session (X).
import { appOpenSmoke } from '@synopackageland/cli/e2e';appOpenSmoke({ ready: '[data-app-ready]' });Choose a marker visible only after the App content loads; wrapped upstream
Apps must replace the template marker. The helper derives the launcher and
entry from dsm-package.yaml. Set DSM_E2E_SSH, DSM_E2E_ACCOUNT_ADMIN and
DSM_E2E_ACCOUNT_NORMAL in a private untracked .env; account variables name
mode-600 JSON files containing username and password. Run pnpm install
at the root first, then install Chromium once with
pnpm dlx @e2e-dev/web install chromium. The existing CLI tunnel and named profile cache are reused.
N reports a skip if its account and saved profile are both missing. X requires
the DSM login gate; an entry declared upstream-authenticated in the manifest
needs publicLogin to identify its own login page. The smoke fails on exposed
app content, a missing gate, an error page or HTTP 5xx. It does not install
packages or change users/permissions. Keep .env and .e2e/ out of Git.