Index of every page on this site: llms.txt
All skills
base44 avatar

/base44-cli

@5bb6707
by base44base44/skills94 stars
21
Run it yourself

The base44 CLI is used for EVERYTHING related to base44 projects: resource configuration (entities, backend functions, realtime actors, ai agents), initialization and actions (resource creation, deployment), and any other operation on an existing app or workspace through the Base44 public API (settings, domains, users, members, source export). This skill is the place for learning about how to configure resources, including actors — the realtime/WebSocket primitive behind multiplayer, collaborative boards, presence and live cursors, in-room chat, and live auctions. When you plan or implement a feature, you must learn this skill

Use this Skill: https://skilld.dev/gh/base44/skills/base44-cli

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesagents-push.md

≈2.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

base44 agents push

Push local AI agent configurations to Base44. Agents are conversational AI assistants that can interact with users, access your app's entities, and call backend functions.

Syntax

npx base44 agents push [options]

Options

Option Description Required
-y, --yes Skip confirmation prompt No

Authentication

Required: Yes. If not authenticated, you'll be prompted to login first.

What It Does

  1. Reads all agent files from the base44/agents/ directory
  2. Validates agent configurations
  3. Displays the count of agents to be pushed
  4. Asks for confirmation before replacing remote agents (unless -y/--yes is passed)
  5. Uploads agents to the Base44 backend
  6. Reports the results: created, updated, and deleted agents

Prerequisites

  • Must be run from a Base44 project directory
  • Project must have agent definitions in the base44/agents/ folder

Confirmation Prompt

This is a destructive, full-sync push: any remote agent not present locally is deleted. Before pushing, the CLI warns you and asks for confirmation:

$ npx base44 agents push

Found 2 agents to push
⚠ This will replace all remote agent configs with your local agents and delete any not present locally.
? Are you sure you want to continue? › Yes

In non-interactive mode (--json, CI/CD, no TTY), you must pass -y/--yes or the command throws.

Output

$ npx base44 agents push --yes

Found 2 agents to push
Pushing agents to Base44...

Created: support_agent
Updated: order_bot
Deleted: old_agent

✓ Agents pushed to Base44

Agent Synchronization

The push operation synchronizes your local agents with Base44:

  • Created: New agents that didn't exist in Base44
  • Updated: Existing agents with modified configuration
  • Deleted: Agents that were removed from your local configuration

Warning: This is a full sync operation. Agents removed locally will be deleted from Base44.

Error Handling

If no agents are found in your project:

$ npx base44 agents push
No local agents found - this will delete all remote agents

If an agent has an invalid name:

$ npx base44 agents push
Error: Agent name must be lowercase alphanumeric with underscores

Agent Configuration Schema

Each agent file should be a .jsonc file in base44/agents/ with this structure:

{
  "name": "agent_name",              // Required: lowercase alphanumeric with underscores, 1-100 chars
  "description": "Brief description of what this agent does",  // Required: min 1 char
  "instructions": "Detailed instructions for the agent's behavior",  // Required: min 1 char
  "tool_configs": [                  // Optional: defaults to []
    // Entity tool - gives agent access to entity operations
    { "entity_name": "Task", "allowed_operations": ["read", "create", "update", "delete"] },
    // Backend function tool - gives agent access to a function
    { "function_name": "send_email", "description": "Send an email notification" },
    // Server route tool - gives agent access to one of a full-stack app's server routes
    { "tool_name": "order_summary", "route_path": "/api/orders/summary", "method": "get", "description": "Summarize the user's recent orders" }
  ],
  "memory_config": {                 // Optional: lets the agent remember facts across conversations
    "enabled": true,                 // Optional: defaults to true
    "scope": "both",                 // Optional: "global" | "user" | "both", defaults to "both"
    "include_other_conversation_context": false,  // Optional: defaults to false
    "instructions": null             // Optional: string or null, custom guidance on what to remember
  },
  "whatsapp_greeting": "Hello! How can I help you today?"  // Optional
}

