xnatctllisted
Install: claude install-skill rickyltwong/xnatctl
# xnatctl CLI Reference
Modern CLI for XNAT neuroimaging server administration. Resource-centric commands with consistent output formats, parallel operations, and profile-based configuration.
## Command Hierarchy
```
xnatctl
config init | show | use-context | current-context | add-profile | remove-profile
auth login | logout | status | test
project list | show | create
subject list | show | rename | delete
session list | show | download | upload | upload-exam
scan list | show | delete | download
resource list | show | upload | download
prearchive list | archive | delete | rebuild | move
pipeline list | run | status | jobs | cancel
admin refresh-catalogs | user add | audit
dicom validate | inspect | list-tags | anonymize (requires xnatctl[dicom])
api get | post | put | delete (raw REST escape hatch)
whoami
health ping
completion [bash|zsh|fish]
```
## Global Options (all commands)
| Flag | Short | Description |
|------|-------|-------------|
| `--profile` | `-p` | Named profile from config |
| `--output` | `-o` | `json` or `table` (default: table) |
| `--quiet` | `-q` | IDs only output |
| `--verbose` | `-v` | Debug logging |
## Parent-Resource Options (session & scan commands)
| Flag | Short | Purpose | Key Rule |
|------|-------|---------|----------|
| `--project` | `-P` | Project ID | Enables label lookup for -E |
| `--subject` | `-S` | Subject ID/label | Used in `session list` (fil