base44 0.0.14 → 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
@@ -23,12 +23,9 @@ base44 login
23
23
  # 2. Create a new project
24
24
  base44 create
25
25
 
26
- # 3. Push entities to Base44
27
- base44 entities push
28
-
29
- # 4. Build and deploy your site
26
+ # 3. Deploy everything (entities, functions, and site)
30
27
  npm run build
31
- base44 site deploy
28
+ base44 deploy
32
29
  ```
33
30
 
34
31
  ## Commands
@@ -46,6 +43,36 @@ base44 site deploy
46
43
  | Command | Description |
47
44
  |---------|-------------|
48
45
  | `base44 create` | Create a new Base44 project from a template |
46
+ | `base44 link` | Link a local project to Base44 (create new or link existing) |
47
+ | `base44 dashboard` | Open the app dashboard in your browser |
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
+
71
+ ### Deployment
72
+
73
+ | Command | Description |
74
+ |---------|-------------|
75
+ | `base44 deploy` | Deploy all resources (entities, functions, and site) |
49
76
 
50
77
  ### Entities
51
78
 
@@ -53,7 +80,13 @@ base44 site deploy
53
80
  |---------|-------------|
54
81
  | `base44 entities push` | Push local entity schemas to Base44 |
55
82
 
56
- ### Site Deployment
83
+ ### Functions
84
+
85
+ | Command | Description |
86
+ |---------|-------------|
87
+ | `base44 functions deploy` | Deploy local functions to Base44 |
88
+
89
+ ### Site
57
90
 
58
91
  | Command | Description |
59
92
  |---------|-------------|
@@ -68,7 +101,6 @@ Base44 projects are configured via a `config.jsonc` (or `config.json`) file in t
68
101
  ```jsonc
69
102
  // base44/config.jsonc
70
103
  {
71
- "id": "your-app-id", // Set after project creation
72
104
  "name": "My Project",
73
105
  "entitiesDir": "./entities", // Default: ./entities
74
106
  "functionsDir": "./functions", // Default: ./functions
@@ -78,17 +110,15 @@ Base44 projects are configured via a `config.jsonc` (or `config.json`) file in t
78
110
  }
79
111
  ```
80
112
 
81
- ### Environment Variables
113
+ ### App Configuration
82
114
 
83
- | Variable | Description | Default |
84
- |----------|-------------|---------|
85
- | `BASE44_CLIENT_ID` | Your app ID | - |
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`:
86
116
 
87
- You can set these in a `.env.local` file in your `base44/` directory:
88
-
89
- ```bash
90
- # base44/.env.local
91
- BASE44_CLIENT_ID=your-app-id
117
+ ```jsonc
118
+ // base44/.app.jsonc
119
+ {
120
+ "id": "your-app-id"
121
+ }
92
122
  ```
93
123
 
94
124
  ## Project Structure
@@ -99,10 +129,14 @@ A typical Base44 project has this structure:
99
129
  my-project/
100
130
  ├── base44/
101
131
  │ ├── config.jsonc # Project configuration
102
- │ ├── .env.local # Environment variables (git-ignored)
132
+ │ ├── .app.jsonc # App ID (git-ignored)
103
133
  │ ├── entities/ # Entity schema files
104
134
  │ │ ├── user.jsonc
105
135
  │ │ └── product.jsonc
136
+ │ └── functions/ # Backend functions
137
+ │ └── my-function/
138
+ │ ├── config.jsonc
139
+ │ └── index.js
106
140
  ├── src/ # Your frontend code
107
141
  ├── dist/ # Built site files (for deployment)
108
142
  └── package.json