Skip to content

[Feature] Implement cli.sh start, restart, and stop commands with application build process #7

@iSuperCoder

Description

@iSuperCoder

Description

Implement lifecycle management commands for the JitAI development environment. The start command should trigger the application build process before starting services.

Requirements

1. cli.sh start

Functionality:

  • Check if workspace is properly initialized
  • Call builder to execute application build process:
    • Build frontend assets
    • Compile/package backend code
    • Generate necessary configuration files
  • Start jitnode runtime engine
  • Display startup logs and status
  • Verify services are running correctly

2. cli.sh stop

Functionality:

  • Gracefully shutdown jitnode
  • Stop all related services
  • Clean up temporary files if needed
  • Display shutdown status

3. cli.sh restart

Functionality:

  • Execute stop command
  • Wait for complete shutdown
  • Execute start command with same parameters

Acceptance Criteria

  • cli.sh start successfully builds and starts the application
  • cli.sh stop cleanly shuts down all services
  • cli.sh restart properly stops and restarts services
  • Build process is triggered automatically on start
  • Clear error messages for build failures

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions