In the following table is a summary of the more important commands used with the mongofiles utility:
Command | Notes |
list <filter> | This command operates much like the Linux ls or the Windows dir commands. If you specify one or more characters in the filter, you get a list of filenames starting with those characters. Using Linux as an example, this command is similar to ls xyz* (returns a list of files starting with xyz). |
search <filter> | This command is the same as list except that a list of filenames matching any part of filter are displayed. Using Linux as an example, this command is similar to ls *xyz* (returns a list of filenames containing xyz). |
put <filename> | Copies a file from the local filesystem to GridFS. By default, GridFS uses the local filename. If you need to have the GridFS filename be different, use the --local option. Use the --replace option to overwrite an existing GridFS of the same name. |
get <filename> | The... |