Add, List & Switch NAS
Add, List & Switch NAS
/nas-list — show the inventory
Shows all configured NAS as a table (slug, host, model, DSM) and marks the active one with ●. Incomplete profiles are flagged as (incomplete). Purely local, no SSH connection.
SLUG HOST MODEL DSM
● ds218 192.168.1.10 DS218+ 7.3.1
ds920 nas.example.io DS920+ 7.2.2
/nas-use <slug> — set the active NAS
Sets the active NAS (writes context/active-nas atomically) and re-renders the CLAUDE.md Quick Reference. The global "Scoped Operations" section and your notes below the end marker are preserved.
/nas-add — add another NAS
Walks you interactively through slug, LAN/WAN host, port and user, generates a dedicated key per NAS (~/.ssh/synology-manager-plus_<slug>_ed25519), deploys it via ! ssh-copy-id, discovers the hardware/software and writes the profile atomically. On request, the new NAS is set active right away.
/nas-remove <slug> — remove a NAS
Deletes a NAS profile with double confirmation: first for the profile directory, then separately for the SSH key. A shared-key guard prevents deleting a key that another profile still references. If the removed NAS was active, it automatically switches to another one (or clears the active pointer if it was the last).