Skip to content
Syno Package Land
Language: English

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.

Terminal window
synopkgland check
synopkgland build --arch x86_64

build 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.

ProjectArchitecturesOutput
native-go, binaryx86_64, aarch64, armv7One SPK per declared architecture. init -t native-go omits armv7; add it before an armv7 build.
composex86_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.

Terminal window
synopkgland inspect dist/MyApp-0.1.0-0001-x86_64.spk

inspect 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.

Terminal window
synopkgland deploy --dry-run --arch x86_64
synopkgland 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 vendorArchitecture
Intel, AMDx86_64
Realtek, Rockchipaarch64
Annapurnaarmv7
Any otherFails 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.

Terminal window
synopkgland status --host my-nas
synopkgland logs --host my-nas

status 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.

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.

  1. Send the .spk for the NAS CPU; inspect lists the platforms inside.
  2. 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.
  3. For delegate or root-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.

LimitValue
SigningThe SPK is always unsigned.
deployOne architecture per run.
Minimum DSMos_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 layoutcheck, build, inspect, deploy, status; build accepts 1 to 2147483647.
Symptom or codeCauseFix
STANDALONE_UI_BUILD_FAILEDThe UI build failed or dependencies are missing.Run pnpm install in frontend/, then build.
STANDALONE_GO_MISSINGgo 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_REQUIREDdeploy, status or logs has no --host.Pass --host, or use deploy --dry-run.
DEPLOY_VERSION_INVALIDThe version is not higher than the installed one.Raise build, or version.
NOT_INSTALLED from logsThe package is not installed.Run deploy first.
blocked for delegate or root-opsstatus cannot match the installed version to a built SPK.Build that version here, then run status again.

Look up any other code in Errors.

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.