Code Generation

Commands

Generate production-ready code from your visual schemas using the AeroCoding CLI. Three commands: login, create, and update.

aerocoding login

Authenticate with your AeroCoding account.

[01]

Run the login command

A browser window will open for authentication. After logging in, your session is stored locally.

Terminal
aerocoding login

Info

You only need to login once. The CLI remembers your session until you explicitly logout.

aerocoding create

Generate code from your schema for the first time.

[01]

Run the create command

Navigate to your project directory and run:

Terminal
aerocoding create
[02]

Follow the interactive prompts

The CLI will guide you through the setup process:

1Select your organization
2Select your project
3Choose an architecture template
4Configure output directory
[03]

Review generated files

AeroCoding creates an aerocoding-manifest.json that tracks all generated files. This is used by the update command.

aerocoding-manifest.json
{
"projectId": "your-project-id",
"templateId": "clean-architecture-dotnet",
"generatedAt": "2024-01-15T10:30:00Z",
"files": [
{ "path": "src/Domain/Entities/User.cs", "hash": "abc123..." },
{ "path": "src/Application/UseCases/CreateUser.cs", "hash": "def456..." }
]
}

What gets generated

A complete, production-ready architecture based on your schema.

Backend

  • Entities, Value Objects, Enums
  • Use Cases (CQRS pattern)
  • DTOs and Mappers
  • Repository interfaces + implementations
  • REST Controllers with OpenAPI
  • Database configurations (EF Core)
  • Unit and integration tests

Frontend

  • Typed models and interfaces
  • API client with typed methods
  • Data fetching hooks
  • Validation schemas (Zod)
  • Form components

aerocoding update

Regenerate code after making changes to your schema.

[01]

Make changes in the editor

Add new entities, modify attributes, create relationships — whatever your domain needs.

[02]

Run the update command

From the same directory where you ran create:

Terminal
aerocoding update
[03]

Three-way merge (diff3)

The CLI uses diff3 to intelligently merge your changes with schema updates:

ScenarioAction
New entity in schemaCreates new files
Entity removed from schemaAsks confirmation before deleting
File not modified by youOverwrites with new version
File modified by youThree-way merge (diff3)
Merge succeedsCombines your changes + new schema
Merge has conflictsCreates .new and .conflict files

Tip

AeroCoding uses three-way merge (diff3) to intelligently combine your changes with schema updates. Only when there are real conflicts will you need to resolve them manually.

Typical workflow

How to use the CLI in your development process.

1.
DesignCreate or update your schema in the AeroCoding editor
2.
GenerateRun aerocoding create (first time) or aerocoding update
3.
ImplementAdd your business logic to the generated code
4.
IterateRepeat as your domain model evolves

Next steps

Continue learning about AeroCoding.