product:create

Create a new product inside the workspace.


Usage

splent product:create <product_name>

Example

splent product:create sample_splent_app

The product name must be unique inside the workspace.


Description

This command:

  • Creates a new product directory inside the workspace.
  • Generates a complete project scaffold.
  • Renders configuration files using official Jinja templates.
  • Prepares Docker configuration for development and production.
  • Sets correct file ownership and permissions.

All files are generated automatically. No manual setup is required.


Generated structure

<workspace>/
    <product_name>/
        docker/
        entrypoints/
        scripts/
        src/
            <product_name>/
                static/
                templates/
        pyproject.toml
        package.json
        README.md

The product includes:

  • Dockerfiles (dev and prod)
  • docker-compose configurations
  • Environment examples
  • Entry point scripts
  • Migration and startup scripts
  • Base application structure

Requirements

  • A valid workspace must exist.
  • The command must be executed inside the SPLENT CLI environment.

Result

After execution:

  • A fully scaffolded product exists inside the workspace.

The product is intentionally minimal.
All functional behavior is expected to be implemented through features.