Skip to content

Command Line Interface

Below you will find the list of supported commands. For every command, a description and an example will be provided.

Synopsis

$ dropboxignore <command> <path> [parameters]

Commands

generate

Generates dropboxignore files based on the given path. If a .dropboxignore already exists, will not be modified. If a .gitignore file contains at least one exception pattern, the corresponding.dropboxignore file will not be created.

Example:

generate example

update

Updates .dropboxignore files in order to add missing patterns from .gitignore file.

Example:

update example

ignore

Ignores all matched folder or files under the given path using existing .dropboxignore files.

Example:

ignore example

genupi

generate, update & ignore using one shortcut command.

Example:

genupi example

list

Lists every ignored folder and file under the given path

Example:

list example

revert

Reverts every ignored file or folder under the given path. After running this command, all local files will be sync with dropbox.

Example:

revert example

delete

Deletes all .dropboxignore files under the given path.

Example:

delete example

help

Prints a help message and exits.

Example:

help example

Parameters

-v (verbosity level [0-2]) Default: 1

Select a number between 0 and 2 to increase or decrease verbosity. 2 will display debug logs. 0 will display error logs only.

-p (matching pattern) Default: '*'

Provide a pattern in order to filter matched files. This option is currently available only for list command.