Use the client

Commands

Use the following commands to work with the client:

Token: to get your log-in key (OAuth token) for your Yandex username (USERNAME). When entering the command, you can enter your Yandex password (PASSWORD) as well as the token file and its directory (FILE). If no additional options are specified, the file passwd will be created in the directory ~/.config/yandex-disk to store the token.

Start: launch daemon and sync all folders except those on the exclusion list exclude-dirs.

$ yandex-disk start [OPTION]

Status: display the daemon's status (sync status, sync errors, list of synced files, and total and available space on Disk).

$ yandex-disk status [OPTION]

Stop: stop the daemon.

$ yandex-disk stop [OPTION]

Sync: sync all folders except those on the exclusion list exclude-dirs.

$ yandex-disk sync [OPTION]

Publish: get a public link to the specified file or folder (FILE).

$ yandex-disk publish [OPTION] FILE

Unpublish: unpublish the specified file or folder (FILE).

$ yandex-disk unpublish FILE

Additional options [OPTION]

--config=FILE, -c FILE

Show configuration file. The file config.cfg is used by default in the directory ~/.config/yandex-disk.

--dir=DIR, -d DIR

Enter the directory where a local copy of Disk will be stored. If the name was not entered when running setup, the catalog ~/Yandex.Disk will be used by default.

--auth=FILE, -a FILE

Enter the file containing log-in data. The default file is passwd, which was created using the command token or the setup wizard and is stored in the directory ~/.config/yandex-disk.

--exclude-dirs=DIR1,DIR2,...

Do not sync the specified directories. In order for these settings to always apply, these directories must be added to the exclusion list exclude-dirs in the file config.cfg. For settings to work correctly, the names of excluded directories should be separated with commas, not spaces.

--read-only

Forbid changing files on the Disk server and run sync only in a local copy. In case of conflicts when syncing, local files will be renamed. If the --overwrite setting is also enabled, local files will be overwritten.

--overwrite

Allow changes made to the local copy of Disk to be overwritten when syncing with the server. Use together with the --read-only option.

--no-daemon, -D

Launch daemon without returning management to the console. The daemon must be stopped by launching the command yandex-disk stop in another console or by closing the current console to return management.

Can the console client be used for data replication?

GUI for Linux console client

This utility supports all of the basic functions of the console client. An icon in the taskbar shows the current synchronization status and can use pop-up notifications to keep you informed of any changes. The utility also adds item posting to the context menu.

Ya-gui

This utility lets you launch daemons in normal or advanced mode (with additional options). It adds items to the context menu that are responsible for publishing. In running state it lets you enable and disable access to files, halt a daemon, and display information about the daemon's current status.

This utility supports all of the basic functions of the console client. An icon in the taskbar shows the current synchronization status and can use pop-up notifications to keep you informed of any changes. The utility also adds item posting to the context menu.

Ya-gui

This utility lets you launch daemons in normal or advanced mode (with additional options). It adds items to the context menu that are responsible for publishing. In running state it lets you enable and disable access to files, halt a daemon, and display information about the daemon's current status.