base44 connectors initiate
Initialize a connector on an app and start its OAuth flow. Unlikeconnectors push, this works projectless — it only needs an app id, not a local project directory.
Syntax
Options
| Option | Description | Required |
|---|---|---|
--integration-type <type> | Integration type to initiate (e.g. googlecalendar, gmail, slack) | Yes |
--scopes <scopes...> | OAuth scopes to request. Space- or comma-separated | No |
--app-id <id> | App to initiate the connector on. Falls back to BASE44_APP_ID or a linked local project | No |
Authentication
Required: Yes. If not authenticated, you’ll be prompted to login first.What It Does
- Starts (or re-scopes) the OAuth connection for the given integration type on the target app
- If already authorized with the requested scopes, reports that immediately
- Otherwise prints an authorization URL and, when interactive, opens it in a browser and polls until authorization completes
- Once authorized, run
base44 connectors pullto fetch the connector’s config to local files
Output
Declarative Scopes
Scopes passed toinitiate replace the connector’s existing scopes rather than merging with them — omitted scopes are dropped and the user is re-prompted to consent. Run connectors list-available (or connectors pull) first to see current scopes, then pass the full desired set (existing scopes you want to keep plus any new ones).
JSON Output
Pass the global--json flag for a machine-readable result. In this mode the CLI never opens a browser or polls — it just returns the redirectUrl for the caller to handle:
Error Handling
If a different user already authorized this connector:--integration-type is missing or invalid:
Use Cases
- Set up a connector on an app without a local project checkout (e.g. from an agent or CI)
- Re-scope an existing connector’s OAuth permissions
- Kick off authorization as a discrete step before
connectors pull
Related Commands
- connectors-list-available.md - List all available integration types
- connectors-pull.md - Pull connectors from Base44 to local files
- connectors-push.md - Push local connectors to Base44 (project-based full sync)
- connectors-create.md - How to create connector configuration files

