sndev.io / docs

upload

Upload a file as an attachment to a record.

The upload command attaches a local file to any ServiceNow record using the Attachment API.
sn upload <table> <sys_id> <file>

Upload an attachment to a record.

Arguments

NameRequiredDescription
tableYesThe table containing the record.
sys_idYessys_id of the record.
fileYesPath to the local file to attach.

Examples

sn upload incident abc123 ./screenshot.png
Uploading screenshot.png (142 KB)...
✓ Attached (sys_id: def456)