Deploy your local serverless functions to Base44. The command reads all function directories in your functions folder, validates their configurations, and deploys them to your Base44 project.
Each function requires its own directory with a configuration file and code file. See Project Structure for details on function file organization and examples.
The command performs a full sync operation. For each function, the action taken is determined by its state locally and remotely:
| Local state | Remote state | Result |
|---|
| Function exists | Function exists | Remote function is updated |
| Function exists | Function missing | New remote function is created |
| Function missing | Function exists | Remote function is removed. See the warning below |
Deleting a function removes it from Base44. Any endpoints or integrations that depend on this function will no longer work.
Before deploying, ensure your project is connected to a Base44 app. Check that your .app.jsonc file exists and contains your app ID. If not, run base44 link.
Usage
The command will:
- Find all functions in your functions directory.
- Validate each function’s configuration.
- Deploy the functions to Base44.
- Report which functions were deployed, deleted, or had errors.
See also