base44 connectors push
Push local connector configurations to Base44, synchronizing scopes and handling OAuth authorization.Usage
Options
Confirmation Prompt
This push overwrites your app’s connectors with your local copy and removes any not present locally. Before pushing, the CLI warns you and asks for confirmation:--json, CI/CD, no TTY), you must pass -y/--yes or the command throws.
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):
What It Does
- Reads local connectors from your
base44/connectors/directory - Syncs with Base44 - updates scopes for existing connectors
- Adds new connectors - new OAuth connector types trigger authorization; Stripe is provisioned automatically
- Removes unlisted connectors - connectors not in your local files are removed from Base44
OAuth Authorization Flow
When you add a new connector, it needs to be authorized:- The CLI detects which connectors need authorization
- You’re prompted: “Open browser to authorize now?”
- If you accept, the browser opens to the OAuth provider (Google, Slack, etc.)
- You log into your account and approve the requested permissions
- The browser closes and the CLI confirms authorization
Example Output
Pushing connectors (no new authorization needed)
Pushing new connectors (authorization required)
Pushing Stripe (no OAuth required)
Stripe is provisioned automatically — no browser flow is needed:Removing connectors
If you delete a connector file locally and push, it will be removed:CI/CD Environments
In non-interactive environments (no TTY, such as CI/CD pipelines), the OAuth flow is skipped automatically: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:Summary Status Meanings
Troubleshooting
Related Commands
- connectors-create.md - How to create connector configuration files
- connectors-pull.md - Pull connectors from Base44 to local files