Files
upstream-mirror e7da97194a
Some checks failed
App Prod-Parity E2E Dispatch / dispatch (push) Failing after 10s
CD Storybook UI / build (push) Failing after 3m25s
CD Storybook UI / dispatch (push) Has been skipped
CD deploy main / website-changed-files (push) Successful in 18m8s
CI Agent Skills / changed-files-check (push) Successful in 18m9s
CI Create App E2E minimal / changed-files-check (push) Successful in 24s
CI Create App / changed-files-check (push) Successful in 26s
CI Docs / changed-files-check (push) Successful in 26s
CI Emails / changed-files-check (push) Successful in 28s
CI Example App Hello World / changed-files-check (push) Successful in 23s
CI Front / changed-files-check (push) Has been skipped
CI Example App Postcard / changed-files-check (push) Successful in 27s
CI UI / changed-files-check (push) Has been skipped
CI Utils Test / changed-files-check (push) Successful in 45s
CI Twenty Apps / discover (push) Successful in 1m3s
CD deploy main / deploy-main (push) Failing after 3s
CI Agent Skills / agent-skills-validate (push) Has been skipped
CI Create App / create-app-test (lint) (push) Has been skipped
CI Emails / emails-test (push) Has been skipped
CI Front / front-task (lingui:compile) (push) Has been skipped
CI Front / front-task (lint) (push) Has been skipped
CI Example App Postcard / example-app-postcard (push) Has been skipped
CI UI / ui-task (lint) (push) Has been skipped
CI UI / ui-task (pack-size) (push) Has been skipped
CI UI / ui-task (size) (push) Has been skipped
CI UI / ui-task (test) (push) Has been skipped
CI UI / ui-task (typecheck) (push) Has been skipped
CI Utils Test / utils-test (push) Has been skipped
CI Twenty Apps / ${{ matrix.app.name }} (push) Has been skipped
CI Emails / ci-emails-status-check (push) Successful in 2s
CI Example App Hello World / ci-example-app-hello-world-status-check (push) Successful in 2s
CI Example App Postcard / ci-example-app-postcard-status-check (push) Successful in 3s
CI UI / ui-sb-test (push) Has been skipped
CI Utils Test / ci-utils-test-status-check (push) Successful in 2s
CI Twenty Apps / ci-twenty-apps-status-check (push) Successful in 2s
CI UI / ci-ui-status-check (push) Successful in 2s
CI Desktop / desktop (push) Failing after 1m8s
Push docs to Crowdin / Push documentation to Crowdin (push) Failing after 55s
Push translations to Crowdin / Extract and upload translations (push) Failing after 5s
Push website translations to Crowdin / Extract and upload website translations (push) Failing after 5s
CI Create App / create-app-test (test) (push) Has been skipped
CI Create App / create-app-test (typecheck) (push) Has been skipped
CI Docs / docs-lint (push) Has been skipped
CI Example App Hello World / example-app-hello-world (push) Has been skipped
CI Front / front-task (lingui:extract) (push) Has been skipped
CI Front / front-task (test) (push) Has been skipped
CI Front / front-task (typecheck) (push) Has been skipped
CI UI / ui-sb-build (push) Failing after 1m32s
CI Twenty Apps / ${{ matrix.app.name }} (${{ matrix.server-source }}) (push) Has been skipped
CI Agent Skills / agent-skills-publish (push) Has been skipped
CI Create App / ci-create-app-status-check (push) Successful in 2s
CI Agent Skills / agent-skills-remote-source (push) Has been skipped
CI Create App E2E minimal / create-app-e2e-minimal (push) Has been cancelled
CI E2E Main / e2e-test (push) Has been cancelled
CI Front / front-sb-build (push) Has been cancelled
CI Front / front-build (push) Has been cancelled
CI Create App E2E minimal / ci-create-app-e2e-minimal-status-check (push) Has been cancelled
CI E2E Main / ci-e2e-main-status-check (push) Has been cancelled
CI E2E Main / notify-main-ci-failure (push) Has been cancelled
CI E2E Main / qa-scout-comment (push) Has been cancelled
CI Front / front-sb-test (push) Has been cancelled
CI Front / front-sb-screenshots (push) Has been cancelled
CI Front / ci-front-status-check (push) Has been cancelled
DPA Sub-Processor Sync / sync-subprocessors (push) Failing after 3s
AI Catalog Sync / sync-catalog (push) Failing after 2s
snapshot of https://github.com/twentyhq/twenty.git (main, 2026-09-17; blobs > 131072B omitted)
2026-09-17 23:28:13 +05:00

