Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs(agent): edits made only to the service's config copy are lost on uninstall

Dimitris Staratzis2a3d7d981bf9
diff --git a/docs/cli/reference.mdx b/docs/cli/reference.mdx
index 9f3d1cc9ef..79e43febd1 100644
--- a/docs/cli/reference.mdx
+++ b/docs/cli/reference.mdx
@@ -92,7 +92,7 @@ The service runs as root on Linux and as LocalSystem on Windows, so it runs its
- `/etc/infisical/agents/<name>.service-config.yaml` on Linux
- `%ProgramFiles%\Infisical\Agent\<name>\service-config.yaml` on Windows, next to the service's own copy of `infisical.exe` (to upgrade the service, uninstall it and install it again)
-To change the config, edit the copy, then stop and start the service. You can also edit the original and install the service again.
+To change the config, edit the original, then uninstall and install the service again. If you edit the copy instead, stop and start the service to apply the change, and also make the change in the original, because `uninstall` deletes the copy.
`install` refuses a config that:
@@ -148,7 +148,7 @@ Stop an agent service and wait for the agent to exit. If the config sets `infisi
]}
>
-Stop an agent service and remove it, along with the service's copy of the config. The original config and the agent's logs stay where they are.
+Stop an agent service and remove it, along with the service's copy of the config, so changes made only to the copy are lost. The original config and the agent's logs stay where they are.
</CLICommand>
diff --git a/docs/integrations/platforms/infisical-agent.mdx b/docs/integrations/platforms/infisical-agent.mdx
index dc21aa29ee..18c3019fdd 100644
--- a/docs/integrations/platforms/infisical-agent.mdx
+++ b/docs/integrations/platforms/infisical-agent.mdx
@@ -556,6 +556,6 @@ To keep the agent running after you close the terminal, and start it again when
</Tab>
</Tabs>
-The service runs its own copy of your config that only administrators can change, and `install` prints where the copy is. Relative paths in the copy still resolve from the directory of the original config. To change the config, edit the copy, then stop and start the service, or edit the original and install the service again.
+The service runs its own copy of your config that only administrators can change, and `install` prints where the copy is. Relative paths in the copy still resolve from the directory of the original config. To change the config, edit the original, then uninstall and install the service again. If you edit the copy instead, stop and start the service to apply the change, and also make the change in the original, because uninstalling the service deletes the copy.
To stop the service or remove it, use [infisical agent service stop](/cli/reference#agent-service-stop) or [infisical agent service uninstall](/cli/reference#agent-service-uninstall).