π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use sh for docs shell snippets
Manav Rathifd234ed5bfe2
diff --git a/docs/CLAUDE.md b/docs/CLAUDE.mdindex 46d4028991..2cda065263 100644--- a/docs/CLAUDE.md+++ b/docs/CLAUDE.md@@ -4,7 +4,7 @@ Documentation for Ente's products published at [ente.com/help](https://ente.com/## Development commands-```bash+```shnpm ci # Install dependenciesnpm run dev # Start local dev servernpm run build # Build for production@@ -35,7 +35,7 @@ Platform instructions use bold headers: `**On mobile:**`, `**On desktop:**`, `**FAQ questions need unique anchor IDs: `### Question? {#descriptive-anchor-id}`. Use descriptive IDs (`{#enable-face-recognition-ml}`, not `{#faq1}`), and keep them unique across all FAQ files. Check for duplicates with:-```bash+```shgrep -rh "{#[a-z0-9-]*}" docs/photos/faq/*.md | sed 's/.*{#\([^}]*\)}.*/\1/' | sort | uniq -d```diff --git a/docs/docs/auth/faq/android-apk-signature.md b/docs/docs/auth/faq/android-apk-signature.mdindex 1e4005cfe1..4df1736fe0 100644--- a/docs/docs/auth/faq/android-apk-signature.md+++ b/docs/docs/auth/faq/android-apk-signature.md@@ -16,7 +16,7 @@ These fingerprints are for the direct APK download. Play Store and F-Droid packa## Verify the APK-```bash+```shapksigner verify --print-certs <path_to_apk>```diff --git a/docs/docs/auth/migration/steam/index.md b/docs/docs/auth/migration/steam/index.mdindex 1c3591386c..b4bd76474d 100644--- a/docs/docs/auth/migration/steam/index.md+++ b/docs/docs/auth/migration/steam/index.md@@ -28,7 +28,7 @@ One way to migrate is to [use this tool by dyc3][releases] to simplify the proce1. Download the `.deb` from the [releases page][releases].2. Open a terminal and run this to install it:-```bash+```shsudo dpkg -i ./steamguard-cli_<version>_amd64.deb```@@ -37,7 +37,7 @@ sudo dpkg -i ./steamguard-cli_<version>_amd64.deb1. Download `steamguard` from the [releases page][releases]2. Make it executable, and move `steamguard` to `/usr/local/bin` or any other directory in your `$PATH`.-```bash+```shchmod +x ./steamguardsudo mv ./steamguard /usr/local/bin```@@ -48,7 +48,7 @@ sudo mv ./steamguard /usr/local/binSet up a new account with steamguard-cli-```bash+```shsteamguard setup # set up a new account with steamguard-cli```@@ -56,7 +56,7 @@ steamguard setup # set up a new account with steamguard-clisteamguard-cli can then generate a QR code for your 2FA secret.-```bash+```shsteamguard qr # print QR code for the first account in your maFilessteamguard -u <account name> qr # print QR code for a specific account```diff --git a/docs/docs/ensu/faq/android-apk-signature.md b/docs/docs/ensu/faq/android-apk-signature.mdindex 16921a58af..e74224418c 100644--- a/docs/docs/ensu/faq/android-apk-signature.md+++ b/docs/docs/ensu/faq/android-apk-signature.md@@ -16,7 +16,7 @@ These fingerprints are for the direct APK download. Play Store packages may use## Verify the APK-```bash+```shapksigner verify --print-certs <path_to_apk>```diff --git a/docs/docs/locker/getting-started/android-apk-signature.md b/docs/docs/locker/getting-started/android-apk-signature.mdindex 1173bd3813..44a342e147 100644--- a/docs/docs/locker/getting-started/android-apk-signature.md+++ b/docs/docs/locker/getting-started/android-apk-signature.md@@ -16,7 +16,7 @@ These fingerprints are for the direct APK download. Play Store and F-Droid packa## Verify the APK-```bash+```shapksigner verify --print-certs <path_to_apk>```diff --git a/docs/docs/photos/STYLE_GUIDE.md b/docs/docs/photos/STYLE_GUIDE.mdindex b153c73f1e..960d9be12e 100644--- a/docs/docs/photos/STYLE_GUIDE.md+++ b/docs/docs/photos/STYLE_GUIDE.md@@ -111,7 +111,7 @@ Use consistent format with `>` separator:Always specify language:````markdown-```bash+```shcommand here```````@@ -136,7 +136,7 @@ Always use H3 with mandatory anchor for deep linking:**Testing for duplicates:**-```bash+```sh# Run this command to check for duplicate anchor IDs:grep -rh "{#[a-z0-9-]*}" docs/photos/faq/*.md | sed 's/.*{#\([^}]*\)}.*/\1/' | sort | uniq -d```diff --git a/docs/docs/photos/faq/advanced-features.md b/docs/docs/photos/faq/advanced-features.mdindex 8f9da269c0..01d68209b2 100644--- a/docs/docs/photos/faq/advanced-features.md+++ b/docs/docs/photos/faq/advanced-features.md@@ -36,7 +36,7 @@ Learn more in the [CLI installation guide](/photos/features/utilities/cli#instalThe CLI supports incremental exports, which means it will only download new or changed files. Configure the export directory for the account once, then run exports whenever you need:-```bash+```sh# Configure where this account should export filesente account update --app photos --email [email protected] --dir /path/to/backup@@ -61,7 +61,7 @@ The recommended approach is to use the CLI to pull data from Ente to your NAS:Example cron job for daily sync:-```bash+```sh# Run once to set up the export directory/usr/local/bin/ente account update --app photos --email [email protected] --dir /nas/ente-backupdiff --git a/docs/docs/photos/features/utilities/cli.md b/docs/docs/photos/features/utilities/cli.mdindex 91b283d0af..5f43793812 100644--- a/docs/docs/photos/features/utilities/cli.md+++ b/docs/docs/photos/features/utilities/cli.md@@ -45,7 +45,7 @@ Ente's CLI is distributed directly over [GitHub](https://github.com/ente-io/enteBefore using the CLI, you need to authenticate:-```bash+```shente account login```@@ -55,7 +55,7 @@ This will prompt for your email and password, then store your session securely.The CLI supports **incremental exports**, downloading only new or changed files. Set or change the destination directory per account, then run the export:-```bash+```sh# Configure the export directory for your account (run once)ente account update --app photos --email [email protected] --dir /path/to/backup@@ -83,7 +83,7 @@ You can automate exports using cron (Linux/macOS) or Task Scheduler (Windows).Set the export directory for the account once (outside cron) and then schedule `ente export`:-```bash+```sh# Run once to set the directory the export job should use/usr/local/bin/ente account update --app photos --email [email protected] --dir /nas/ente-backup@@ -111,7 +111,7 @@ The recommended approach for keeping NAS and Ente synced is to use the CLI to ****Example for daily NAS sync:**-```bash+```sh/usr/local/bin/ente account update --app photos --email [email protected] --dir /nas/ente-backup0 2 * * * /usr/local/bin/ente export```diff --git a/docs/docs/photos/getting-started/android-apk-signature.md b/docs/docs/photos/getting-started/android-apk-signature.mdindex ac243a8219..04e0fd0846 100644--- a/docs/docs/photos/getting-started/android-apk-signature.md+++ b/docs/docs/photos/getting-started/android-apk-signature.md@@ -16,7 +16,7 @@ These fingerprints are for the direct APK download. Play Store and F-Droid packa## Verify the APK-```bash+```shapksigner verify --print-certs <path_to_apk>```diff --git a/docs/docs/self-hosting/administration/cli.md b/docs/docs/self-hosting/administration/cli.mdindex 9ec82d620b..4404db4edc 100644--- a/docs/docs/self-hosting/administration/cli.md+++ b/docs/docs/self-hosting/administration/cli.md@@ -41,7 +41,7 @@ To create a new account, use Ente Photos (or Ente Auth) web application, desktopYou can add your existing account using Ente CLI.-```shell+```shente account add```@@ -55,7 +55,7 @@ You can use `ente admin update-subscription` to increase storage quota and accouFor infinite storage and validity, use the following command:-```shell+```shente admin update-subscription -a <admin-user-mail> -u <user-email-to-update> --no-limit# Set a limitdiff --git a/docs/docs/self-hosting/administration/object-storage.md b/docs/docs/self-hosting/administration/object-storage.mdindex 6b573e53a2..b1568f66ba 100644--- a/docs/docs/self-hosting/administration/object-storage.md+++ b/docs/docs/self-hosting/administration/object-storage.md@@ -136,7 +136,7 @@ You may have to change the `AllowedOrigins` to allow only certain origins (yourAssuming you have AWS CLI on your system and that you have configured it with your access key and secret, you can execute the below command to set bucket CORS. Make sure to enter the right path for the `cors.json` file.-```shell+```shaws s3api put-bucket-cors --bucket YOUR_S3_BUCKET --cors-configuration /path/to/cors.json```@@ -144,7 +144,7 @@ aws s3api put-bucket-cors --bucket YOUR_S3_BUCKET --cors-configuration /path/to/Assuming you have configured an alias for MinIO account using the command:-```shell+```shmc alias set storage-account-alias minio-endpoint minio-key minio-secret```@@ -157,7 +157,7 @@ where,To set the `AllowedOrigins` Header, you can use the following command:.-```shell+```shmc admin config set storage-account-alias api cors_allow_origin="*"```diff --git a/docs/docs/self-hosting/administration/reverse-proxy.md b/docs/docs/self-hosting/administration/reverse-proxy.mdindex 2520cea985..e01d7106b8 100644--- a/docs/docs/self-hosting/administration/reverse-proxy.md+++ b/docs/docs/self-hosting/administration/reverse-proxy.md@@ -97,7 +97,7 @@ memories.ente.yourdomain.tld {Reload Caddy for changes to take effect.-```shell+```shsudo systemctl reload caddy```diff --git a/docs/docs/self-hosting/administration/users.md b/docs/docs/self-hosting/administration/users.mdindex 5592a7d7e7..d8bb6682c3 100644--- a/docs/docs/self-hosting/administration/users.md+++ b/docs/docs/self-hosting/administration/users.md@@ -56,7 +56,7 @@ If you have edited the Compose file or configuration file (`museum.yaml`), makeYou can do this by the following command:-```shell+```shdocker compose down && docker compose up -d```diff --git a/docs/docs/self-hosting/installation/compose.md b/docs/docs/self-hosting/installation/compose.mdindex f3d947b955..f7373c94b3 100644--- a/docs/docs/self-hosting/installation/compose.md+++ b/docs/docs/self-hosting/installation/compose.md@@ -30,7 +30,7 @@ Copy the configuration files for modification by the following command inside `sThis allows you to modify configuration without having to face hassle while pulling in latest changes.-```shell+```sh# Inside the cloned repository's directory (usually `ente`)cd server/configcp example.env .env@@ -47,7 +47,7 @@ You should consider generating values for JWT and encryption keys for emails ifYou can do by running the following command inside `ente/server`, assuming you cloned the repository to `ente`:-```shell+```sh# Change into the ente/servercd ente/server# Generate secretsdiff --git a/docs/docs/self-hosting/installation/config.md b/docs/docs/self-hosting/installation/config.mdindex abe5deab41..b1f94089e8 100644--- a/docs/docs/self-hosting/installation/config.md+++ b/docs/docs/self-hosting/installation/config.md@@ -110,7 +110,7 @@ They are generated by random in quickstart script, so no intervention is necessaHowever, if you are using Ente for long-term needs and you have not installed Ente via quickstart, consider generating values for these along with [JWT](#jwt) by following the steps described below:-```shell+```sh# If you have not cloned alreadygit clone https://github.com/ente-io/entediff --git a/docs/docs/self-hosting/installation/manual.md b/docs/docs/self-hosting/installation/manual.mdindex a772ace709..54a927eae9 100644--- a/docs/docs/self-hosting/installation/manual.md+++ b/docs/docs/self-hosting/installation/manual.md@@ -64,7 +64,7 @@ If you wish to run Ente from source without using Docker, follow the steps descrStart by cloning Ente's repository from GitHub to your local machine.-```shell+```shgit clone https://github.com/ente-io/ente```diff --git a/docs/docs/self-hosting/installation/post-install/index.md b/docs/docs/self-hosting/installation/post-install/index.mdindex db4dc8b890..75f46fe78a 100644--- a/docs/docs/self-hosting/installation/post-install/index.md+++ b/docs/docs/self-hosting/installation/post-install/index.md@@ -26,7 +26,7 @@ This code can be found in the server logs, which should be shown in your terminaIf not, access the server logs inside the folder where Compose file resides.-```shell+```shsudo docker compose logs```@@ -79,7 +79,7 @@ If you have edited the Compose file or configuration file (`museum.yaml`), makeYou can do this by the following command:-```shell+```shdocker compose down && docker compose up -d```diff --git a/docs/docs/self-hosting/installation/upgrade.md b/docs/docs/self-hosting/installation/upgrade.mdindex 6abefc038b..0afb33c0db 100644--- a/docs/docs/self-hosting/installation/upgrade.md+++ b/docs/docs/self-hosting/installation/upgrade.md@@ -13,7 +13,7 @@ Upgrading Ente depends on the method of installation you have chosen.You can free up some disk space by deleting older images that were used by obsolete containers.-```shell+```shdocker image prune```@@ -23,7 +23,7 @@ Pull in the latest images in the directory where the Compose file resides. RestaRun the following command inside `my-ente` directory (default name used in quickstart):-```shell+```shdocker compose pull && docker compose up -d```diff --git a/docs/docs/self-hosting/troubleshooting/cli.md b/docs/docs/self-hosting/troubleshooting/cli.mdindex b11b7c9d4d..fe69fdf6e8 100644--- a/docs/docs/self-hosting/troubleshooting/cli.md+++ b/docs/docs/self-hosting/troubleshooting/cli.md@@ -19,7 +19,7 @@ If you are using Linux for accessing Ente CLI with, you can install a system keyFor Ubuntu/Debian based distributions, you can install `gnome-keyring` via `apt`-```shell+```shsudo apt install gnome-keyring```@@ -31,7 +31,7 @@ In case of using Ente CLI on server environment, you may not be able to installSet `ENTE_CLI_SECRETS_PATH` environment variable in your shell's configuration file (`~/.bashrc`, `~/.zshrc`, or other corresponding file)-```shell+```sh# Replace ./secrets.txt with the path to secrets file# that you are using for saving.# IMPORTANT: Make sure it is stored in a secure place.diff --git a/docs/docs/self-hosting/troubleshooting/docker.md b/docs/docs/self-hosting/troubleshooting/docker.mdindex 3f32eabb23..98a982386c 100644--- a/docs/docs/self-hosting/troubleshooting/docker.md+++ b/docs/docs/self-hosting/troubleshooting/docker.md@@ -9,7 +9,7 @@ description: Fixing Docker-related errors when trying to self-host Ente>> Remember to restart your cluster to ensure changes that you make in the `compose.yaml` and `museum.yaml` get picked up.>-> ```shell+> ```sh> docker compose down> docker compose up> ```