You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/developers/cli-tools.mdx
+55-80Lines changed: 55 additions & 80 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,35 +78,28 @@ npx objectstack --version
78
78
### Create a New Project
79
79
80
80
```bash
81
-
#Interactive mode
82
-
objectstack init
81
+
#General syntax
82
+
objectstack create <type><name>
83
83
84
-
#Or specify project name
85
-
objectstack init my-app
84
+
#Create a new example application (Todo list)
85
+
objectstack create example my-todo-app
86
86
87
-
#With template
88
-
objectstack init my-app --template=crm
87
+
#Create a new plugin
88
+
objectstack create plugin my-plugin
89
89
```
90
90
91
-
**Available Templates:**
91
+
**Available Types:**
92
92
93
-
-`blank` - Minimal setup (default)
94
-
-`crm` - Customer relationship management
95
-
-`ecommerce` - E-commerce platform
96
-
-`saas` - Multi-tenant SaaS starter
97
-
-`helpdesk` - Ticketing system
93
+
-`example` - A functional example application
94
+
-`plugin` - Reusable plugin structure
98
95
99
96
**Project Structure:**
100
97
101
98
```
102
-
my-app/
99
+
my-todo-app/
103
100
├── src/
104
-
│ ├── objects/ # Object definitions
105
-
│ ├── views/ # UI views
106
-
│ ├── flows/ # Business logic flows
107
-
│ ├── plugins/ # Custom plugins
101
+
│ ├── domains/ # Domain logic (Objects)
108
102
│ └── index.ts # Entry point
109
-
├── tests/
110
103
├── objectstack.config.ts # Project configuration
111
104
├── package.json
112
105
└── tsconfig.json
@@ -118,76 +111,58 @@ my-app/
118
111
119
112
### objectstack.config.ts
120
113
121
-
```typescript
122
-
import { defineConfig } from'@objectstack/cli';
114
+
ObjectStack uses a **Zero-Config** approach for development. You only need to define your Objects and Apps. The runtime, database, and server are auto-configured for you.
0 commit comments