CLI and release checks
Understand each command from project creation to archive validation, including its scope and success criteria.
Browse contracts, signatures, fields and examples. Unspecified defaults are not inferred.
On this page
01Scaffold options
First complete local package setup in the first-extension guide. Run from extension-work with AMBLELOFT_PACKS still set. The CLI does not install dependencies.
npx --no-install amble-extension init my-app --name my-app --template expense
cd my-app
npm install --save-dev "$AMBLELOFT_PACKS/ambleloft-extension-sdk-0.1.0-alpha.9.tgz" "$AMBLELOFT_PACKS/ambleloft-extension-core-0.1.0-alpha.9.tgz" "$AMBLELOFT_PACKS/ambleloft-extension-cli-0.1.0-alpha.9.tgz"
npm run build
npm run validate
npm run pack02validate / pack
Run the locally installed CLI. validate does not execute extension code. pack takes a prepared directory and requires an output outside that directory ending in .amble-extension. Existing output is preserved unless --force is used.
npx amble-extension validate dist/package --json
npx amble-extension pack dist/package dist/my-app.amble-extension --json
npx amble-extension validate dist/my-app.amble-extension --json| Field / API | Contract |
|---|---|
| Exit 0 / 1 / 2 | Success / validation or execution failure / command syntax error. |
| --json | Structured output for validate, pack and doctor. |
| -- | Separates options from paths beginning with -. |
03doctor checks source compatibility
--host points to host source, not a running app. Matching capability baselines is not proof of runtime success; runtimeStatus: not-tested must not be reported as a passed host test.
npx amble-extension doctor --host ../Ambleloft \
--require operations,declarativeForms,localMessages --json| Field / API | Contract |
|---|---|
| Available capability IDs | operations, configuration, localMessages, declarativeForms, mcpApps, messageActions, extensionAuthentication. agentHooks, conversationTurns, backgroundJobs (M2 source preview). |
| Unavailable | formResumeApi; there is no extensionIcons capability ID. |
04Release acceptance matrix
CLI does not install, grant trust, sign in or publish to a marketplace. Record host and SDK/CLI versions, archive validation output and runtime acceptance results.
| Field / API | Contract |
|---|---|
| Package | Package icons, Skills, YAML, pages and licenses; validate the archive. |
| Interaction | Chinese/English, light/dark theme, keyboard, empty inputs and limits. |
| Business writes | Cancellation, timeout, lost response after write, recovery and idempotency. |
| Messages | Duplicate/out-of-order events, reconnect, withdrawal, preferences and action outcomes. |
05Internal alpha.9 Hook validation
Schema and CLI checks cover Hook events, permissions, entry points and handler conflicts. doctor validates source capabilities, not actual grants, model jobs or restart behavior.
npx --no-install amble-extension doctor --host /path/to/agent --require agentHooks,conversationTurns,backgroundJobs --json