Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' of github.com:ente-io/cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ua741 committed Oct 25, 2023
2 parents 4c09bf0 + 66d494b commit a270055
Showing 1 changed file with 46 additions and 36 deletions.
82 changes: 46 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cli for exporting ente.io data
# Command Line Utility for exporting data from [Ente](https://ente.io)

## Install

Expand All @@ -7,70 +7,80 @@ You can either download the binary from the [release page](https://github.com/en
### Build from source

```shell
go build -o "bin/ente-cli" main.go
go build -o "bin/ente" main.go
```

### Getting Started

Run the help command to see all available commands.
```shell
ente-cli --help
ente --help
```

#### Accounts
If you wish, you can add multiple accounts (your own and your family members) and export all using this tool.
* Add an account
```shell
ente-cli account add
```

* List accounts
```shell
ente-cli account list
```
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
```shell
ente account add
```

##### List accounts
```shell
ente account list
```

* Change export directory
```shell
ente-cli account update --email yourEmail@example.com --dir ~/photos
```
##### Change export directory
```shell
ente account update --email email@domain.com --dir ~/photos
```

### Export
* Start export
```shell
ente-cli export
```
##### Start export
```shell
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
```shell
docker build -t ente-cli:latest .
```
* Start the container in detached mode
```bash
docker-compose up -d
```
exec into the container

Build the docker image
```shell
docker build -t ente:latest .
```

Start the container in detached mode
```bash
docker-compose up -d
```

`exec` into the container
```shell
docker-compose exec ente-cli /bin/sh
docker-compose exec ente /bin/sh
```


#### How to directly execute the command
#### Directly executing commands

```shell
docker run -it --rm ente-cli:latest ls
```
```shell
docker run -it --rm ente:latest ls
```

---

## Releases

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

```shell
./release.sh
./release.sh
```

0 comments on commit a270055

Please sign in to comment.