fux/fux-cli

There is no license information available for the latest version (0.1.3) of this package.

A CLI tool that help development process using Fux Framework

0.1.3 2023-09-23 15:40 UTC

This package is auto-updated.

Last update: 2024-03-30 00:31:55 UTC


README

PHP command-line tool for a better development process

Preview

Build Status Latest Stable Version License

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.