twenty/packages/create-twenty-app/README.md
martmull e498367e2f
Merge twenty-cli into twenty-sdk (#16150)
- Moves twenty-cli content into twenty-sdk
- add a new twenty-sdk:0.1.0 version
- this new twenty-sdk exports a cli command called 'twenty' (like
twenty-cli before)
- deprecates twenty-cli
- simplify app init command base-project
- use `twenty-sdk:0.1.0` in base project
- move the "twenty-sdk/application" barrel to "twenty-sdk"
- add `create-twenty-app` package

<img width="1512" height="919" alt="image"
src="https://github.com/user-attachments/assets/007bef45-4e71-419a-9213-cebed376adbf"
/>

<img width="1506" height="929" alt="image"
src="https://github.com/user-attachments/assets/3de2fec6-1624-4923-ae13-f4e1cf165eb5"
/>
2025-12-01 11:44:35 +01:00

3.3 KiB
Raw Blame History

Twenty logo

Create Twenty App

NPM version License Join the community on Discord

Create Twenty App is the official scaffolding CLI for building apps on top of Twenty CRM. It sets up a readytorun project that works seamlessly with the twenty-sdk.

  • Zeroconfig project bootstrap
  • Preconfigured scripts for auth, generate, dev sync, oneoff sync, uninstall
  • Strong TypeScript support and typed client generation

Prerequisites

Quick start

npx create-twenty-app@latest my-twenty-app
cd my-twenty-app

# Authenticate using your API key (you'll be prompted)
yarn auth

# Add a new entity to your application (guided)
yarn create-entity

# Generate a typed Twenty client and workspace entity types
yarn generate

# Start dev mode: automatically syncs local changes to your workspace
yarn dev

# Or run a onetime sync
yarn sync

# Uninstall the application from the current workspace
yarn uninstall

What gets scaffolded

  • A minimal app structure ready for Twenty
  • TypeScript configuration
  • Prewired scripts that wrap the twenty CLI from twenty-sdk
  • Example placeholders to help you add entities, actions, and sync logic

Next steps

  • Explore the generated project and add your first entity with yarn create-entity.
  • Keep your types uptodate using yarn generate.
  • Use yarn dev while you iterate to see changes instantly in your workspace.

Publish your application

Applications are currently stored in twenty/packages/twenty-apps.

You can share your application with all Twenty users:

# pull the Twenty project
git clone https://github.com/twentyhq/twenty.git
cd twenty

# create a new branch
git checkout -b feature/my-awesome-app
git commit -m "Add new application"
git push

Our team reviews contributions for quality, security, and reusability before merging.

Troubleshooting

  • Auth prompts not appearing: run yarn auth again and verify the API key permissions.
  • Types not generated: ensure yarn generate runs without errors, then restart yarn dev.

Contributing