Naming rules:

  • Agent names must match pattern: /^[a-z0-9_]+$/ (lowercase alphanumeric with underscores only, 1-100 characters)
    • Valid: support_agent, order_bot, task_helper
    • Invalid: Support-Agent, OrderBot, task helper
  • Agent file names must use underscores (matching the agent name)
    • Valid: support_agent.jsonc, order_bot.jsonc
    • Invalid: support-agent.jsonc (hyphens not allowed)
  • Entity names in tool_configs must use PascalCase (matching the entity's name field)
    • Valid: "entity_name": "Task", "entity_name": "TeamMember"
    • Invalid: "entity_name": "task", "entity_name": "team_member"

Required fields:

  • name: Required, must follow naming rules above
  • description: Required, minimum 1 character
  • instructions: Required, minimum 1 character
  • tool_configs: Optional, defaults to empty array
  • memory_config: Optional, see Memory Configuration below
  • whatsapp_greeting: Optional

Server Route Tools

In a full-stack app, an agent can call one of the app's own server routes as a tool:

Field Type Default Description
tool_name string required Name the agent calls the tool by: 1-64 letters, digits, _ or -
route_path string required App-relative route path, e.g. /api/orders/summary. Must start with a single / (no //), at most 2000 characters, no query string or fragment
method "get" | "post" | "put" | "patch" | "delete" "post" HTTP method used to call the route
description string "agent server route" What the route does, when to use it, and the input it expects
"tool_configs": [
  { "tool_name": "order_summary", "route_path": "/api/orders/summary", "method": "get", "description": "Summarize the user's recent orders" }
]

The agent passes query parameters (and, for methods other than get, a JSON body) when it calls the tool, so keep them out of route_path.

Memory Configuration

memory_config lets an agent remember facts across conversations. To disable memory, set "enabled": false explicitly — if you omit memory_config entirely, the backend applies its default and memory is enabled.

Field Type Default Description
enabled boolean true Whether the agent retains memory across conversations
scope "global" | "user" | "both" "both" "global" shares memory across all end users, "user" scopes memory to each individual end user, "both" does both
include_other_conversation_context boolean false Whether the agent can also draw on context from the user's other conversations
instructions string | null null Optional custom instructions guiding what the agent should remember
"memory_config": {
  "enabled": true,
  "scope": "user",
  "include_other_conversation_context": false,
  "instructions": "Remember the user's preferred name and timezone."
}

Common Mistake: Wrong tool_configs Format

WRONG - Do NOT use tools with type and entity:

{
  "name": "my_agent",
  "tools": [                                    // ❌ WRONG
    { "type": "entity_query", "entity": "Task" }
  ]
}

CORRECT - Use tool_configs with entity_name and allowed_operations:

{
  "name": "my_agent",
  "tool_configs": [                             // ✅ CORRECT
    { "entity_name": "Task", "allowed_operations": ["read"] }
  ]
}

Best Practices for Agent Instructions

When giving agents access to entities, be explicit in the instructions about using the tools:

{
  "name": "support_agent",
  "instructions": "You are a helpful support agent.\n\nIMPORTANT: You have access to customer data through entity tools. When users ask about their orders or account:\n1. ALWAYS use the Order entity tool to query their order history\n2. Use the Customer entity tool to look up account details\n3. Analyze the data and provide personalized responses\n\nAlways query the relevant entities first before answering questions about user data.",
  "tool_configs": [
    { "entity_name": "Order", "allowed_operations": ["read"] },
    { "entity_name": "Customer", "allowed_operations": ["read"] }
  ]
}

Without explicit instructions to use the entity tools, the agent may not proactively query user data when asked.

Use Cases

  • After defining new agents in your project
  • When modifying existing agent configurations
  • To sync agent changes before testing
  • As part of your development workflow when agent behavior changes

Notes

  • This command syncs the agent configuration, not conversation data
  • Changes are applied to your Base44 project immediately
  • Make sure to test agent changes in a development environment first
  • Agent definitions are located in the base44/agents/ directory
  • Use base44 agents pull to download agents from Base44

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning20d5 checks · Risk SAFE
  • Gen Agent Trust Hub21d

    The skill provides a comprehensive interface for managing Base44 projects using the base44 CLI tool. It includes detailed instructions for project initialization, resource configuration (entities, functions, actors, agents, connectors), authentication, and deployment. All identified behaviors are consistent with the tool's intended role as a developer utility and utilize vendor-controlled resources.

  • Socket20d

    No alerts

  • Snyk21d

    Risk: LOW · No issues

  • Runlayer8mo

    5/27 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 5bb6707. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 weeks ago
metadata
{
  "sourcePackage": {
    "name": "base44",
    "version": "0.1.7"
  }
}
  • CLI
  • TypeScript
  • base44
  • project-management
  • deployment
  • entities
  • authentication
  • backend-functions
  • nodejs

README badge

README badge for base44/skills/base44-cli

Manage Base44 projects using the Base44 CLI tool via npm (npx base44). Covers project creation, authentication, entity schema configuration, deployment, and resource management for Base44 apps that combine frontend code with a base44/ configuration directory.

Generated from the current SKILL.md.

Should I use base44-cli or base44-sdk for my task?
Use base44-cli if you are creating a new project, initializing a project, deploying, or running CLI commands like `npx base44 login`. Use base44-sdk if you already have a `base44/config.jsonc` file and are building features or writing code in an existing project.
Do I need to install base44 globally or can I use npx?
Install base44 as a dev dependency (`npm install --save-dev base44`) and access it via `npx base44 <command>`. Never call `base44` directly or install it globally.
What should I do if I have an existing Base44 app that was provisioned externally?
Run `npx base44 scaffold` to set up local files for that existing app. Do not run `npx base44 create`, which would create a duplicate app.
What is the mandatory authentication check I need to perform?
At the start of each session, run `npx base44 whoami` to check if you are authenticated. If the command fails, run `npx base44 login` and wait for confirmation before proceeding with other CLI operations.
What goes in base44/config.jsonc?
The project name (required), description, directory paths for entities, functions, agents, and connectors, and optional site configuration including build command, install command, serve command, and output directory.

Generated from the current SKILL.md. These answers refresh after source changes.