Skip to content

Commit cc49650

Browse files
feat: added project add command (#24)
1 parent b05fe0b commit cc49650

4 files changed

Lines changed: 944 additions & 5 deletions

File tree

README.md

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,33 @@ createos --help
149149

150150
### Projects
151151

152-
| Command | Description |
153-
| -------------------------- | ------------------- |
154-
| `createos projects list` | List all projects |
155-
| `createos projects get` | Get project details |
156-
| `createos projects delete` | Delete a project |
152+
| Command | Description |
153+
| -------------------------- | ---------------------- |
154+
| `createos projects add` | Create a new project |
155+
| `createos projects list` | List all projects |
156+
| `createos projects get` | Get project details |
157+
| `createos projects delete` | Delete a project |
158+
159+
**`projects add` flags:**
160+
161+
| Flag | Description |
162+
| -------------------- | ---------------------------------------------------------------- |
163+
| `--name` | Display name for the project |
164+
| `--unique-name` | Unique name (lowercase, 4-32 chars) |
165+
| `--type` | Project type: `vcs`, `image`, or `upload` |
166+
| `--description` | Project description |
167+
| `--framework` | Framework (e.g. `nextjs`, `reactjs-spa`, `vite-spa`) |
168+
| `--runtime` | Runtime (e.g. `node:20`, `golang:1.25`, `dockerfile`) |
169+
| `--port` | Port the application listens on |
170+
| `--install-command` | Install command (e.g. `npm install`) |
171+
| `--build-command` | Build command (e.g. `npm run build`) |
172+
| `--run-command` | Run command (e.g. `npm run start`) |
173+
| `--build-dir` | Build output directory |
174+
| `--build-flag` | Build flags |
175+
| `--run-flag` | Run flags |
176+
| `--directory-path` | Root directory path (default: `.`) |
177+
| `--github-owner` | GitHub account/org name (VCS projects, non-interactive) |
178+
| `--repo` | GitHub repository full name, e.g. `owner/repo` (VCS, non-interactive) |
157179

158180
### Deploy
159181

@@ -312,6 +334,17 @@ createos deploy --dir ./dist # upload project — zip a
312334
createos deploy --branch main # VCS project — deploy from main
313335
createos deploy --image nginx:latest # image project
314336

337+
# Create projects
338+
createos projects add --name "My API" --unique-name my-api \
339+
--type image --port 8080
340+
341+
createos projects add --name "My App" --unique-name my-app \
342+
--type upload --framework nextjs --runtime node:20
343+
344+
createos projects add --name "My App" --unique-name my-app \
345+
--type vcs --framework nextjs --runtime node:20 \
346+
--github-owner myorg --repo myorg/my-app
347+
315348
# Projects
316349
createos projects get --project <id>
317350
createos projects delete --project <id> --force

0 commit comments

Comments
 (0)