Skip to main content
Run a TypeScript or JavaScript script with the Base44 SDK pre-authenticated as the current user. The SDK is available as a global base44 variable. Scripts are executed locally using Deno. For a full walkthrough, use cases, and prerequisites, see the Standalone scripts guide.

Usage

Pipe a script file to exec:
cat ./script.ts | base44 exec
Or pass inline code:
echo "console.log(await base44.entities.Tasks.list())" | base44 exec

See also