35 Commits

Author SHA1 Message Date
Trekky12
e92b5c3397
[cli] sync deleted files before syncing new/updates files (#4776)
## Description
The CLI sorts deleted photos to the bottom of the sync queue. 
When an album is synced, a photo is removed from the album and later
re-added to the album (same name) and doing another sync the new file is
added first and a new name is generated since the original filename is
(still) taken. Afterwards the initial photo is deleted and the filename
would be available.
This leads to having a file, e.g. IMG_0001_1.JPG instead of the original
filename IMG_0001.JPG despite the initial filename is no longer on disk
and could have been used.

This PR changes the sort order so that deleted files are first removed
and afterwards new files are created. In this case all files where the
filename is now available, but were taken, are named like they were
uploaded.
2025-01-20 11:16:37 +05:30
mngshm
8d644ead1e [cli]delete: keyring availability check 2024-12-06 10:07:53 +05:30
mngshm
4289005302 [cli]fix: add func to check keyring availabilitye 2024-12-05 17:24:21 +05:30
mngshm
2b8060fdb7 [doc]minor: add ref link to ENTE_CLI_SECRETS error message 2024-12-04 12:27:45 +05:30
Neeraj Gupta
819c0bc13c [cli] Fix login for auth app when passkey is enabled 2024-10-23 16:09:17 +05:30
Alba Rincón
e791b40309 Add support for the password flag to the decrypt command 2024-10-20 20:54:40 +02:00
Neeraj Gupta
f11493842e [cli] Handle decryption for new libsodium wrapper 2024-09-21 06:50:33 +05:30
Neeraj Gupta
6872587083 [cli] Add support for exporting codes 2024-09-18 17:36:24 +05:30
Trekky12
8056720e23
Add possibility to define cli download tmp path with env variable (#3298)
## Description
When the /tmp folder is tmpfs the size is restricted and the download
failes when this tmp folder is full.
This PR introduces a enviroment variable to set the tmp download folder.
2024-09-17 08:55:11 +05:30
Trekky12
e6d4e835db
Fix exporting of live photos with cli (#3297)
Fix issue #1998
2024-09-17 08:54:39 +05:30
Neeraj Gupta
821edd00f7 [cli] Check for secret key length while reading from file 2024-09-10 14:16:36 +05:30
Neeraj Gupta
9e068bdc90 [cli] Base64 encode CLI secrets 2024-09-10 13:46:35 +05:30
Neeraj Gupta
e70bf6a379 [cli] Add check for deviceKey size 2024-09-10 13:46:15 +05:30
Neeraj Gupta
5bd7170755 [cli] Fix error log 2024-08-14 17:11:13 +05:30
Neeraj Gupta
ab17ae71d0 [cli] Continue export on bad timestamp marshal error 2024-08-14 17:10:58 +05:30
Neeraj Gupta
395f0384a0 [cli] Add option to exlude shared or hidden folders 2024-08-01 19:13:03 +05:30
Neeraj Gupta
0526c63681 [cli] Extend export command to pass filters 2024-08-01 17:52:58 +05:30
Neeraj Gupta
7d8a7257b4 [cli] Add list of filters 2024-08-01 17:46:05 +05:30
Pablo Ovelleiro Corral
97b5577d68
CLI: Allow setting secrets path via env var
Adds a new enviroment variable `ENTE_CLI_SECRETS_PATH`, that allows
specifying the path to a `secrets.txt` like the one used in the
dockerized version. If no path is provided, the old behaviour is maintained.
2024-07-11 18:38:52 +02:00
Neeraj Gupta
4042a5876e [cli] improve log 2024-06-22 20:48:02 +05:30
Neeraj Gupta
e77ebef801 [cli] Add admin cmd to disable passkey 2024-06-22 17:54:06 +05:30
Neeraj Gupta
58b9121e52 Add support to handle passkey verification 2024-06-18 14:36:15 +05:30
Neeraj Gupta
4674ab63e9 [cli] Fix Ente Auth export decryption 2024-05-31 21:29:17 +05:30
Neeraj Gupta
d8e917ac40 [cli] Hint user to create a account before adding to cli 2024-05-06 15:51:15 +05:30
Neeraj Gupta
a51a965fc8
[cli] Fix handling of delete file with stale colleciton entry (#1259)
## Description

## Tests
Tested locally
2024-03-30 14:14:03 +05:30
Neeraj Gupta
bc45db51a9
[cli] Improve logging for decryption error (#1242)
## Description
Related to #1237
## Tests
2024-03-29 11:08:45 +05:30
Neeraj Gupta
bc47368a01 [cli] Add API to delete-user 2024-03-14 16:18:08 +05:30
Neeraj Gupta
6af62d8727 [cli] Add admin disable-2fa cmd 2024-03-14 16:13:11 +05:30
Neeraj Gupta
da3c6a78d4 [cli] Make it optional to pass adminUser when only one account is configured 2024-03-14 16:01:40 +05:30
Neeraj Gupta
324eeed1c5 [cli] Add admin list-user cmd 2024-03-14 15:53:26 +05:30
Neeraj Gupta
b164b0df21 [cli] By default, update sub to high storage & expiry 2024-03-13 02:03:44 +05:30
Neeraj Gupta
0d38346722 [cli] Add admin API to bump up storage for free users 2024-03-13 02:03:44 +05:30
Neeraj Gupta
063e980280 [cli] Add command to get-token 2024-03-13 02:03:44 +05:30
Neeraj Gupta
d36be6efbd [cli] Add command to decrypt auth export 2024-03-05 12:31:25 +05:30
Manav Rathi
39ef006532 Move into cli/ 2024-03-01 12:39:01 +05:30