I think now the issue is solved. Now with the u or -url parameter you can specific the full XWiki prefix so it could be http://localhost:8080/xwiki or https://example.com for a wiki at root.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.