You can write something yourself using the REST API
curl -v -S -u email@example.com:password -X POST -H "X-Atlassian-Token: no-check" -F "firstname.lastname@example.org" -F "comment=this is my file" "https://your-domain.atlassian.net/wiki/rest/api/content/3604482/child/attachment
The above is taken from this page containing lots of examples: https://developer.atlassian.com/cloud/confluence/rest-api-examples/
Alternatively you can also use a plugin like Bob Swift's Command Line Interface: https://marketplace.atlassian.com/plugins/org.swift.confluence.cli/server/overview
This would allow you something like:
./confluence-cli --action addAttachment --space "zcliattachments" --title "attachment page" --content "attachment content" --name "data.txt" --comment "attachment comment"
Hope this helps,
Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time! We're looking for people to participate in a remote 1-hr workshop...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG