Skip to main content
The yarn twenty CLI is your interface to everything app-related. Full command list: Every command accepts -r, --remote <name> to target a specific remote instead of the default one.

Executing functions (yarn twenty dev:function:exec)

Run a logic function manually without triggering it via HTTP, cron, or database event:

Viewing function logs (yarn twenty dev:function:logs)

Stream execution logs for your app’s logic functions:
This is different from yarn twenty docker:logs, which shows the Docker container logs. yarn twenty dev:function:logs shows your app’s function execution logs from the Twenty server.

Generating the typed client (yarn twenty dev:generate-client)

Regenerate the typed API client (twenty-client-sdk) from the active remote’s schema, without building or syncing an app. Use it to get a typed client in any project — like a backend service living in a separate repository — that talks to your Twenty instance:
Then import the client in your code:
Re-run the command whenever your data model changes to refresh the generated types.
The client is generated inside node_modules, so it is not committed with your code. Run yarn twenty dev:generate-client after every install (for example in a postinstall script or in CI).

Uninstalling an app (yarn twenty app:uninstall)

Remove your app from the active workspace:

Managing remotes

A remote is a Twenty server that your app connects to. During setup, the scaffolder creates one for you automatically. You can add more remotes or switch between them at any time.
Your credentials are stored in ~/.twenty/config.json.