gphoto2 — command-line gphoto2 client
gphoto2 [--debug] [-q | --quiet] [-v | --verbose] [-h | --help]
[--list-cameras] [--usb-usermap-script NAME]
[--print-usb-usermap] [--list-ports] [--stdout]
[--stdout-size] [--auto-detect] [--port PATH]
[--speed SPEED] [--camera MODEL] [--filename FILENAME]
[--usbid USBID] [-a | --abilities] [--folder FOLDER]
[[-R | --recurse] | --norecurse] [-l | --list-folders]
[-L | --list-files] [-m NAME | --mkdir NAME]
[-r NAME | --rmdir NAME] [-n | --num-files]
[-p RANGE | --get-file RANGE] [-P | --get-all-files]
[-t RANGE | --get-thumbnail RANGE]
[-T | --get-all-thumbnails]
[-r RANGE | --get-raw-data RANGE] [--get-all-raw-data]
[--get-audio-data RANGE] [--get-all-audio-data]
[-d RANGE | --delete-file RANGE] [-D | --delete-all-files]
[-u FILENAME | --upload-file FILENAME] [--capture-preview]
[--capture-image] [--capture-movie] [--capture-sound]
[--capture-show-info RANGE]
[--summary] [--manual] [--about] [--shell]
gphoto2(3) is a cross-platform digital camera library, and gphoto2(1) is a command-line client for it.
Where an option takes a range of files, thumbnails, or other data, they are numbered beginning at 1. A range is a comma-separated list of numbers or spans (‘first-last’). Ranges are XOR (exclusive or), so that ‘1-5,3,7’ is equivalent to ‘1,2,4,5,7’.
Turn on debugging.
Quiet output (default=verbose).
Display version and exit.
Display a short usage message.
List supported camera models.
Use NAME as the hotplug usb script used in the output of --print-usb-usermap. Default is "usbcam".
For every camera supported by your version of gphoto2, print the corresponding line for inclusion into the usb.usermap hotplug config file. The script name used in these lines is specified with the --usb-usermap-script option.
List supported port devices.
Send file to stdout.
Print filesize before data.
List auto-detected cameras.
Specify port device.
Specify serial transfer speed.
Specify camera model. Most model names contain spaces: remember to enclose the name in quotes so that the shell knows it is one parameter. For example: --camera "Kodak DC240".
Specify a filename.
(Expert only) Override USB IDs.
Display camera abilities.
Specify camera folder (default="/").
Recursion (default for download).
No recursion (default for deletion).
List folders in folder.
List files in folder.
Create a directory.
Remove a directory.
Display number of files.
Get files given in range.
Get all files from folder.
Get thumbnails given in range.
Get all thumbnails from folder.
Get raw data given in range.
Get all raw data from folder.
Get audio data given in range.
Get all audio data from folder.
Delete files given in range.
Delete all files in folder.
Upload a file to camera.
Capture a quick preview.
Capture an image.
Capture a movie.
Capture an audio clip.
Show info.
Summary of camera status.
Camera driver manual.
About the camera driver.
Start the gphoto2 shell, an interactive environment. See SHELL MODE for a detailed description.
The following commands are available:
Change to a directory on the camera.
Change to a directory on the local machine.
Exit the gphoto2 shell.
Download the file to the current directory.
Download the thumbnail to the current directory.
Download raw data to the current directory.
Show information.
Delete a file or directory.
Show EXIF information (only if compiled with EXIF support).
Displays command usage.
List the contents of the current directory on the camera.
gphoto2(3), gphoto2.txt, gphoto2-cli.txt, http://www.gphoto.org/
List files on camera.
Get files number 7 through 13 from the list output by gphoto2 --list-files.
Append a line to the hotplug config file /etc/hotplug/usb.usermap for every supported camera, using /etc/hotplug/usb/gphoto2cam for setting up permissions correctly.