Log in, log out, and other account actions
Log in to Yandex Disk
To log in to Yandex Disk, use the token command.
When entering the command, you can specify the file name for the token and the path to it (FILE). If no additional options are specified, the file passwd will be created in the directory ~/.config/yandex-disk to store the token.
$ yandex-disk token [FILE]
You don't need to enter your username and password in the client. After calling the command, Yandex Disk will ask you to open a certain page in the browser and enter your unique code there.
Note
Before entering the code, make sure you are logged in to the browser under the correct account.
What happens if I don't use Yandex Disk for a long time?
If you don't access or use Yandex Disk for more than two years, your account may be blocked and its data may be deleted.
Email with a block warning
We'll notify you about the upcoming block in advance. Within seven days of receiving the email, you can cancel the block on your own. All you need to do is just log in to Yandex Disk.
Yandex Disk block
If you don't cancel the block within seven days after receiving the warning, your Yandex Disk will be blocked. After that, you have three months to lift the block. We'll regularly remind you about the upcoming data deletion so that you have time to unblock Yandex Disk.
To lift the block and restore full access to Yandex Disk:
- Contact support. Specify the blocked account username in the email.
- Wait for a response email — we'll unblock Yandex Disk.
Alert
If you don't unblock your Yandex Disk, all files stored on it will be permanently deleted in three months.