From baca8b93c61fcb310704598e87a2e6c277fd5925 Mon Sep 17 00:00:00 2001 From: jg-noncelogic Date: Fri, 11 Sep 2026 13:05:56 +0000 Subject: [PATCH] docs: explain per-command environment selection Signed-off-by: jg-noncelogic --- README.de.md | 9 +++++++++ README.es.md | 9 +++++++++ README.fr.md | 9 +++++++++ README.md | 9 +++++++++ README.pt-BR.md | 9 +++++++++ 5 files changed, 45 insertions(+) diff --git a/README.de.md b/README.de.md index 6b7575bb..87c79673 100644 --- a/README.de.md +++ b/README.de.md @@ -90,6 +90,15 @@ sotto login && sotto push # optional: sync ciphertext via the hosted instance sotto share DATABASE_URL # one-time, burn-after-reading link for a single secret ``` +Mit `--env` wählst du eine Umgebung für einen einzelnen Befehl aus, ohne die Standardumgebung des Projekts zu ändern: + +```sh +sotto run --env staging -- npm test +sotto ls --env staging +``` + +`--env` gilt nur für diesen Befehl; `sotto env use` ändert die Standardumgebung. + `sotto login` verwendet die gehostete Instanz unter [getsotto.co.uk](https://getsotto.co.uk), sofern du die CLI nicht mit `--server ` auf einen anderen Server richtest (siehe [Bereitstellung](deploy/README.md) für den eigenen Betrieb). In jedem Fall speichert der Server nur Chiffrat: Der Web-Tresor unter derselben Adresse entschlüsselt in deinem diff --git a/README.es.md b/README.es.md index 85a321a5..bfe0d959 100644 --- a/README.es.md +++ b/README.es.md @@ -90,6 +90,15 @@ sotto login && sotto push # optional: sync ciphertext via the hosted instance sotto share DATABASE_URL # one-time, burn-after-reading link for a single secret ``` +Usa `--env` para elegir un entorno para un solo comando sin cambiar el entorno predeterminado del proyecto: + +```sh +sotto run --env staging -- npm test +sotto ls --env staging +``` + +`--env` se aplica solo a ese comando; `sotto env use` cambia el entorno predeterminado. + `sotto login` usa la instancia alojada en [getsotto.co.uk](https://getsotto.co.uk) salvo que apuntes a otro lugar con `--server ` (consulta [Despliegue](deploy/README.md) para alojar el tuyo). En cualquier caso el servidor solo almacena texto cifrado: la bóveda web en la misma dirección descifra en tu diff --git a/README.fr.md b/README.fr.md index e401e284..52439790 100644 --- a/README.fr.md +++ b/README.fr.md @@ -90,6 +90,15 @@ sotto login && sotto push # optional: sync ciphertext via the hosted instance sotto share DATABASE_URL # one-time, burn-after-reading link for a single secret ``` +Utilisez `--env` pour sélectionner un environnement pour une seule commande sans modifier celui par défaut du projet : + +```sh +sotto run --env staging -- npm test +sotto ls --env staging +``` + +`--env` ne s'applique qu'à cette commande ; `sotto env use` modifie l'environnement par défaut. + `sotto login` utilise l'instance hébergée sur [getsotto.co.uk](https://getsotto.co.uk) sauf si vous le faites pointer ailleurs avec `--server ` (voir [Déploiement](deploy/README.md) pour héberger le vôtre). Dans tous les cas, le serveur ne stocke que du texte chiffré : le coffre web à la même adresse déchiffre dans votre diff --git a/README.md b/README.md index bc30c4e1..ae325024 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,15 @@ sotto login && sotto push # optional: sync ciphertext via the hosted instance sotto share DATABASE_URL # one-time, burn-after-reading link for a single secret ``` +Use `--env` to select an environment for one command without changing the project's default: + +```sh +sotto run --env staging -- npm test +sotto ls --env staging +``` + +`--env` lasts for that command only; `sotto env use` changes the default. + `sotto login` uses the hosted instance at [getsotto.co.uk](https://getsotto.co.uk) unless you point it elsewhere with `--server ` (see [Deploying](deploy/README.md) to run your own). Either way the server only ever stores ciphertext - the web vault at the same address decrypts in your diff --git a/README.pt-BR.md b/README.pt-BR.md index 781ce35d..d9268baf 100644 --- a/README.pt-BR.md +++ b/README.pt-BR.md @@ -90,6 +90,15 @@ sotto login && sotto push # optional: sync ciphertext via the hosted instance sotto share DATABASE_URL # one-time, burn-after-reading link for a single secret ``` +Use `--env` para selecionar um ambiente para um único comando sem alterar o padrão do projeto: + +```sh +sotto run --env staging -- npm test +sotto ls --env staging +``` + +`--env` vale apenas para esse comando; `sotto env use` altera o ambiente padrão. + `sotto login` usa a instância hospedada em [getsotto.co.uk](https://getsotto.co.uk), a menos que você aponte para outro lugar com `--server ` (consulte [Deploy](deploy/README.md) para hospedar o seu). De todo modo o servidor só armazena texto cifrado: o cofre web no mesmo endereço descriptografa no seu