π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Improve CLI documentation
Manav Rathi85af7f920c36
diff --git a/cli/README.md b/cli/README.mdindex a24f4c131e..849dbdaac6 100644--- a/cli/README.md+++ b/cli/README.md@@ -1,44 +1,65 @@-# Command Line Utility for exporting data from [Ente](https://ente.io)+# Ente CLI++The Ente CLI is a Command Line Utility for exporting data from+[Ente](https://ente.io). It also does a few more things, for example, you can+use it to decrypting the export from Ente Auth.## Install-You can either download the binary from the [GitHub releases-page](https://github.com/ente-io/ente/releases?q=tag%3Acli-v0&expanded=true) or-build it yourself.+The easiest way is to download a pre-built binary from the [GitHub+releases](https://github.com/ente-io/ente/releases?q=tag%3Acli-v0&expanded=true).-### Build from source+You can also build these binaries yourself++```shell+./release.sh+```++Or you can build from source```shellgo build -o "bin/ente" main.go```-### Getting Started+The generated binaries are standalone, static binaries with no dependencies. You+can run them directly, or put them somewhere in your PATH.++There is also an option to use [Docker](#docker).++## UsageRun the help command to see all available commands.+```shellente --help```-#### Accounts+### 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+#### Add an account+```shellente account add```-##### List accounts+#### List accounts+```shellente account list```-##### Change export directory+#### Change export directory+```shellente account update --email [email protected] --dir ~/photos```### Export-##### Start export++#### Start export+```shellente export```@@ -51,16 +72,18 @@ 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.+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+```shelldocker build -t ente:latest .```Start the container in detached mode-```bash++```shelldocker-compose up -d```@@ -69,20 +92,8 @@ docker-compose up -ddocker-compose exec ente /bin/sh```-#### Directly executing commands```shelldocker run -it --rm ente:latest ls```-------## Releases--Run the release script to build the binary and run it.--```shell-./release.sh-```-diff --git a/cli/docs/release.md b/cli/docs/release.mdnew file mode 100644index 0000000000..a539e7e5d5--- /dev/null+++ b/cli/docs/release.md@@ -0,0 +1,21 @@+# Releasing++Tag main, and push the tag.++```sh+git tag cli-v1.2.3+git push origin cli-v1.2.3+```++This'll trigger a [GitHub workflow](../../.github/workflows/cli-release.yml)+that creates a new draft GitHub release and attaches all the build artifacts to+it (zipped up binaries for various OS and architecture combinations).++## Local release builds++Run the release script to build the binaries for the various OS and architecture+cominations++```shell+./release.sh+```