Skip to content

Commands

Hub adds two console commands. Both can also run in the queue.

Indexes the reference tags in the content of all elements again, like the links and images of rich text.

Terminal window
php craft hub/references
php craft hub/references --queue

Run it after changing content without saving elements, e.g. with Craft’s Find and Replace utility. See references and edits.

Option Description
--queue Index in the queue instead.

Takes the snapshot of the statistics of today, unless there is one already.

Terminal window
php craft hub/snapshots
php craft hub/snapshots --queue --force

Use it from a cron job for snapshots on a fixed schedule. See snapshots.

Option Description
--force Replace the snapshot of today, if there is one.
--queue Take it in the queue instead.