Remote Camera Copyright C 2005 Helmut Dersch der@fh-furtwangen.de
gphoto2 — command-line gphoto2 client
gphoto2 [--debug] [[-q] | [--quiet]] [[-v]
| [--verbose]] [[-h] | [--help]]
[--list-cameras] [--list-ports] [--stdout]
[--stdout-size] [--auto-detect] [--port PATH]
[--speed SPEED] [--camera MODEL] [--filename FILENAME]
[--usbid USBIDS] [[-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]
libgphoto2(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.
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 the filename to use when saving downloaded files. The --filename option accepts %a, %A, %b, %B, %d, %H, %k, %I, %l, %j, %m, %M, %S, %y, %%, (see date(1)) and, in addition, %n for the number, %C for the filename suffix, and %f for the filename without suffix.
(Expert only) Override USB IDs. USBIDS must be of the form DetectedVendorID:DetectedProductID=TreatAsVendorID:TreatAsProductID to treat any USB device detected as DetectedVendorID:DetectedProductID as TreatAsVendorID:TreatAsProductID instead. All the VendorIDs and ProductIDs should be hexadecimal numbers beginning in C notation, i.e. beginning with '0x'.
Example: --usbid 0x4a9:0x306b=0x4a9:0x306c
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.