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.

referencesapi-fetch.md

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

base44 api fetch

Call any public Base44 API operation (Apps API and Workspace API) with your CLI login; no API key or personal access token is needed. Add --help after the method and path to print the operation's contract instead of calling it.

Find the method and path first with api search, api catalog or api grep.

Syntax

npx base44 api fetch <METHOD> <path> [options]
npx base44 api fetch <METHOD> <path> --help

Options

Option Description
<METHOD> HTTP method, e.g. GET or POST
<path> Path with any query string, e.g. "/api/apps/{app_id}/workflows/runs?status=failed". Quote it so the shell doesn't read the braces or the ?
-h, --help After a method and path, print that operation's contract (JSON) and send nothing; on its own, print the command's help
--body <json> Request body: inline JSON, @file.json, or @- to read it from stdin
--form <field> Multipart field: name=value, or name=@path to attach a file; add ;type=<media type> after the path to set its content type. Repeatable
--output <file> Save the response body to a file
--read-only Refuse, before sending, any operation the spec does not mark read-only
--refresh Fetch the API spec again instead of using the cached copy (kept 1 hour). Only matters with --help or --read-only, the only times fetch reads the spec

Authentication

Required: To call an operation, yes (npx base44 login). --help and a --read-only refusal send nothing and need no login.

The Contract (--help)

--help prints the operation's description, parameters, requestBodySchema and responseSchema as JSON (plus requestBodyContentType for a non-JSON body). A contract can run to tens of KB, so select the parts you need:

npx base44 api fetch PUT "/api/apps/{app_id}/seo/settings" --help | jq '.description, .requestBodySchema'

Read the description before calling: it often names the operation to use instead, or the other operations a task needs (a custom domain, for example, also needs DNS records and linking before it serves). It accepts the path template as is.

Path Placeholders

  • {app_id} is filled from --app-id, BASE44_APP_ID, or the linked project, so an endpoint from search or catalog can be passed as is.
  • Any other placeholder (e.g. {workflow_id}) must be replaced with a real value by hand; fetch fails before sending otherwise.
  • The workspace ID is never filled in: Workspace API operations take it as a workspaceId query parameter or a {workspace_id} path placeholder. Get it from base44 workspace list.
  • IDs for the next call: a create returns the new resource, including its id; put that into the next path's placeholder.

Read-Only Mode

--read-only refuses, before sending, any operation the spec doesn't mark read-only. Use it whenever you are only looking, so a wrong endpoint can't change anything.

  • Read-only is the spec's mark, not the HTTP method: some list operations are a POST (e.g. POST /api/workspace/members/list) and still pass.
  • The contract doesn't show the mark; api search <text> --read-only lists only the operations that have it.
  • It also refuses a path with an encoded /, \ or . (%2f, %5c, %2e), which it can't check.

Request Bodies

  • JSON: --body '{"key":"value"}', --body @payload.json, or --body @- < payload.json. Stdin is read only with @-.
  • Multipart: when the contract shows requestBodyContentType: multipart/form-data, use --form name=value and --form name=@path instead of --body. Don't combine --body and --form.

Output

The response body as the server sent it. Progress lines ("Loading the API spec", "Calling ...") go to stderr and stdout carries only the response, so pipe stdout alone into jq. Don't use 2>&1.

  • JSON is formatted in a terminal and passed through unchanged when piped.
  • Global --json keeps stdout machine-readable: a non-JSON text response is wrapped as {status, contentType, body}.
  • An empty response (e.g. a delete) prints {"status":204}.
  • A binary response isn't printed; it's described by status, contentType and bytes. Add --output <file> to save it.
  • With --output, it prints status, contentType, bytes and the output path.

Errors

  • Exit code is 0 on success and 1 on failure. A failure prints the server's error and a request ID to stderr; with --json, stdout gets {error, code, details}.
  • Rate limit: the error also says how long to wait.
  • A 403 isn't always about permissions: read the response body's reason (some operations need a published app, for example).
  • No operation matches under --help or --read-only: the cached spec may predate the route, so add --refresh, or find the right path with api search.
  • Undoing a write is up to the API: read the description before writing, since some changes can't be fully reverted.

Examples

# Read a contract, then call while only looking
npx base44 api fetch PUT "/api/apps/{app_id}/seo/settings" --help | jq '.description, .requestBodySchema'
npx base44 api fetch GET "/api/apps/{app_id}/seo/settings" --read-only

# Against a specific app without a linked project
npx base44 api fetch GET "/api/apps/{app_id}/custom-domains" --read-only --app-id app_123

# Check which entities an app has, without a local project
npx base44 api fetch GET "/api/apps/{app_id}/entity-schemas" --read-only --app-id app_123

# Send a JSON body from a file, or from stdin
npx base44 api fetch POST "/api/apps/{app_id}/<path>" --body @payload.json
cat payload.json | npx base44 api fetch POST "/api/apps/{app_id}/<path>" --body @-

# A Workspace API call (find the ID with base44 workspace list)
npx base44 api fetch GET "/api/workspace/groups?workspaceId=<workspace-id>"

# Import entity records from a CSV file, sent as multipart (the entity must exist)
npx base44 api fetch POST "/api/apps/{app_id}/entities/Task/import" --form "file=@tasks.csv;type=text/csv"

# Save a binary response: download the app's source code without creating a new app
npx base44 api fetch GET "/api/apps/{app_id}/coding/export-to-zip" --read-only --output ./app.zip

Notes

  • fetch has no timeout: a call such as a deploy can take minutes.
  • fetch doesn't validate the request itself; the server does.

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.