Upload and publish a mod file
nexus_upload_mod_fileUploads a local mod archive to Nexus Mods and publishes it in one call, handling session creation, byte transfer, finalization, and version appending or new file creation.
Instructions
Uploads a local archive to Nexus and publishes it, in ONE call (v3 Upload API): creates the upload session, sends the bytes to the presigned storage URL, finalises, waits for processing, then either appends a new version to an existing file (pass mod_file_id, from nexus_mod_file_targets) or creates a new file on the mod page. Multipart is used automatically above 100 MiB. Optionally posts a changelog entry. Requires NEXUS_ALLOW_WRITES=true and NEXUS_ALLOW_UPLOADS=true. Always run with dry_run=true first to confirm the plan before the real upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name shown on the mod page (max 50 chars, letters/digits/space/_'().-) | |
| mod_id | Yes | Numeric mod id (visible in the page URL) | |
| dry_run | No | Validate everything and report the plan without contacting Nexus | |
| version | Yes | File version (max 50 chars, letters/digits/dot/dash) | |
| changelog | No | Changelog text to append for this version (posted after publishing) | |
| file_path | Yes | Absolute path of the archive to upload (must already exist) | |
| description | No | Short description shown under the file | |
| mod_file_id | No | Existing file to add this version to (omit to create a new file) | |
| file_category | Yes | main | optional | miscellaneous | |
| upload_filename | No | Archive name sent to storage (defaults to the file name on disk) | |
| game_domain_name | No | Game domain, e.g. "skyrimspecialedition". Default: "mountandblade2bannerlord" | |
| update_mod_version | No | Bump the mod page version to match this file (default false) | |
| previous_version_id | No | version_id this release replaces (new versions only) | |
| archive_existing_file | No | Archive the version being replaced (new versions only, default false) | |
| show_requirements_pop_up | No | Show the requirements pop-up | |
| allow_mod_manager_download | No | Allow mod manager downloads | |
| primary_mod_manager_download | No | Make it the default mod-manager download |