The complete CLI wizard: prepared Debian, a private site and verification after reboot

Run the CLI wizard with generated profiles, two controlled reboots and independent checks. Separately verify an empty utility installation.

A path from a terminal through two reboots to server services and a private website.

We previously configured the server in separate steps. We now run them through one CLI wizard: from an already prepared Debian image to a private educational Symfony site, with service checks after reboot. This is a new complete run on an isolated VM. The existing educational VPS has separate verification.

Where we start

The image has completed its original preparation, selected kernel installation and first reboot. Retained approvals and a current independent console identify the same machine. The future administrator does not yet exist. The wizard verifies the original results and continues while retaining the earlier run files.

Prepare profiles through terminal answers

deploy-cli host setup wizard prepare \
  --directory "$RESOURCE_DIRECTORY" \
  --approve-local-write

On our fixture, the generator received 33 answers and created 7 profiles and 9 files in total. Answers select access, network settings, services and TLS material paths. Profiles reference existing private files. Generation was entirely local, with no network calls or server writes. Fill the example variables with your own verified paths.

Run the wizard in a separate directory

deploy-cli host setup wizard prepared-run \
  --directory "$NEW_RUN_DIRECTORY" \
  --spec-file "$RESOURCE_DIRECTORY/resources.json" \
  --root-env-file "$ORIGINAL_ROOT_ENV" \
  --administrator-env-file "$ADMIN_ENV" \
  --request-file "$ORIGINAL_REQUEST" \
  --current-request-file "$CURRENT_REQUEST" \
  --postboot-reference-file "$POSTBOOT_REFERENCE" \
  --postboot-reference-sha256 "$POSTBOOT_REFERENCE_SHA256" \
  --approve-local-write --approve-privileges

The run directory must be new and empty. ORIGINAL_REQUEST retains the original approval; CURRENT_REQUEST selects access and proof of the current boot. POSTBOOT_REFERENCE_SHA256 is the independently retained digest of the accepted result. The CLI rechecks the selected files and their relationship to the server.

In our run, the wizard created the administrator, checked SSH and sudo, installed utilities and the selected PHP-FPM, Redis and Nginx, and configured the firewall and startup. It then completed WireGuard and prepared the private site. Original credentials retained their intended roles, and the wizard created no duplicate credentials directory.

Where independent verification is required

The wizard pauses for independent SSH, sudo, console and denied-network checks. The operator supplies a file with actual evidence; the CLI does not fill it in on its own behalf. Each of the two new reboots separately asks for an explicit terminal response:

Type REBOOT to dispatch this single planned reboot: REBOOT

A separate isolated client tested WireGuard. Private SSH and password sudo were checked alongside the public recovery path. The denied HTTP probe was paired with a positive request to a genuinely running listener. After reboot, a fresh serial console confirmed a changed boot of the same machine. These checks left the laptop network unchanged.

What the complete run returned

These fields are selected from the actual final JSON response. Data and private-site verification ran again after the last reboot. The original 16 immutable server records and selected local approvals were retained. whole_host_ready=false limits the conclusion to the verified workflow; this result does not accept every possible server capability.

{
  "status": "passed",
  "credentials_reused": true,
  "data_postboot_verified": true,
  "private_site_new_boot_ready": true,
  "whole_host_ready": false
}
A genuine VTE terminal summarizing saved results from an isolated fixture. These are selected actual results, rather than a raw command session. Capture repeated no configuration or reboot.

When utilities are already installed

We separately tested the utility coordinator on another fresh VM. All 11 selected utilities were part of this fixture baseline before the CLI package history was created. This is a separate test case, rather than a manual installation inserted into the complete wizard.

deploy-cli host setup prepared-utilities plan \
  --profile-file "$UTILITY_PROFILE" \
  --plan-file "$UTILITY_PLAN"
deploy-cli host setup prepared-utilities apply \
  --plan-file "$UTILITY_PLAN" \
  --plan-sha256 "$UTILITY_PLAN_SHA256" \
  --approve-local-write --approve-privileges

Index refresh actually ran and added a third record to the original two. The subsequent installation plan contained no changes. The coordinator invoked the original installation mechanism once. Selected fields from its local invocation record showed:

{
  "writer_invoked": true,
  "write_performed": false
}
A genuine VTE terminal summarizing saved results from an isolated fixture. These are selected actual results, rather than a raw command session. Capture repeated no configuration or reboot.

The package-record count followed 2 → 3 → 3. The empty installation retained the same head. Its successful invocation has a separate record without a fourth package transaction. The overall coordinator run did change the server because its preceding index refresh performed a real write.

deploy-cli host setup prepared-utilities verify \
  --plan-file "$UTILITY_PLAN" \
  --plan-sha256 "$UTILITY_PLAN_SHA256" \
  --completion-sha256 "$UTILITY_COMPLETION_SHA256"

Verification and an accepted repeated apply only read the completed state. This separate result confirms utility readiness for the empty case. It does not alter the complete runtime profile, which has its own history and service checks.

Keep the profiles, approvals and verification results in private storage. If execution is interrupted or its outcome is unknown, inspect the retained state first. Fixture results do not automatically accept the existing educational VPS.

  1. Platform Engineering Server profiles without hand-written JSON: interactive CLI preparation
  2. Platform Engineering CLI utility installation after original preparation
  3. Platform Engineering Nginx autostart: the PHP-FPM dependency and verification after reboot
  4. Platform Engineering Redis after reboot: separate startup and readiness verification
  5. Platform Engineering PHP-FPM timers: startup, enablement and verification after reboot