fux / fux-cli
A CLI tool that help development process using Fux Framework
Requires
- php: ^7.3|^8.0
- symfony/console: ^5.0|^6.3
Requires (Dev)
- phpunit/phpunit: ^10.3
This package is auto-updated.
Last update: 2024-12-30 01:59:44 UTC
README
PHP command-line tool for a better development process
Usage as executable
You can use this CLI tool just by build downloading the ./dist/fux-cli.phar file or building it from scratch executing the following command
php phar-composer-1.4.0.phar build . dist
If you don't know that phar-composer is, just check the official repository at https://github.com/clue/phar-composer.
Then to make the CLI tool globally accessible you can just move it in your bin
folder with the following command
cp dist/fux-cli.phar /usr/local/bin/fux
It is not recommended to use it as composer dependency in your project, instead copy the fux.phar file inside your project root.
Commands
All you need to do is call the one of the following commands
Database commands
fux db:iam {name}
Allow you to set your name/nickname for the current project. This name will be used for all vcs files that you create
using fux db:vcs
command.
fux db:vcs [filename]
This command create an SQL file in the database vcs directory of the project with the following format
./db/vcs/{Y-m-d}/{H_i_s}_{filename}.sql
where the {filename} placeholder can be the filename argument or the {name}
argument passed to fux db:iam
command. It's recommended to execute db:iam
command the first time, so that you can
execute fux db:vcs
without additional arguments.