capabilities.work

Replace a site's .env file

One step with Laravel. We can help you get access.

Get something done

Replace a site's .env file

with Laravel

Use Laravel: its Forge Sites API lets you replace a site's .env file in a single step (PUT /orgs/{organization}/servers/{server}/sites/{site}/environment). capabilities.work can help you get signed up and connected.

  • How do I update the environment variables in a site's .env file?
  • Can I refresh the config cache or restart queues when saving a new .env?
Say it to your AI assistant
  • Replace the .env of site {site} on server {server} in {organization} with {environment}.
  • Save new .env {environment} for site {site} on {server} in {organization} and restart queues: {queues}.
For your developer

PUT /orgs/{organization}/servers/{server}/sites/{site}/environment in Forge Sites API. Full spec on APIs.io.