The flo command
Everything the window does, from a terminal. flo and floserver are the same program.
Quick start
# in a project folder
flo add
flo use php 8.5
flo start
flo env --write
All commands
| Service | |
|---|---|
flo status [--json] | Show whether FloServer is running |
flo service start | Start FloServer in the background |
flo service stop | Stop FloServer and everything it runs |
flo version | Show the version |
| Projects | |
flo projects [--json] | List your projects and what each one needs |
flo add [folder] [--name <n>] | Add a folder as a project (this folder if none) |
flo add --from-backup <zip> [--name <n>] | A new project from a backup, with its own copy of the database |
flo start [project] | Start FloServer, or turn a project on and show its address |
flo stop [project] | Turn a project off, or stop FloServer and everything it runs |
flo rename <name> <new> [--folder] | Rename a project (its address follows); --folder renames its folder too |
flo remove <name> [--drop-database] [--yes] | Forget a project (its files are kept); --drop-database also deletes its database |
flo studio [project|folder] | Open a FloCMS project in FloCMS Studio |
| Versions and runtimes | |
flo use <php|node|python|mariadb> <v> | Set a version in this project's floserver.json |
flo use php <none|newest|auto> | No PHP, always the newest PHP, or PHP when there are .php files |
flo runtimes [--refresh] | List installed runtimes and the ones you can install |
flo install <name> [version] | Install a runtime, such as flo install php 8.5 |
flo uninstall <name> <version> | Remove an installed runtime, such as flo uninstall php 8.5.12 |
flo check [folder] | Check the floserver.json for a project |
| PHP settings | |
flo php <series> | PHP settings for a series (8.5): extensions and php.ini values |
flo php <series> ext <name> <on|off|default> | Turn an extension on or off for every project on it |
flo php <series> ini <key> <value|default> | Set a php.ini value, such as flo php 8.5 ini memory_limit 1G |
flo php <series> edit | Make its custom.ini (your own lines, added to every php.ini) and show where |
flo php <project> [ext …|ini …] | A project's own changes, kept in its floserver.json |
| Backups | |
flo backup <project> [--to <zip>] [--no-database] | Back up a project as a .zip (in Documents\FloServer Backups) |
flo restore <project> <zip> | Put a project's files and database back from a backup |
| Databases, shared sites and HTTPS | |
flo db | Show the databases and the projects using them |
flo env [project] [--write] | A project's database settings as .env lines (--show: the password) |
flo shared [on|off] | Shared sites: every folder in the www folder at localhost |
flo shared php <v|newest> | Their PHP version; also shared web <apache|nginx> and shared dir <folder|default> |
flo shared db <11.4|none> | Their database; shared login [--show] shows its user and password |
flo trust | Let your browsers trust FloServer's HTTPS certificates |
flo untrust | Remove FloServer's certificate authority |
flo shims [install|remove] | php, node, npm, composer, python… in your terminal, at each project's version |
Run flo help to see the list in your terminal.
Terminal commands
php, composer, node and the others use each project’s versions in any terminal. See Terminal commands.
Docs for FloServer 0.1.0Something wrong on this page? Email us