@base44-preview/cli 0.0.15-pr.99.a90e72b → 0.0.16-pr.87.539c2ff

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 +23 -47
  2. package/dist/cli/index.js +7293 -7819
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -43,9 +43,31 @@ base44 deploy
43
43
  | Command | Description |
44
44
  |---------|-------------|
45
45
  | `base44 create` | Create a new Base44 project from a template |
46
- | `base44 link` | Link an existing local project to Base44 |
46
+ | `base44 link` | Link a local project to Base44 (create new or link existing) |
47
47
  | `base44 dashboard` | Open the app dashboard in your browser |
48
48
 
49
+ #### Link Command Options
50
+
51
+ The `link` command supports both creating new projects and linking to existing ones:
52
+
53
+ ```bash
54
+ # Interactive mode - choose to create new or link existing
55
+ base44 link
56
+
57
+ # Create a new project (non-interactive)
58
+ base44 link --create --name "my-app" --description "My app description"
59
+
60
+ # Link to an existing project by ID (non-interactive)
61
+ base44 link --existing <app-id>
62
+ ```
63
+
64
+ | Option | Description |
65
+ |--------|-------------|
66
+ | `-c, --create` | Create a new project (skip selection prompt) |
67
+ | `-e, --existing <id>` | Link to an existing project by ID |
68
+ | `-n, --name <name>` | Project name (required with --create) |
69
+ | `-d, --description <desc>` | Project description (optional) |
70
+
49
71
  ### Deployment
50
72
 
51
73
  | Command | Description |
@@ -70,52 +92,6 @@ base44 deploy
70
92
  |---------|-------------|
71
93
  | `base44 site deploy` | Deploy built site files to Base44 hosting |
72
94
 
73
- ### Connectors
74
-
75
- Manage OAuth integrations to connect your app with external services. Connectors are tracked in a local `connectors.jsonc` file and synced with the backend.
76
-
77
- | Command | Description |
78
- |---------|-------------|
79
- | `base44 connectors:add [type]` | Add and connect an OAuth integration |
80
- | `base44 connectors:list` | List all connectors (local and connected) |
81
- | `base44 connectors:push` | Connect all pending integrations from local config |
82
- | `base44 connectors:remove [type]` | Remove an integration |
83
- | `base44 connectors:remove [type] --hard` | Permanently remove an integration |
84
-
85
- **Supported integrations:** Slack, Google Calendar, Google Drive, Gmail, Google Sheets, Google Docs, Google Slides, Notion, Salesforce, HubSpot, LinkedIn, TikTok
86
-
87
- **Example workflow:**
88
- ```bash
89
- # Add connectors (saves to connectors.jsonc and opens OAuth)
90
- base44 connectors:add slack
91
- base44 connectors:add googlecalendar
92
-
93
- # List connectors showing local vs connected status
94
- base44 connectors:list
95
- # Output:
96
- # ● Slack - user@example.com
97
- # ○ Google Calendar (not connected)
98
-
99
- # Connect all pending integrations
100
- base44 connectors:push
101
-
102
- # Remove a connector
103
- base44 connectors:remove slack
104
- ```
105
-
106
- **Local configuration** (`base44/connectors.jsonc`):
107
- ```jsonc
108
- {
109
- "slack": {},
110
- "googlecalendar": { "scopes": ["calendar.readonly"] }
111
- }
112
- ```
113
-
114
- Once connected, use the SDK's `connectors.getAccessToken()` to retrieve tokens:
115
- ```javascript
116
- const token = await base44.connectors.getAccessToken("slack");
117
- ```
118
-
119
95
  ## Configuration
120
96
 
121
97
  ### Project Configuration