leapview admin
Administrative utilities
Usage
leapview admin
Machine-readable: JSON · Markdown
Subcommands
backup: Create a consistent LeapView instance backupinitialize: Initialize one instance administrator and publisher credentialmaintenance: Prune bounded operational historyrestore: Restore LeapView from a validated instance backupstorage: Maintain analytical storagestorage cleanup: Reconcile serving-state snapshots and clean DuckLake storage
backup
Create a consistent LeapView instance backup
Usage
leapview admin backup [flags]
Behavior
| Side effect | Confirmation |
|---|---|
local-write |
never |
Machine-readable: JSON · Markdown
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--database-only |
bool | false |
backup only the platform SQLite database |
--out |
string | `` | backup archive output path |
initialize
Initialize one instance administrator and publisher credential
Usage
leapview admin initialize [flags]
Behavior
| Side effect | Confirmation |
|---|---|
write |
never |
Machine-readable: JSON · Markdown
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--acknowledge-credentials |
bool | false |
remove the recoverable initialization credential bundle after it has been stored safely |
--format |
string | json |
output format (json) |
maintenance
Prune bounded operational history
Usage
leapview admin maintenance [flags]
Behavior
| Side effect | Confirmation |
|---|---|
destructive |
conditional |
Machine-readable: JSON · Markdown
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--apply |
bool | false |
delete rows instead of dry-run |
--archived-agent-days |
int | 180 |
archived agent conversation retention in days; 0 disables archived conversation pruning |
--audit-days |
int | 365 |
audit event retention in days; 0 disables audit pruning |
--auth-state-days |
int | 30 |
expired or revoked auth state retention in days; 0 disables auth-state pruning |
--query-days |
int | 90 |
query event retention in days; 0 disables query pruning |
restore
Restore LeapView from a validated instance backup
Usage
leapview admin restore [flags]
Behavior
| Side effect | Confirmation |
|---|---|
destructive |
required |
Machine-readable: JSON · Markdown
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--confirm |
bool | false |
confirm replacement of the configured LeapView instance |
--current-out |
string | `` | path for a backup of the current instance before replacement; - creates and discards a validated temporary checkpoint |
--database-only |
bool | false |
restore only the platform SQLite database |
--from |
string | `` | backup archive path to restore |
storage
Maintain analytical storage
Usage
leapview admin storage
Machine-readable: JSON · Markdown
storage cleanup
Reconcile serving-state snapshots and clean DuckLake storage
Usage
leapview admin storage cleanup [flags]
Behavior
| Side effect | Confirmation |
|---|---|
destructive |
conditional |
Machine-readable: JSON · Markdown
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--apply |
bool | false |
perform destructive cleanup instead of dry-run |