4.1 KiB

Self-Hosted Smoke Test

The portable skills claim that a user can scaffold and develop a Twenty app against a self-hosted instance. This is how that claim is checked by hand. CI covers installation (ci-agent-skills.yaml); this covers the workflow the installed skills describe, which needs a running Twenty instance and cannot run on a CI runner.

Run it when create-app, develop-app, or manage-app guidance changes in a way that affects the scaffold or sync flow.

Install the Distribution

Build from a checkout and install the skills into the agent used for this run:

npx nx run twenty-agent-skills:build
npx skills add ./packages/twenty-agent-skills/dist --skill create-app develop-app manage-app

After the first successful publish from main, the same distribution is available at https://github.com/twentyhq/twenty/tree/agent-skills. Record the source revision and installation method with each new run. The recorded run below predates the distribution migration and documents the app workflow only.

1. Bring up a self-hosted instance

Any instance works. For a local one from a checkout of this repository:

bash packages/twenty-utils/setup-dev-env.sh
npx nx database:reset twenty-server   # init only builds the schema; reset also seeds
npx nx start twenty-server

Wait for http://localhost:3000/healthz to return 200. This instance is self-hosted for the purposes of the test: a non-twenty.com host, over plain HTTP, on a port the user chose.

2. Authenticate a remote

The scaffolder reuses an existing remote's credentials when one matches the target URL, which is what makes the rest of the run non-interactive. Add one with an API key from the instance's settings:

yarn twenty remote:add --url http://localhost:3000 --api-key <api-key> --as selfhosted

DEV_API_KEY in twenty-sdk does not work here. It is signed for the twenty-app-dev Docker image's APP_SECRET, so a locally built server with its own secret rejects it as Token invalid.

3. Scaffold, following create-app

npx create-twenty-app@latest smoke-crm --url http://localhost:3000 \
  --name smoke-crm --display-name "Smoke CRM" --description "Self-hosted smoke test app"

Expect Authenticating -> Reusing existing credentials, then Application created successfully. Confirm the app registered on the instance rather than only on disk:

select id, "universalIdentifier", version from core.application;

One row must carry the APPLICATION_UNIVERSAL_IDENTIFIER from the generated src/constants/universal-identifiers.ts.

4. Develop, following develop-app

cd smoke-crm
yarn twenty dev:add object    # interactive; needs a TTY
yarn twenty apply

apply prints a plan and then Synced <app name>. Confirm the entity reached the instance:

select "nameSingular", "namePlural" from core."objectMetadata" where "nameSingular" = 'ticket';
select table_schema || '.' || table_name from information_schema.tables where table_name ilike '%ticket%';

Both must return a row. The second proves the workspace migration ran and the physical table exists, which a successful sync message alone does not.

Recorded run

Executed against a locally built server on http://localhost:3000, Node 24.16.0:

  • Scaffold reused the selfhosted remote credentials, no browser OAuth, and reported Application created successfully.
  • core.application carried the scaffolded identifier e606ca1a-4035-4c20-87ac-f49e5af6f05c at 0.1.0.
  • dev:add object generated src/objects/ticket.ts plus its view, record-page fields, navigation menu item, and record page layout.
  • yarn twenty apply reported Plan: 50 to add, 0 to change, 0 to destroy and Synced Smoke CRM (5 files).
  • core."objectMetadata" held ticket / tickets, core."navigationMenuItem" held ticket, and the physical table _ticket existed in the workspace schema.

Note for whoever runs this next: create-twenty-app still calls yarn twenty dev --once internally during its install step, while the skills direct agents to yarn twenty apply. That is the scaffolder's own behavior, not skill guidance.