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.

referencesactors-deploy.md

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

base44 actors deploy

Deploy local actor definitions to Base44.

Syntax

npx base44 actors deploy [names...]

Options

Option Description Required
[names...] One or more actor names to deploy (deploys all if omitted). Space- or comma-separated No

Authentication

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

What It Does

  1. Scans the base44/actors/ directory (or actorsDir from base44/config.jsonc) for actor definitions
  2. Discovers actors from entry.ts/entry.js files — the containing folder is the actor name
  3. Displays the count of actors to be deployed
  4. Uploads each actor's folder (all *.js, *.ts, *.json, *.jsonc files) to Base44, one actor at a time
  5. Reports the results: deployed, unchanged, and failed counts

Prerequisites

  • Must be run from a Base44 project directory
  • Project must have actor definitions in the base44/actors/ folder
  • Each actor is a folder with entry.ts (or entry.js) that default-exports a class extending Actor

Examples

# Deploy all actors
npx base44 actors deploy

# Deploy specific actors
npx base44 actors deploy ChatRoom BoardRoom

# Comma-separated works too
npx base44 actors deploy ChatRoom,BoardRoom

Output

$ npx base44 actors deploy

◆ Found 2 actors to deploy
◇ [1/2] Deploying ChatRoom...
✓ ChatRoom                     deployed (1.4s)
◇ [2/2] Deploying BoardRoom...
✓ BoardRoom                    unchanged

└ 1 deployed, 1 unchanged

Exit Codes

  • Exit code 0: All actors deployed successfully (or unchanged)
  • Exit code 1: One or more actors failed to deploy

A failing actor does not abort the run — the remaining actors are still attempted, then the command prints the full summary and exits with code 1. This makes it safe to use in CI pipelines where a partial failure should block the build.

Deploying as Part of the Project

npx base44 deploy includes actors automatically, in this order:

  1. Entities
  2. Functions
  3. Actors
  4. Agent skills
  5. Agents
  6. Auth config
  7. Connectors
  8. Site

The confirmation summary lists the actor count alongside the other resources.

Deleting a Deployed Actor

npx base44 actors delete ChatRoom              # one actor
npx base44 actors delete ChatRoom BoardRoom    # several (comma-separated also works)

This tears the actor down on the server: it destroys the published script, so live clients lose the room and a later actors deploy starts it fresh. It is a remote operation — the local folder is untouched, and the actor does not need to still exist on disk for it to work. Delete the folder yourself if you don't want the next deploy to recreate the actor.

At least one name is required. A name the server doesn't know is reported as not found rather than an error, so re-running the command is safe:

$ npx base44 actors delete ChatRoom
✓ ChatRoom deleted
└ Actor "ChatRoom" deleted

Configuration

The actors directory is configurable in base44/config.jsonc:

{
  "name": "My App",
  "actorsDir": "./actors"   // Optional: default "actors"
}

Error Handling

If no actors are found in your project:

$ npx base44 actors deploy
No actors found. Create actors in the 'actors' directory.

If a specified actor name doesn't exist locally:

$ npx base44 actors deploy Nonexistent
error: Actor not found in project: Nonexistent

If entry.ts sits directly in the actors directory:

$ npx base44 actors deploy
error: entry.ts found directly in the actors directory — it must be inside a named subfolder

Troubleshooting

Error Solution
No actors found Ensure actors exist as base44/actors/<Name>/entry.ts
Actor not found in project: X Check the spelling; the actor name is the folder name, case-sensitive
entry.ts found directly in the actors directory Move it into a named subfolder (base44/actors/ChatRoom/entry.ts)
Duplicate actor name One folder holds both entry.js and entry.ts — keep a single entry file
Invalid actor name '<name>' Actor names must match [A-Za-z_][A-Za-z0-9_]* (max 128 chars, no /, -, . or :) and not be a JavaScript reserved word. Rename the folder in PascalCase
Invalid actor name '<name>' — actors cannot be nested Flatten to one folder level, or rename a helper you called entry.ts (every entry file under base44/actors/ counts as an actor)
'X' exists as both a backend function and an actor Actors and functions share one deploy namespace — rename one of them
'X' cannot have automations Actors serve only the realtime WebSocket path; move automation-triggered work into a backend function
Deploy rejects the actor as needing the Cloudflare backend Actors run only on the Cloudflare runtime. A backend-less app is activated automatically by this command, but an app already on the Deno runtime cannot host actors and is rejected — migrate the backend first

The name and nesting checks run locally at discovery, before anything uploads, so they cost no network round-trip and cannot leave a deploy half-applied. Everything else in this table comes back from the server.

Differences from functions deploy

Capability Functions Actors
Deploy all / by name Yes Yes
delete subcommand Yes Yes — base44 actors delete <names...>
--force prune of removed remotes Yes No
list / pull subcommands Yes No
base44/shared/ uploaded with the resource Yes No — only the actor's own folder
Local base44 dev runtime Yes No — verify against a deployed actor
Names may be nested / path-like Yes (foo/bar) No — one folder level, and a JS identifier

Both deploy sequentially, one item at a time. A failing item does not stop its siblings — the remaining actors (or functions) are still attempted — but it does abort the remaining stages of base44 deploy, so a bad actor blocks everything after step 3 (agent skills, agents, auth, connectors, site).

Use Cases

  • After creating a new actor in your project
  • When modifying an actor's logic or message protocol
  • To ship realtime changes before testing them in the app
  • As part of your deploy workflow whenever realtime behavior changes

Notes

  • Deploy results per actor: deployed, unchanged, or error
  • Changes are applied to your Base44 project immediately and served to connecting clients
  • The whole actor folder ships on every deploy; anything the entry does not import is dropped from the bundle
  • Actor definitions live in the base44/actors/ directory, one folder per actor
  • For how to create actors, see actors-create.md
  • For connecting to a deployed actor from your app, see the base44-sdk skill's actors.md

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.