Octoprint.exe ARG's

Under Windows (and other OS's) what are the command line arguements for Octoprint.exe?

I'm specifically looking to move the Octoprint "Settings Folder" from %APPDATA%/OctoPrint to D:\OctoPrint_Data.

I've been only able to find under the config.yaml document the following:

If not specified via the command line, the main configuration file config.yaml for OctoPrint is expected in its settings folder, which unless defined differently via the command line is located at ~/.octoprint on Linux, at %APPDATA%/OctoPrint on Windows and at ~/Library/Application Support/OctoPrint on MacOS.

Thanks, in advance, for your assistance.

James

Take a look at the output of octoprint --help

Example (Linux, but the parameters are the same):

$ octoprint --help
Usage: octoprint [OPTIONS] COMMAND [ARGS]...

Options:
  -b, --basedir PATH  Specify the basedir to use for configs, uploads,
                      timelapses etc.
  -c, --config PATH   Specify the config file to use.
  -v, --verbose       Increase logging verbosity.
  --safe              Enable safe mode; disables all third party plugins.
  --version           Show the version and exit.
  --help              Show this message and exit.

Commands:
  analysis  Analysis tools.
  client    Basic API client.
  config    Basic config manipulation.
  dev       Additional commands for development tasks.
  plugins   Additional commands provided by plugins.
  safemode  Sets the safe mode flag for the next start.
  serve     Starts the OctoPrint server.
$ octoprint serve --help
Usage: octoprint serve [OPTIONS]

  Starts the OctoPrint server.

Options:
  -b, --basedir PATH  Specify the basedir to use for configs, uploads,
                      timelapses etc.
  -c, --config PATH   Specify the config file to use.
  -v, --verbose       Increase logging verbosity.
  --safe              Enable safe mode; disables all third party plugins.
  --host TEXT         Specify the host on which to bind the server.
  --port INTEGER      Specify the port on which to bind the server.
  --logging PATH      Specify the config file to use for configuring logging.
  --iknowwhatimdoing  Allow OctoPrint to run as user root.
  --debug             Enable debug mode.
  --ignore-blacklist  Disable processing of the plugin blacklist.
  --help              Show this message and exit.
1 Like

Thanks! I've been searching for the --basedir arg for days.

Best regards.
James

Great! Don't forget to mark the solution :marksolved: so others may find it easier :wink: