Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[docs]: move cli self host guide to help page (from ente/cli/docs/self-hosting.md)

mangeshrex746c815186ce
diff --git a/docs/docs/.vitepress/sidebar.ts b/docs/docs/.vitepress/sidebar.ts
index 2cf669976f..8d5df06965 100644
--- a/docs/docs/.vitepress/sidebar.ts
+++ b/docs/docs/.vitepress/sidebar.ts
@@ -265,6 +265,10 @@ export const sidebar = [
text: "Hosting Ente without Docker",
link: "/self-hosting/guides/standalone-ente",
},
+ {
+ text: "Configure CLI for Self Hosted Instance",
+ link: "/self-hosting/guides/selfhost-cli"
+ }
],
},
{
diff --git a/docs/docs/self-hosting/guides/selfhost-cli.md b/docs/docs/self-hosting/guides/selfhost-cli.md
new file mode 100644
index 0000000000..9cd58cb8c1
--- /dev/null
+++ b/docs/docs/self-hosting/guides/selfhost-cli.md
@@ -0,0 +1,37 @@
+---
+title: CLI for Self Hosted Instance
+description: Guide to configuring Ente CLI for Self Hosted Instance
+---
+
+## Self Hosting
+
+If you are self-hosting the server, you can still configure CLI to export
+data & perform basic admin actions.
+
+To do this, first configure the CLI to point to your server. Define a config.yaml
+and put it either in the same directory as CLI binary
+or path defined in env variable `ENTE_CLI_CONFIG_DIR`
+
+```yaml
+endpoint:
+ api: "http://localhost:8080"
+```
+
+You should be able to [add an account](https://github.com/ente-io/ente/blob/main/cli/docs/generated/ente_account_add.md),
+and subsequently increase the
+[storage and account validity](https://github.com/ente-io/ente/blob/main/cli/docs/generated/ente_admin_update-subscription.md) using the CLI.
+
+
+For the admin actions, you first need to whitelist admin users. You can create
+`server/museum.yaml`, and whitelist add the admin userID `internal.admins`.
+See [local.yaml](https://github.com/ente-io/ente/blob/main/server/configurations/local.yaml#L211C1-L232C1)
+in the server source code for details about how to define this.
+
+You can use [account list](https://github.com/ente-io/ente/blob/main/cli/docs/generated/ente_account_list.md)
+command to find the user id of any account.
+
+```yaml
+internal:
+ admins:
+ # - 1580559962386440
+```