The CLI requires Node.js 20.19.0 or higher.
Setup
Create a Base44 backend
Navigate to your Hono project directory, then run:If you’re not already logged in, the command will prompt you to authenticate.Select Create a basic project when prompted. This creates the backend files within your Hono project directory. Then follow the prompts to configure your project.When you create a project, Base44 skills are included automatically, providing your AI agent with instructions and context for Base44 tasks.
Configure the output directory (optional)
If you’re serving static files with Hono, update config.jsonc to point to your build output. Add or modify the
site.outputDirectory field:If you’re building a pure API with Hono and not serving a frontend, you can skip the
outputDirectory configuration or omit this step.Define entities
Create entity schemas to define your data structures. Entity files must be placed in the
base44/entities/ directory.For example, create base44/entities/task.jsonc:Push entities to Base44
Push your entity schemas to Base44:This command synchronizes your local entity definitions with your Base44 backend, making them available for use in your application. See
entities push for more information.Create a Base44 client
Create a Base44 SDK client in your project. The
appId can be found in your base44/.app.jsonc file.For example, create lib/base44.js:Use the SDK in your API routes
Use the Base44 SDK to interact with your entities in Hono route handlers. For example:
Use the exact entity name from your schema when calling the SDK, including capitalization. By convention, entity names begin with a capital letter. For example, if your schema has
"name": "Task", you access it as base44.entities.Task.list().Next steps
Now that your Base44 backend is integrated with your project, you can:- Use the SDK to add more functionality to your API.
- Add entities, backend functions, and agents.
- Continue building your API and deploy it according to your chosen runtime.

