Command session-id

java -jar jenkins-cli.jar -s https://team.marrigewell.com/jenkins/ -webSocket session-id
Outputs the session ID, which changes every time Jenkins restarts.