Hub Info

This page records the server-side hub commands used to inspect and export the Members Hub site.

The commands are intended for administrators and developers with server terminal access. Ordinary content editors do not need to use them.

Command Summary

Command Backing script Purpose
hub help launcher internal Shows available commands and examples.
hub path launcher internal Prints the server scripts directory.
hub info hub_info.sh Displays the server toolkit manifest.
hub tree hub_tree.sh Shows the page tree, Members Hub theme tree, and plugin folders.
hub routes hub_routes.sh Lists page paths with numeric Grav prefixes removed.
hub find <word> hub_find.sh Searches file contents across pages, theme, config, and plugins.
hub files <name-part> hub_files.sh Searches file names across pages, theme, config, and plugins.
hub page <page-path> hub_page.sh Finds a page folder from a clean route and previews its Markdown file.
hub export export_members_hub_for_chatgpt.sh Creates a full review export bundle.
hub export-page <page-path> export_members_hub_page.sh Creates an export bundle for one page branch.
hub clean hub_clean_exports.sh Deletes export bundles from the export folder.
hub clean old hub_clean_exports.sh Deletes export bundles older than 14 days.

Common Examples

Search page and theme content:

hub find consultation
hub find footer.html.twig

Search file names:

hub files consultation
hub files widgetpage

Inspect one page branch:

hub page governance/consultations
hub page site-admin/technical-admin/server-toolkit

Export content for review:

hub export
hub export-page governance/consultations

Clean generated export bundles:

hub clean old

Use hub clean with care because it deletes all bundles in the export directory.

Page Path Format

Commands such as hub page and hub export-page use clean Grav routes without numeric folder prefixes.

Use:

hub page site-admin/technical-admin/server-toolkit

Do not use:

hub page 06.site-admin/02.technical-admin/05.server-toolkit

The scripts resolve the clean path back to the real numbered Grav folder.

Export Output

Exports are written on the server under:

/var/www/vhosts/coulsdonclubmembers.info/httpdocs/user/data/chatgpt-export

An export normally creates both:

  • a working folder; and
  • a .tar.gz archive.

The archive can be downloaded from Plesk File Manager when a full site or page-branch review is needed.

Safety Notes

  • hub find, hub files, hub tree, hub routes, hub page, and hub info are read-only inspection commands.
  • hub export and hub export-page create files in the export directory.
  • hub clean old removes older generated exports.
  • hub clean removes all generated exports and should only be used when the export folder is no longer needed.
  • The toolkit does not publish content to the live site.
  • The toolkit does not replace Plesk backups or ClubDocs sync.