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) for your app from the active remote. The client is scoped to the application declared in your manifest, so the command reads the build output: run yarn twenty dev:build (or yarn twenty dev) first.
The client is generated inside
node_modules, so it is not committed with your code. Run yarn twenty dev:build then 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.~/.twenty/config.json.