Skip to content

Codex

Terminal Commands

Codex is the command line interface for Devflow. It provides a few native commands to get you started building your first project.

Migration

This is one of the first commands you will run. This command will create your database tables:

❯ php codex migrate

Install

After running the migration command, this command will install the system and create the super admin account:

❯ php codex cms:install

Hash A Password

❯ php codex password:hash 'jsx82kjsks9273js'
Your hashed password is: $2y$10$4A3iA5z.qyi6DZ5bibKXUujbqYdjH.QjpbO/lUDR9dalaN1IbEZtm 

Run the Scheduler

The schedule:run command starts the scheduler and will execute any schedules/tasks that are due.

❯ php codex schedule:run

Scheduler List

The schedule:list command displays the list of registered jobs/tasks.

❯ php codex schedule:list

Run the Dev Server

cd into the root of your project and run the following command:

❯ php codex serve

Generate a Ulid string

The ddd:ulid command is useful if you need to generate a Ulid string for testing or other purposes.

❯ php codex ddd:ulid

Generate a Uuid string

The ddd:uuid command is useful if you need to generate a Uuid string for testing or other purposes.

❯ php codex ddd:uuid