Osumi Framework
es en eu v9.8.0 GitHub

Osumi Framework CLI Commands

Osumi Framework includes a set of CLI tasks that allow you to perform various operations related to the development and maintenance of applications. Below is a description of the available commands:

Available Commands

add

Description: Allows you to create new actions, services, tasks, model components, components, or filters.

Usage:

php of add [option] [name]

Example:

php of add --option action --name MyAction

backupAll

Description: Generates a complete backup file of the application, including the database and code.

Usage:

php of backupAll

Notes: This command internally calls the backupDB and extractor tasks.


backupDB

Description: Creates a database backup using the mysqldump tool.

Usage:

php of backupDB [options]

Example:

php of backupDB silent

extractor

Description: Exports the entire application to a single self-extracting PHP file.

Usage:

php of extractor

Notes: Exports the entire application to a single self-extracting PHP file.


generateModel

Description: Generates an SQL file to create all database tables based on the user-defined models.

Usage:

php of generateModel

Notes: The SQL file is generated in the export directory.


generateModelFrom

Description: Generates all models from a provided JSON file.

Usage:

php of generateModelFrom [file]

Example:

php of generateModelFrom models.json

generateModelFromDB

Description: Generates all models from an existing database connection.

Usage:

php of generateModelFromDB

Notes: Connects to the configured database and generates the corresponding models.


reset

Description: Cleans all non-framework data, useful for new installations.

Usage:

php of reset

Notes: Deletes user-generated folders and files and restores the default configuration and structure.


version

Description: Displays information about the current version of the framework.

Usage:

php of version

Notes: Includes links to the official repository and the project's X (formerly Twitter) account.


Additional Notes