Commands
truss:rebuild
Rebuild the cached schema snapshot. Useful in CI, in seeding workflows, or whenever you want to force a refresh.
# Rebuild every managed connectionphp artisan truss:rebuild
# Rebuild a specific connectionphp artisan truss:rebuild --connection=mysqlThe command always runs, regardless of truss.enabled.
Automatic rebuilds
You rarely need to run the command by hand. Truss listens for the Illuminate\Database\Events\MigrationsEnded event and rebuilds the snapshot automatically after migrate, migrate:fresh, and migrate:rollback (when Truss is enabled).
The snapshot is derived, disposable data cached via the Cache facade, keyed per connection, and it respects cache.ttl. No database table is used to store it.
Publishing
# Publish the config file to config/truss.phpphp artisan vendor:publish --tag=truss-configThere is no separate assets publish step. Truss serves its JavaScript, CSS, fonts, and a vendored copy of Mermaid from a route inside the package, so there is nothing to publish and no CDN to reach.