Konsole Kommander is a commandline tool to manage Phraseanet. It is simple to use :
php bin/console
You will see something like :
Available commands: help Displays help for a command list Lists commands about about:authors List authors and contributors about:license This program license check check:config check configuration file check:ensureDevSettings Ensure development settings check:ensureProductionSettings Ensure production settings check:extension Delete a documentation field from a Databox check:system Check the configuration fields fields:delete Delete a documentation field from a Databox fields:list List all databox fields fields:merge Merge databox structure fields fields:rename Rename a documentation field from a Databox scheduler scheduler:start Start the scheduler scheduler:state Get scheduler state scheduler:stop Stop the scheduler sphinx sphinx:generate-suggestions Generate suggestions for Sphinx Search Engine system system:backupDB Backup Phraseanet Databases system:clearCache Empty cache directories, clear Memcached, Redis if avalaible system:mailCheck Check if email addresses are unique (mandatory since 3.5) system:templateGenerator Generate template files system:upgrade Upgrade Phraseanet to the lastest version task task:list List tasks task:run Run task
To get some help about a command :
php bin/console help CommandName
Note
Each commands returns a value, which can be used for automated scripts
Parse and check the structure of configuration files
option :
- –strict : Fails on alerts.
option :
- –strict : Fails on alerts.
Validate system configuration necessary for Phraseanet to work properly.
- Binaries
- File system
- Opcode cache
- Cache servers
- PHP
- PHP extensions
- Phrasea extensions
- Locales system
option :
- –sbas_id (-s) : Databox sbas_id
- –meta_struct_id (-m) : Meta structure id
List all databox documentation fields
option :
- –source (-f) : Metadata structure ids for source (multiple values allowed)
- –destination (-d) : Metadata structure id destination
- –sbas_id (-s) : Databox sbas_id
- –separator : Separator for concatenation (if destination is monovalued) (default: ;)
option :
- –name (-n) : The new name
- –meta_struct_id (-m) : Metadata structure id
- –sbas_id (-s) : Databox sbas_id
Start Phraseanet task scheduler.
Stop Phraseanet task scheduler
Get the current state of the Phraseanet task scheduler.
argument :
- directory : Directory where backups are stocked.
Clear all cach sytems used by Phraseanet.
option :
- –list : List all duplicates.
Load compiled templates.
Upgrade Phraseanet to the latest version.