Skip to main content
View Markdown

Create Application

The create command creates a local ZeyOS application by setting up the application manifest and default directory structure.

Bash
zeysdk create <APP_ID> [options]

Parameters

ParameterDescriptionRequiredExample
APP_IDApplication IDYesmy-app

Options

OptionDescriptionRequiredExample
--name <name>Display name; prompted when omittedNo--name="My App"
--vendor <vendor>Vendor nameNo--vendor="ACME Inc"
--verboseShow detailed outputNo--verbose

Process

  1. Input Validation

    • Requires an application ID
    • Uses the display name from --name or prompts for one
    • Uses the vendor name when provided
  2. Project Scaffolding

    • Refuses to run inside an existing app tree
    • Refuses to overwrite any existing target path
    • Creates the application directory named by APP_ID
    • Creates standard asset and configuration folders
    • Writes the initial zeyos.app.json manifest
  3. Initial Files

    • Creates default settings files
    • Creates an empty .zeysdk/sync.json
    • Creates an empty project README.md
    • Leaves the app ready for asset management and linking

Creates a new ZeyOS application with the following structure:

Text
my-app/
|-- .zeysdk/
| `-- sync.json
|-- assets/
|-- resources/
|-- services/
|-- settings/
| |-- defaultsettings.json
| |-- settingscode.ixml
| `-- usersettingscode.ixml
|-- weblets/
|-- README.md
`-- zeyos.app.json

Examples

Bash
zeysdk create my-app --name="My App"
zeysdk create customer-tools --name="Customer Tools" --vendor="ACME Inc"
zeysdk create reporting --name="Reporting" --verbose

Error Handling

ErrorDescriptionResolution
Missing app IDRequired application ID was not providedPass APP_ID
Missing nameDisplay name was not providedPass --name or enter one when prompted
Invalid app IDID has unsupported characters or punctuation at either endUse letters, numbers, dots, underscores, and hyphens, beginning and ending with a letter or number
Nested appCommand was run inside another appMove to a parent workspace directory
Directory existsTarget directory already existsChoose another APP_ID or directory
Write errorFiles could not be createdCheck local permissions

Notes

  • create only creates the local project structure
  • If scaffolding fails after the directory is created, the incomplete target is removed
  • Use zeysdk link to connect the app to an instance
  • Use zeysdk add to register new assets after creation
  • Keep APP_ID stable once the app is shared or deployed

Best Practices

  • Use lowercase, descriptive application IDs
  • Set --vendor when the app belongs to a company or team
  • Commit the generated project before making large changes
  • Link and push only after reviewing the generated manifest