Manage Remote Environment Variables

Download .env from production

gon env:pull

Saves to .env.production locally.

Change a single variable

gon env:set APP_DEBUG=false production

Updates the value on the server and restarts the app automatically.

Edit multiple variables

  1. Pull current config:

    gon env:pull
  2. Edit locally:

    $EDITOR .env.production
  3. Push back and restart:

    gon env:push --restart