Skip to content

gen:key & rem:key ​

Manage the cryptographic APP_KEY in ./.env.

goforge gen:key ​

Generates 32 cryptographically random bytes (crypto/rand), encodes them as standard base64, and writes or updates APP_KEY=<encoded> in ./.env (creating .env if missing).

bash
goforge gen:key

goforge rem:key ​

Destructive Command

Prompts for confirmation and clears APP_KEY= in ./.env. Note that serve refuses to start while APP_KEY is empty (ValidateForServe()).

Released under the Apache-2.0 License.