aboutsummaryrefslogtreecommitdiff
path: root/docs/administration/CLI_tasks/frontend.md
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-06-14 17:27:29 -0500
committerAlex Gleason <alex@alexgleason.me>2021-06-14 17:27:29 -0500
commit9a768429a3a79faacad47aa19ff2742dacdf245d (patch)
treeb41b4d53811bc510b326ac124fbc875ba42b452c /docs/administration/CLI_tasks/frontend.md
parenta9106e4f13fa3ad6d0dbddd0f4f4e0647875b58c (diff)
downloadpleroma-9a768429a3a79faacad47aa19ff2742dacdf245d.tar.gz
Frontend: enable CLI task
Diffstat (limited to 'docs/administration/CLI_tasks/frontend.md')
-rw-r--r--docs/administration/CLI_tasks/frontend.md21
1 files changed, 19 insertions, 2 deletions
diff --git a/docs/administration/CLI_tasks/frontend.md b/docs/administration/CLI_tasks/frontend.md
index d4a48cb56..6a330975d 100644
--- a/docs/administration/CLI_tasks/frontend.md
+++ b/docs/administration/CLI_tasks/frontend.md
@@ -3,13 +3,15 @@
=== "OTP"
```sh
- ./bin/pleroma_ctl frontend install <frontend> [--ref <ref>] [--file <file>] [--build-url <build-url>] [--path <path>] [--build-dir <build-dir>]
+ ./bin/pleroma_ctl frontend install <frontend> [--ref <ref>] [--file <file>] [--build-url <build-url>] [--path <path>] [--build-dir <build-dir>] [--primary] [--admin]
+ ./bin/pleroma_ctl frontend enable <frontend> [--ref <ref>] [--file <file>] [--build-url <build-url>] [--path <path>] [--build-dir <build-dir>] [--primary] [--admin]
```
=== "From Source"
```sh
- mix pleroma.frontend install <frontend> [--ref <ref>] [--file <file>] [--build-url <build-url>] [--path <path>] [--build-dir <build-dir>]
+ mix pleroma.frontend install <frontend> [--ref <ref>] [--file <file>] [--build-url <build-url>] [--path <path>] [--build-dir <build-dir>] [--primary] [--admin]
+ mix pleroma.frontend enable <frontend> [--ref <ref>] [--file <file>] [--build-url <build-url>] [--path <path>] [--build-dir <build-dir>] [--primary] [--admin]
```
Frontend can be installed either from local zip file, or automatically downloaded from the web.
@@ -94,3 +96,18 @@ The installation process is the same, but you will have to give all the needed o
If you don't have a zip file but just want to install a frontend from a local path, you can simply copy the files over a folder of this template: `${instance_static}/frontends/${name}/${ref}`.
+## Enabling a frontend
+
+Once installed, a frontend can be enabled with the `enable` command:
+
+=== "OTP"
+
+ ```sh
+ ./bin/pleroma_ctl frontend enable gensokyo --primary
+ ```
+
+=== "From Source"
+
+ ```sh
+ mix pleroma.frontend enable gensokyo --primary
+ ```