The CLI requires Node.js 20.19.0 or higher.
Setup
Create a Base44 backend
Navigate to your Vue 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 Vue 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
Update your config.jsonc to point to your Vue build output. Add or modify the
site.outputDirectory field: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 src/api/base44Client.js:Use the SDK in your frontend
Create a simple component to list and add tasks. For example, create
src/components/TaskList.vue: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().Run your app locally
Start your Vue development server to test your integration. From your project root, run:Your Vue app will connect to your Base44 backend through the SDK client, allowing you to work with your deployed entities in real-time.
Build your frontend
When you’re happy with how everything looks locally, build your Vue project for production:This creates optimized production files in your output directory (typically
dist).Deploy your frontend
Deploy your built frontend to Base44:The
deploy command deploys your built frontend to Base44 hosting. It will also push any updates to your entity schemas if you’ve made changes since the last push. When complete, you’ll see your project name, a link to your Base44 dashboard, and your live application URL.Next steps
Now that your Base44 backend is integrated with your project, you can:- Use the SDK to add more functionality to your frontend.
- Add entities, backend functions, and agents.
- Continue building your frontend and deploy updates with
base44 deploy.

