@base44-preview/cli 0.0.16-pr.95.3b2ce0c → 0.0.17-pr.104.ad47aa8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +56 -2
  2. package/dist/cli/index.js +936 -148
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -58,15 +58,15 @@ base44 link
58
58
  base44 link --create --name "my-app" --description "My app description"
59
59
 
60
60
  # Link to an existing project by ID (non-interactive)
61
- base44 link --existing <app-id>
61
+ base44 link --projectId <app-id>
62
62
  ```
63
63
 
64
64
  | Option | Description |
65
65
  |--------|-------------|
66
66
  | `-c, --create` | Create a new project (skip selection prompt) |
67
- | `-e, --existing <id>` | Link to an existing project by ID |
68
67
  | `-n, --name <name>` | Project name (required with --create) |
69
68
  | `-d, --description <desc>` | Project description (optional) |
69
+ | `-p, --projectId <id>` | Link to an existing project by ID (skips selection prompt) |
70
70
 
71
71
  ### Deployment
72
72
 
@@ -92,6 +92,60 @@ base44 link --existing <app-id>
92
92
  |---------|-------------|
93
93
  | `base44 site deploy` | Deploy built site files to Base44 hosting |
94
94
 
95
+ ### Connectors
96
+
97
+ Manage OAuth integrations to connect your app with external services. Connectors are stored in the `connectors` property of your project's `config.jsonc` file.
98
+
99
+ | Command | Description |
100
+ |---------|-------------|
101
+ | `base44 connectors add [type]` | Add and connect an OAuth integration |
102
+ | `base44 connectors list` | List all connectors (local and connected) |
103
+ | `base44 connectors push` | Sync connectors with backend (connect new, remove missing) |
104
+ | `base44 connectors remove [type]` | Remove an integration |
105
+ | `base44 connectors remove [type] --hard` | Permanently remove an integration |
106
+
107
+ **Supported integrations:** Slack, Google Calendar, Google Drive, Gmail, Google Sheets, Google Docs, Google Slides, Notion, Salesforce, HubSpot, LinkedIn, TikTok
108
+
109
+ **Example workflow:**
110
+ ```bash
111
+ # Add a connector interactively (saves to config.jsonc and opens OAuth)
112
+ base44 connectors add slack
113
+
114
+ # List connectors showing local vs connected status
115
+ base44 connectors list
116
+ # Output:
117
+ # ● Slack - user@example.com
118
+ # ○ Google Calendar (not connected)
119
+
120
+ # Sync all connectors (connects new, removes missing from config)
121
+ base44 connectors push
122
+ # Output:
123
+ # 1 connector to connect:
124
+ # + Google Calendar
125
+ # 1 connector to remove:
126
+ # - Notion (user@example.com)
127
+ # Apply 2 changes? (Y/n)
128
+
129
+ # Remove a single connector
130
+ base44 connectors remove slack
131
+ ```
132
+
133
+ **Configuration** (`base44/config.jsonc`):
134
+ ```jsonc
135
+ {
136
+ "name": "my-app",
137
+ "connectors": {
138
+ "slack": {},
139
+ "googlecalendar": { "scopes": ["calendar.readonly"] }
140
+ }
141
+ }
142
+ ```
143
+
144
+ Once connected, use the SDK's `connectors.getAccessToken()` to retrieve tokens:
145
+ ```javascript
146
+ const token = await base44.connectors.getAccessToken("slack");
147
+ ```
148
+
95
149
  ## Configuration
96
150
 
97
151
  ### Project Configuration