ente/cli
Manav Rathi 2101d06d32 export CGO_ENABLED=0
The configuration used by goreleaser (which we previously used to build the
release binaries) had set CGO_ENABLED=0. Since we don't specifically need this
to be on, revert to that configuration.

Also add a few more go build flags to reduce the size of the produced binaries

Ref:
- https://github.com/wangyoucao577/go-release-action/issues/33
- https://github.com/wangyoucao577/go-release-action
- https://github.com/ente-io/cli/blob/main/.goreleaser.yaml#L18

Related:
- https://github.com/ente-io/ente/issues/727
2024-03-07 12:00:17 +05:30
..
cmd [cli] Bump version to 0.1.11 2024-03-05 12:31:25 +05:30
internal Move into cli/ 2024-03-01 12:39:01 +05:30
pkg [cli] Add command to decrypt auth export 2024-03-05 12:31:25 +05:30
utils Move into cli/ 2024-03-01 12:39:01 +05:30
.gitignore Move into cli/ 2024-03-01 12:39:01 +05:30
docker-compose.yml Move into cli/ 2024-03-01 12:39:01 +05:30
Dockerfile Move into cli/ 2024-03-01 12:39:01 +05:30
Dockerfile-x86 Move into cli/ 2024-03-01 12:39:01 +05:30
go.mod Move into cli/ 2024-03-01 12:39:01 +05:30
go.sum Move into cli/ 2024-03-01 12:39:01 +05:30
main.go Move into cli/ 2024-03-01 12:39:01 +05:30
README.md Use the tag: qualifier to better filter the releases 2024-03-06 14:42:49 +05:30
release.sh export CGO_ENABLED=0 2024-03-07 12:00:17 +05:30

Command Line Utility for exporting data from Ente

Install

You can either download the binary from the GitHub releases page or build it yourself.

Build from source

 go build -o "bin/ente" main.go

Getting Started

Run the help command to see all available commands.

ente --help

Accounts

If you wish, you can add multiple accounts (your own and that of your family members) and export all data using this tool.

Add an account
ente account add
List accounts
ente account list
Change export directory
ente account update --email email@domain.com --dir ~/photos

Export

Start export
ente export

Docker

If you fancy Docker, you can also run the CLI within a container.

Configure

Modify the docker-compose.yml and add volume. cli-data volume is mandatory, you can add more volumes for your export directory.

Build the docker image

docker build -t ente:latest .

Start the container in detached mode

docker-compose up -d

exec into the container

docker-compose exec ente /bin/sh

Directly executing commands

docker run -it --rm ente:latest ls

Releases

Run the release script to build the binary and run it.

./release.sh