# Running Games Communities

This part is for Games Communities' own admins: the people who run it and keep it safe.

## Admin accounts

An account becomes an admin when the service is started with `--admin=<user>`. Admins see the same app as everyone,
plus the admin pages. Every change an admin makes through the service (each request to `/v1/admin/...` but reads) is
written to the **admin log**: who, when, what was sent and the answer.

## GC Tools

**GC Tools** is the admins' menu on their own PC, one key a job:

| Key | Job |
| --- | --- |
| **0** | The public store on this PC: start, stop, update, invite codes, make an admin. |
| **1**, **U**, **%** | Publish a new app release; choose who gets it (beta first, then a share of players); feature flags for a share of players. |
| **2**, **3** | Upload the website; update the service. |
| **4** | Invite someone. |
| **5**, **N**, **X** | Reports and notices of illegal content; the safety numbers; remove something at once. |
| **6** | Ban or unban a player. |
| **Y**, **!** | Take down a shop's code; script kill switches. |
| **+**, **D** | The street's house stores; the front page's picks. |
| **E**, **H** | Error reports from players' apps; support requests. |
| **A** | The admin log. |
| **S**, **L**, **R**, **-**, **B**, **F**, **T** | Status, live logs, restart, undo the last service update, backups, server files, a terminal on the server. |
| **9**, **P**, **G**, **O**, **C** | Run all checks; preview the website; local stores full of test games; the client. |
| **W**, **?** | Open the website; this manual. |

GC's own games (the `gc-games` flag): **7**, **K** (pull a game or build; held builds), **8**, **#**, **V** (review
games; end a developer account; review bombs), **M** (money), **Z** (deal checks). Later: **D** (front page picks,
with the store front), **\*** (the Steam lab), **I**, **J** (GC Ship; the developer tools' checks).

## Health

`/healthz` answers the service's health: its database, its disk and its virus checks. GC Tools' **S** shows each
service with its memory and how long it has run.

## Recovering an account

A player who lost their email address, or whose account was stolen:

```sh
gc-api --data=<folder> --recover-account=<player>:<their new email>
```

Only after checking who they are. Every login ends and the player sets a new password from the new address.

See also [Moderation](review-and-moderation.md) and [Running it on your PC](running-locally.md).
