A unified command-line interface for managing Base44 applications, entities, functions, deployments, and related services.
Zero dependencies - installs in seconds with no dependency resolution.
# Using npm (globally)
npm install -g base44
# Or run directly with npx
npx base44 <command># 1. Login to Base44
base44 login
# 2. Create a new project
base44 create
# 3. Push entities to Base44
base44 entities push| Command | Description |
|---|---|
base44 login |
Authenticate with Base44 using device code flow |
base44 whoami |
Display current authenticated user |
base44 logout |
Logout from current device |
| Command | Description |
|---|---|
base44 create |
Create a new Base44 project from a template |
| Command | Description |
|---|---|
base44 entities push |
Push local entity schemas to Base44 |
Base44 projects are configured via a config.jsonc (or config.json) file in the base44/ subdirectory:
| Variable | Description | Default |
|---|---|---|
BASE44_CLIENT_ID |
Your app ID | - |
You can set these in a .env.local file in your base44/ directory:
# base44/.env.local
BASE44_CLIENT_ID=your-app-idA typical Base44 project has this structure:
my-project/
├── base44/
│ ├── config.jsonc # Project configuration
│ ├── .env.local # Environment variables (git-ignored)
│ ├── entities/ # Entity schema files
│ │ ├── user.jsonc
│ │ └── product.jsonc
├── src/ # Your frontend code
└── package.json
- Node.js >= 20.19.0
- npm
# Clone the repository
git clone https://github.com/base44/cli.git
cd cli
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
npm run dev -- <command>npm run build # Build with tsdown
npm run typecheck # Type check with tsc
npm run dev # Run in development mode with tsx
npm run lint # Lint with ESLint
npm test # Run tests with Vitest# After building
npm start -- <command>
# Or directly
./dist/cli/index.js <command>See AGENTS.md for development guidelines and architecture documentation.
ISC