base44 0.0.15 → 0.0.16

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.
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 |
@@ -79,7 +101,6 @@ Base44 projects are configured via a `config.jsonc` (or `config.json`) file in t
79
101
  ```jsonc
80
102
  // base44/config.jsonc
81
103
  {
82
- "id": "your-app-id", // Set after project creation
83
104
  "name": "My Project",
84
105
  "entitiesDir": "./entities", // Default: ./entities
85
106
  "functionsDir": "./functions", // Default: ./functions
@@ -89,17 +110,15 @@ Base44 projects are configured via a `config.jsonc` (or `config.json`) file in t
89
110
  }
90
111
  ```
91
112
 
92
- ### Environment Variables
93
-
94
- | Variable | Description | Default |
95
- |----------|-------------|---------|
96
- | `BASE44_CLIENT_ID` | Your app ID | - |
113
+ ### App Configuration
97
114
 
98
- You can set these in a `.env.local` file in your `base44/` directory:
115
+ Your app ID is stored in a `.app.jsonc` file in the `base44/` directory. This file is created automatically when you run `base44 create` or `base44 link`:
99
116
 
100
- ```bash
101
- # base44/.env.local
102
- BASE44_CLIENT_ID=your-app-id
117
+ ```jsonc
118
+ // base44/.app.jsonc
119
+ {
120
+ "id": "your-app-id"
121
+ }
103
122
  ```
104
123
 
105
124
  ## Project Structure
@@ -110,7 +129,7 @@ A typical Base44 project has this structure:
110
129
  my-project/
111
130
  ├── base44/
112
131
  │ ├── config.jsonc # Project configuration
113
- │ ├── .env.local # Environment variables (git-ignored)
132
+ │ ├── .app.jsonc # App ID (git-ignored)
114
133
  │ ├── entities/ # Entity schema files
115
134
  │ │ ├── user.jsonc
116
135
  │ │ └── product.jsonc