Skip to content

Command line arguments

paukstelis edited this page May 25, 2023 · 4 revisions

Command line arguments

Using:

Command line arguments are invoked by adding them after the octoprint_deploy command: sudo octoprint_deploy/octoprint_deploy.sh argument

Available arguments and their functions:

remove

Removes everything octoprint_deploy has done, letting you start over with the system preparation

restart_all

Restarts all OctoPrint instances that are defined in /etc/octoprint_instances

noserial

Ignores camera serial numbers and forces the use of physical USB ports when setting up udev rules. Useful when you have multiple webcams that have duplicate serial numbers.

picam

OctoPi only. Sets up the next camera using /dev/camera0 which is a default device for RPiCam. This may change in more recent versions of OctoPi that use libcamera. THIS WILL NOT WORK WITH PiCam V3!!!!

replace

Replaces an existing printer udev rule with a new rule. Please note, this currently only works when replacing a serial numbered printer with another serial numbered printer (or non-serial numbered with non-serial numbered)

backup

Backs up all instances defined in /etc/octoprint_instances. This effectively just makes a gzipped tarball of the instance base directory (/home/$USER/.instancename)