Run site Artisan commands carefully

Learn how to prepare a site Artisan command in Herne, review selected actions and interpret the result.

Learn how to prepare a site Artisan command in Herne, review selected actions and interpret the result. These are real product views with fictional input and output. No application command, key generation, migration, cache clearing, storage link or service action runs in this demonstration.

Demonstration: Herne 3.55.43, English interface and synthetic English narration, fictional Northstar Studio. Product screens show fictional input and results. No Run button is submitted and no application command, environment read, key, database, cache, storage or service action runs. Complete written guidance and subtitles are available in six languages.

Watch the walkthrough

English audio · 6 min 17 sec · Subtitles in all six site languages.

1. Open the correct site and project

Learn how to prepare a site Artisan command in Herne, review selected actions and interpret the result. These are real product views with fictional input and output. No application command, key generation, migration, cache clearing, storage link or service action runs in this demonstration.

Open the intended site and choose Runtime, then Artisan. Check the domain before proceeding. Viewing requires site view permission; running requires update permission. Access to this page is not permission to change every application setting or run an unrelated site's maintenance.

Check the site's saved deployment path separately. Herne prefers that path and otherwise uses the web root, subject to site path validation and fallback. This page has no working directory picker or resolved path display. Confirm the intended project contains Artisan and the expected environment and dependencies before running.

Runtime menu showing Artisan for fictional studio.example.test.
Fresh fictional Artisan page: quick actions unchecked and all five cache commands checked.

2. Prepare one reviewed command

Choose one reviewed task and understand its application effects first. Even a route listing boots application code, and the managed runner may prepare runtime directories and permissions. A policy classification is not a guarantee of harmless behavior. Use an approved maintenance window and recovery plan when the selected operation changes state.

The text field already has a php artisan prefix. Enter only the command and reviewed arguments, such as route:list --path=health in our fictional proposal. Keep one command per submission. Do not paste shell chains, pipes, redirection or secrets; unsupported syntax may be stripped or blocked rather than interpreted as intended.

Typing a command does not run it. The Run button belonging to that form submits it for real execution; it is not a dry run. The separate Quick actions and Clear caches forms have their own buttons. Review which form and selections will be submitted before approving a real operation.

Unsubmitted route:list --path=health command, with the fixed php artisan prefix.

3. Review policy and quick actions

Herne allows a defined command set and guarded application namespaced commands. Explicitly forbidden destructive commands remain blocked. Database checks can refuse panel or another site's database targets, and panic mode can block execution. These checks do not replace application review or prove every custom command targets the correct backend.

Quick actions includes Generate app key, Run migrations and Create storage symlink. Start with nothing selected and choose only an intended task. Generate app key can change APP_KEY; do not use it as routine maintenance on an existing application. Preserve the current key and review key rotation separately.

Run migrations can change database schema or data; review the target, application release and tested backup recovery first. Create storage symlink changes filesystem exposure according to application configuration. Check what becomes publicly reachable. Neither checkbox provides automatic rollback, a database restore or a guarantee that the application is ready.

Fictional storage:link-only quick-action selection; no command is run.

4. Inspect selections and batch order

On a fresh page, all five Clear caches commands are selected. Run selected is therefore a batch execution button, not a harmless general refresh. Review every checkbox before using it. Existing form input may restore different selections after a response, so inspect the actual state each time.

Our fictional selection keeps only config:clear checked and leaves every other action unchecked. This is an example of limiting scope, not a recommendation to clear configuration on every site. Confirm why the application needs this operation and what activation or verification follows before using Run selected.

Selected presets run in Herne's fixed order, not the order you click them. A blocked or failed command stops the remaining selections. Earlier completed steps are not undone. A multi-action submission is not a transaction, and each dispatched command has its own execution deadline. Review the attempted sequence in the result.

Order Preset command
1 key:generate
2 migrate
3 storage:link
4 optimize:clear
5 config:clear
6 cache:clear
7 route:clear
8 view:clear

Only selected presets run, in this controller order. The three forms submit their own fields. If a valid preset selection is present, it takes priority over the free command field. A blocked or failed step stops the rest; this is not transactional rollback.

A batch result heading can list the entire selected sequence even when execution stopped early. Use the individual command output blocks and managed evidence to identify which steps were attempted or completed; the heading alone proves neither.

Fictional config:clear-only selection; all other preset boxes are unchecked.
Synthetic batch failure after an earlier completed step; remaining selected commands did not run.

5. Understand caches, runtime and output

config:clear removes cached configuration; config:cache, entered as a command, rebuilds it. Application cache clearing can remove shared backend data, and optimize:clear can include several framework cleanup tasks. Review the installed Laravel version and cache isolation. Selecting fewer boxes does not make a broad command narrow or clear another cache automatically.

Commands use Herne's isolated site account and managed resource controls. Check the command's CLI PHP version and extensions separately; they may differ from the site's web PHP. The default extended deadline is ten minutes per command, configurable within server limits. Use this synchronous screen for bounded tasks, not persistent workers.

The result shows the attempted command and returned output. A success state reflects the managed command result; it is not a complete application health check. No output is also possible. Route listings can reveal internal routes, and other commands can print secrets. Keep original results private and share only carefully redacted excerpts.

The page waits synchronously for completion. Proxy, Nginx or PHP-FPM request limits can end the browser response before the command deadline. Refreshing or resubmitting does not establish completion; inspect the managed result before retrying.

Laravel Configuration, Laravel Deployment, Laravel Cache.

Synthetic route-list result marked fictional; no command actually ran.

6. Diagnose, verify and recover

Our blocked example uses a synthetic destructive-command refusal. Do not rename a blocked operation or weaken safety controls to force it through. Inspect the reason and intended target. A database ownership warning calls for configuration review; panic mode or runtime readiness needs the administrator's approved recovery procedure, not repeated clicks.

A failed batch may already have changed state through earlier steps. For timeouts, memory failures, missing runtime or cleanup uncertainty, inspect Managed process results under the site's Resource policy and retain the operation evidence. A lost browser response does not prove nothing ran. Resolve the cause and partial effects before considering a retry.

After an approved real operation, verify the intended application outcome and any affected users or jobs. Keep the command, time, final result and sanitized evidence. Restore through the reviewed application or database recovery plan when needed. Another Artisan command, clearing every cache or rerunning a batch is not automatic recovery of previous state.

Synthetic refusal for migrate:fresh, shown without submitting any command.
Herne documentation