Digitalroot.ModUploader 1.4.3

dotnet tool install --global Digitalroot.ModUploader --version 1.4.3                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Digitalroot.ModUploader --version 1.4.3                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Digitalroot.ModUploader&version=1.4.3                
nuke :add-package Digitalroot.ModUploader --version 1.4.3                

Digitalroot Mod Uploader

Introduction

This is a command-line tool that can be used to upload mod files to an existing mod on Nexus Mods.

Installation

You can either download the binary for your platform from the Releases section on the right, or install it using the dotnet CLI:

dotnet tool install -g Digitalroot.ModUploader
# then run with
drmu

Configuration and Usage

While you can pass all values at the command line. Please use environment variables for the sensitive information.

You have been warned!

Environment Variables

  • NEXUSMOD_API_KEY
  • NEXUSMOD_SESSION_COOKIE

All Commands support the -?, -h, --help options to show help and usage information

Commands:

Digitalroot.ModUploader.exe -h
Description:
  Uploads mods to NexusMods

Usage:
  Digitalroot.ModUploader.exe [command] [options]

Options:
  --version       Show version information
  -?, -h, --help  Show help and usage information

Commands:
  nexusmods, nx     nexusmods.com commands.

Digitalroot.ModUploader.exe nx -h
Description:
  nexusmods.com commands.

Usage:
  Digitalroot.ModUploader.exe nexusmods [command] [options]

Options:
  -?, -h, --help  Show help and usage information

Commands:
  check                           Check that an API Key and Cookie are valid.
  upload <mod-id> <archive-file>  Upload a file of 20.0GB or less to nexusmods.com

Digitalroot.ModUploader.exe check -h
Description:
  Check that an API Key and Cookie are valid.

Usage:
  Digitalroot.ModUploader.exe nexusmods check [options]

Options:
  -k, --key <key>                                               Api Key, ENV: NEXUSMOD_API_KEY
  -nmsc, --nexusmods_session_cookie <nexusmods_session_cookie_> Session Cookie, ENV: NEXUSMOD_SESSION_COOKIE
  -?, -h, --help                                                Show help and usage information

Digitalroot.ModUploader.exe upload -h
Description:
  Upload a file of 20.0GB or less to nexusmods.com

Usage:
  Digitalroot.ModUploader.exe nexusmods upload [<mod-id> <archive-file>] [options]

Arguments:
  <mod-id>        Nexus mod id.
  <archive-file>  File to upload.

Options:
  -f, --file-name <file-name> (REQUIRED)                               Name for the file on Nexus Mods
  -v, --version <version> (REQUIRED)                                   Version for your uploaded file.
  -t, --category <Archived|Main|Misc|Old|Optional|Updates> (REQUIRED)  Mod file category [default: Main]
  -d, --description <description>                                      description
  -g, --game <game>                                                    Game mod is for. [default: valheim]
  -dmfu, --disable-main-file-update                                    Skips replacing an existing file in the 'Main' category with the new one. [default: False]
  -dfa, --disable-file-archive                                         Skips archiving older versions of the existing file. [default: False]
  -ddwm, --disable-download-with-manager                               Removes the 'Download With Manager' button. [default: False]
  -dvu, --disable-version-update                                       Skips updating mod's main version to match this file's version. [default: False]
  -dmv, --disable-main-vortex                                          Skips setting file as the main Vortex file. [default: False]
  -drpu, --disable-requirements-pop-up                                 Skips informing downloaders of this mod's requirements before they attempt to download this file [default: False]
  -k, --key <key>                                                      Api Key, ENV: NEXUSMOD_API_KEY
  -nmsc, --nexusmods_session_cookie <nexusmods_session_cookie>         Session Cookie, ENV: NEXUSMOD_SESSION_COOKIE
  -?, -h, --help                                                       Show help and usage information
Examples
nexusmods check -k "MyVeryLongNexusApiKey" -nmsc "6c1ae4818867700000XX804f1f55ae72"

nexusmods upload 1303 Digitalroot.Valheim.JVL.BT.Fix.v1.0.6.zip -v 1.0.6 -f TestFile -t Main -ddwm -dmv -d "My Test File"
Note: Strings can also be wrapped in quotes. The following command is the same as the example above it.
nexusmods upload 1303 "Digitalroot.Valheim.JVL.BT.Fix.v1.0.6.zip" -v "1.0.6" -f "TestFile" -t Main -ddwm -dmv -d "My Test File"

FAQ

Nexus Mods

Q1: Where do I find out more info about the Nexus Mods' Public API?

Nexus Mods Public API

Q2: Does Nexus Mods' API Rate Limit?

Yes, see. Nexus Mods Public API

Q3: Where do I get my Nexus Mods' API key?

My Nexus account page

Q4: Where do I get my Nexus Mods' Session Cookies?

From your browser. This site covers how to do it in most browers. The cookie you are looking for is called nexusmods_session. It is a hex value that looks like 6c1ae4818867700000XX804f1f55ae72.

<br /> <p align="center"> <b>Digitalroot can be found in the Valhalla Legends Discord</b><br /><br /> <a href="https://discord.gg/SsMW3rm67u" target="_blank"><img src="https://digitalroot.net/img/vl/vl_logo_125x154.png"></a> </p>

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.4.3 1,015 5/22/2024
1.4.2 84 5/22/2024
1.4.1 95 5/22/2024
1.4.0 98 5/22/2024
1.3.1 2,741 8/26/2023
1.3.0 1,298 8/24/2023
1.0.15 1,415 8/24/2023
1.0.14 1,579 4/25/2023

Updated to match nx api.