Skip to content

CLI Commands

lpachecob edited this page Mar 22, 2026 · 5 revisions

🚀 CLI Commands: The BOUNDLY Engine

BOUNDLY is driven by two main CLI commands designed to make your development process seamless and automated.


🛰️ core:watch

Starts the development server and automatically synchronizes the database on entity changes. This is your primary development tool.

Parameters:

  • {--lang=en} - Set the CLI output language (en or es).
  • {--port=8000} - Set the port for the development server.

What it does:

  1. Initial Sync - Scans Domain/ and Application/ immediately on startup.
  2. Auto DB Sync - Monitors for file changes. If you modify an #[Entity], core:migrate is called automatically.
  3. Rest Server - Launches the API at http://127.0.0.1:8000.
php artisan core:watch --lang=es

🪄 core:migrate

The magic evolution engine. It scans your entities and translates attributes into SQL DDL commands. Zero migration files needed.

Parameters:

  • {--lang=en} - Set the CLI output language (en or es).
  • {--force} - Apply changes immediately to the database.
  • {--dry-run} - Preview the SQL commands without applying them.

What it does:

  1. Introspection - Reads the current database metadata (columns, types, indexes).
  2. Diffing - Compares your #[Entity] and #[Column] attributes against the DB metadata.
  3. Execution - Generates and runs ALTER TABLE or CREATE TABLE commands.
php artisan core:migrate --force

⚙️ core:clean (Planned)

Clears the framework cache and the basement storage/ contents to reset the engine state.


🌍 Language Support

Flag Language
--lang=en English (Default)
--lang=es Spanish

You can also set the permanent language in config/boundly.php.


Next Step: Configuration ⚙️

Clone this wiki locally