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.

referencesscaffold.md

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

base44 scaffold

Scaffolds a local project for an existing Base44 app. Use this when you already have a Base44 app (you know its app ID) and want to set up the local project files to work with it. Runs fully non-interactively, so it is safe for agents and CI.

Critical: When to Use Scaffold vs Create vs Link

Scenario Command
Starting fresh, want a NEW Base44 app + project from a template npx base44 create
You already have a Base44 app (by ID) and want local files for it npx base44 scaffold
Have a local base44/config.jsonc but no .app.jsonc npx base44 link

Syntax

npx base44 scaffold [name] [options]

Scaffolds into the current directory.

Arguments & Options

Argument/Option Description Required
name Project name (positional). Defaults to the current directory name. No
--app-id <id> Existing Base44 app ID. Falls back to the BASE44_APP_ID environment variable. Yes*
--no-skills Skip AI agent skills installation (skills are installed by default) No

*The app ID is required: provide it via --app-id or the BASE44_APP_ID environment variable. If neither is set, the command fails.

Examples

# Scaffold the current directory for an existing app
npx base44 scaffold --app-id app_123

# Scaffold the current directory with an explicit project name
npx base44 scaffold my-app --app-id app_123

# Provide the app ID via environment variable instead of the flag
BASE44_APP_ID=app_123 npx base44 scaffold

# Scaffold without installing AI agent skills
npx base44 scaffold --app-id app_123 --no-skills

What It Does

  1. Resolves the app ID from --app-id or the BASE44_APP_ID environment variable
  2. Applies the backend-only template to the current directory
  3. Registers the project files against the existing app and writes base44/.app.jsonc with the app ID
  4. Installs AI agent skills (unless --no-skills is passed)

Provisioning Handoff (Stripe Projects / projects.dev)

scaffold is the command to run after a Base44 app is provisioned through a Stripe Projects / projects.dev flow. Use scaffold, not create — the app already exists, so create would create a duplicate.

When Base44 is provisioned that way, the credentials are injected into the environment under a BASE44_PROJECTS_ prefix (e.g. BASE44_PROJECTS_BASE44_APP_ID, BASE44_PROJECTS_BASE44_ACCESS_TOKEN, BASE44_PROJECTS_BASE44_REFRESH_TOKEN). The CLI automatically normalizes these to the bare names it uses (BASE44_APP_ID, BASE44_ACCESS_TOKEN, …). As a result:

  • App ID is resolved from BASE44_APP_ID automatically — no --app-id flag needed.
  • Authentication is seeded from BASE44_ACCESS_TOKEN / BASE44_REFRESH_TOKEN — no interactive npx base44 login needed.

So the entire post-provisioning step is just:

npx base44 scaffold

Run it from the directory where you want the project files. After scaffolding, push resources with npx base44 deploy.

Notes

  • Template: Always uses the backend-only template (Base44 configuration only — no frontend is generated).
  • Non-interactive: Never prompts. It does not push entities or deploy the site. Use npx base44 deploy afterward to push resources.
  • Existing app only: Unlike create, this does not create a new Base44 app — it links local files to the app ID you supply.
  • Authentication: Requires you to be authenticated (run npx base44 login first).
  • The .app.jsonc file should be git-ignored (it contains your app ID).

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.