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.

referencesconnectors-push.md

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

base44 connectors push

Push local connector configurations to Base44, adding new connectors, updating scopes, and handling OAuth authorization. Remote connectors missing locally are only removed with --force.

Usage

npx base44 connectors push [--dir <path>] [--force] [-y]

Options

Option Description Required
--dir <path> Directory to read connector files from. Only used with --app-id (no local project); defaults to ./connectors No
--force Remove connectors on Base44 that are not in your local files No
-y, --yes Skip the --force confirmation prompt No

Removing Connectors (--force)

By default, connectors push only adds and updates — remote connectors that aren't in your local files are left alone. This matches functions deploy, and keeps connectors set up outside the project (for example Stripe installed through the API or MCP, or a connector created with connectors initiate) from being removed by accident.

Pass --force to also remove remote connectors that aren't in your local files. The CLI warns you and asks for confirmation:

$ npx base44 connectors push --force

Found 2 connectors to push: googlecalendar, slack
⚠ This will remove any connectors on Base44 that are not present locally.
? Are you sure you want to continue? › Yes

In non-interactive mode (--json, CI/CD, no TTY), --force requires -y/--yes or the command throws. Without --force, there is no confirmation prompt.

Warning: Removing Stripe deletes its sandbox, keys, and claim link. Backend functions that use a removed connector fail until it is set up again.

If your connectors directory is empty, the command exits with No local connectors found - nothing to push and removes nothing, even with --force.

Projectless Mode

connectors push can run without a local project by passing --app-id (or setting BASE44_APP_ID). In that mode there's no config.jsonc to read connectors from, so files are read from ./connectors by default — override with --dir.

JSON Output

Pass the global --json flag to get a machine-readable result instead of human-oriented log lines and prompts (OAuth authorization is skipped automatically in --json mode, same as any non-interactive run):

npx base44 connectors push --json

What It Does

  1. Reads local connectors from your base44/connectors/ directory
  2. Syncs with Base44 - updates scopes for existing connectors
  3. Adds new connectors - new OAuth connector types trigger authorization; Stripe is provisioned automatically
  4. Removes unlisted connectors (only with --force) - connectors not in your local files are removed from Base44

OAuth Authorization Flow

When you add a new connector, it needs to be authorized:

  1. The CLI detects which connectors need authorization
  2. You're prompted: "Open browser to authorize now?"
  3. If you accept, the browser opens to the OAuth provider (Google, Slack, etc.)
  4. You log into your account and approve the requested permissions
  5. The browser closes and the CLI confirms authorization

Important: You choose which account to connect by logging into it during the OAuth flow. For example, if you have multiple Google accounts, you select which one to use in the Google login screen.

Example Output

Pushing connectors (no new authorization needed)

Found 2 connectors to push: googlecalendar, slack
✓ Connectors pushed

Summary:
  Synced: googlecalendar, slack

Pushing new connectors (authorization required)

Found 3 connectors to push: googlecalendar, slack, notion
✓ Connectors pushed

2 connector(s) require authorization in your browser:
  slack: https://auth.base44.io/oauth/...
  notion: https://auth.base44.io/oauth/...

? Open browser to authorize now? › Yes

Opening browser for slack...
✓ slack authorization complete

Opening browser for notion...
✓ notion authorization complete

Summary:
  Synced: googlecalendar
  Added: slack, notion

Pushing Stripe (no OAuth required)

Stripe is provisioned automatically — no browser flow is needed:

Found 2 connectors to push: googlecalendar, stripe
✓ Connectors pushed

Summary:
  ✓ Stripe sandbox provisioned
    Claim your Stripe sandbox: https://dashboard.stripe.com/...
    Connectors dashboard: https://app.base44.com/...
  Synced: googlecalendar

Removing connectors

If you delete a connector file locally and push with --force, it is removed (without --force, it stays on Base44):

Found 1 connectors to push: googlecalendar
✓ Connectors pushed

Summary:
  Synced: googlecalendar
  Removed: slack

CI/CD Environments

In non-interactive environments (no TTY, such as CI/CD pipelines), the OAuth flow is skipped automatically:

Skipped OAuth in non-interactive mode. Run 'base44 connectors push' locally or open the links above to authorize.

You must run npx base44 connectors push locally to complete authorization for new connectors.

Skipping Authorization

If you choose not to authorize immediately, the connectors remain in a pending state:

? Open browser to authorize now? › No

Authorization skipped. Pending: slack, notion. Run 'base44 connectors push' again to complete.

Run the command again when you're ready to authorize.

Summary Status Meanings

Status Meaning
Provisioned Stripe sandbox was created automatically (no OAuth needed)
Synced Connector already existed, scopes updated if needed
Added New connector successfully authorized via OAuth
Removed Connector was deleted from Base44 (not in local files, --force only)
Failed Authorization timed out, failed, or was skipped

Troubleshooting

Problem Solution
Authorization timed out Re-run npx base44 connectors push and complete OAuth faster
Authorization failed Check that you approved all requested permissions
Wrong account connected Remove the connector file, run connectors push --force to delete it, then add it back and authorize with the correct account
Browser didn't open Copy the URL shown in the terminal and open it manually

Related Commands

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.