# Admin Commands Admin commands (`owi admin`) support troubleshooting, repository inspection, and low-level filesystem diagnostics. ## `admin repos` List configured repositories and their connection status. ### Usage ```bash owi admin repos ``` --- ## `admin path` Check whether a given path exists in one repository or across all configured repositories. ### Usage ```bash owi admin path PATH [OPTIONS] ``` ### Options - `--repository REPO` (`-r`): Restrict checks to a single repository. ### Examples ```bash owi admin path /IT4ILexisV2/public/ --repository lexis owi admin path /OWILRZZONE/LEXIS//public/ ``` --- ## `admin fs` Run low-level filesystem operations on repository backends. ### Usage ```bash owi admin fs OPERATION PATH [OPTIONS] ``` ### Operations - Read-only: `ls`, `exists`, `info`, `find`, `glob`, `cat` - Modifying: `mkdir`, `cp`, `mv`, `rm` ### Options - `--repository REPO` (`-r`): Repository name (default: `lexis`) - `--target-path PATH` (`-t`): Destination path for `cp` and `mv` - `--pattern GLOB` (`-p`): Optional filter for `find`/`glob` - `--recursive`: Recursive behavior for supported ops (`rm`, some copy/move/list cases) - `--max-items N`: Max printed items for list-like ops (default: `50`) - `--yes` (`-y`): Skip confirmation for modifying operations ### Safeguards - Modifying operations (`mkdir`, `cp`, `mv`, `rm`) require an interactive confirmation unless `--yes` is used. ### Examples ```bash owi admin fs exists /IT4ILexisV2/public/ --repository lexis owi admin fs ls /OWILRZZONE/LEXIS//public/ --repository lexis --max-items 20 owi admin fs glob "/OWILRZZONE/LEXIS//public//**/*.parquet" --repository lexis ``` --- ## `admin logs` View application logs. ### Usage ```bash owi admin logs [LOG_SELECTOR] [OPTIONS] ``` ### Log selectors - `latest`: most recently modified `.log` or `.json` log file in `~/.owi/.logs` - `location`: print the log directory and known log file locations - `events`: show `events.json` - `sql`: show `sql.log` - `lexis`, `errors`: show named log files when present - any explicit filename in `~/.owi/.logs` ### Options - `--lines`, `-n`: Number of lines to show (default: `50`) - `--follow`, `-f`: Reserved follow mode flag ### Examples ```bash owi admin logs latest owi admin logs sql --lines 100 owi admin logs events --lines 20 owi admin logs location ``` ### Notes - `events` is stored as JSON lines in `events.json`. - SQL debugging output is only written when commands are run with the global `--sql-log` flag. - `location` is the quickest way to confirm where `events.json`, `sql.log`, and other logs live in the active OWI target directory. --- ## `admin stats` Display usage statistics. ### Usage ```bash owi admin stats ``` --- ## `admin check` Validate and optionally repair metadata for datasets matching a specifier. ### Usage ```bash owi admin check SPECIFIER [OPTIONS] ``` ### Examples ```bash owi admin check lrz:latest owi admin check all/collectionName=main --repair=infer --update=update ```