I slapped together these oneline scripts to run full or new-file-only rescans and to check rescan status.

Rescan new:
Code:
#! /bin/bash

SERVER_URL=[INSERT YOUR SERVER ADDRESS]

curl -v -H "Content-Type: application/json" -d '{"method":"slim.request", "params": ["-", ["rescan"]]}' http://"${SERVER_URL}":9000/jsonrpc.js | jq .
Rescan all:
Code:
#! /bin/bash

SERVER_URL=[INSERT YOUR SERVER ADDRESS]

curl -v -H "Content-Type: application/json" -d '{"method":"slim.request", "params": ["-", ["wipecache"]]}' http://"${SERVER_URL}":9000/jsonrpc.js | jq .
Monitor rescan status:
Code:
! /bin/bash

SERVER_URL=[INSERT YOUR SERVER ADDRESS]

curl -v -H "Content-Type: application/json" -d '{"method":"slim.request", "params": ["-", ["rescanprogress"]]}' http://"${SERVER_URL}":9000/jsonrpc.js | jq .