Skip to content

CLI reference

sqt repair active-view

Re-point one stable view to an explicit deployment table.

Repair one broken or incorrect virtual-environment binding:

DEPLOYMENT_ID="replace-with-deployment-id"
sqt repair active-view \
--table tbl__orders \
--deployment-id "$DEPLOYMENT_ID"

The command derives tbl__orders__<deployment_id>, atomically replaces the stable view binding, and emits the resulting table and target names as JSON.

Both --table and --deployment-id are required. Use sqt doctor first to inspect available candidates and verify the intended target.

repair active-view requires virtual environments.