project create
Create a new project on the Codika platform.Options
| Option | Description | Required |
|---|---|---|
--name <name> | Project name | Yes |
--description <description> | Project description | No |
--template-id <id> | Template ID for project setup | No (platform default) |
--organization-id <id> | Organization ID | For admin keys only |
--path <dir> | Write project.json to this directory | No |
--api-url <url> | Codika API URL | No |
--api-key <key> | Codika API key | No |
--json | JSON output | No |
Behavior
- Calls the Codika platform API to create the project
- Creates a project in the specified (or inferred) organization
- If
--pathis provided, writesproject.jsoncontainingprojectIdandorganizationId
The —path flag
Using--path . is recommended when creating a project for an existing use case folder. It writes project.json which enables:
- Org-aware profile selection during deployment
- Automatic process instance ID resolution for trigger and get commands
./project.json:
Examples
Output
Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | API error |
2 | CLI validation error (e.g., missing --name) |