From 34d06f7bab93b506b3121232280c729d849dd502 Mon Sep 17 00:00:00 2001
From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
Date: Mon, 2 Dec 2024 23:31:27 +0100
Subject: [PATCH] DOCS-3151: Add env variable options for preinstall script
(#3715)
---
docs/how-tos/provision-setup.md | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/docs/how-tos/provision-setup.md b/docs/how-tos/provision-setup.md
index 40804c9731..f9cf525d27 100644
--- a/docs/how-tos/provision-setup.md
+++ b/docs/how-tos/provision-setup.md
@@ -205,7 +205,18 @@ sudo ./preinstall.sh
```
Follow the instructions.
-If you created a viam-provisioning.json, specify its location when prompted.
+If you created a viam-provisioning.json, specify its location as an environment variable or when prompted.
+
+You can set optional arguments by defining the following environment variables:
+
+
+| Argument | Description |
+| -------- | ----------- |
+| `VIAM_JSON_PATH` | The path to the machine credentials viam.json file to be copied to the machine. The script will also prompt you for this file if not provided. |
+| `PROVISIONING_PATH` | The path to the viam-provisioning.json file. The script will also prompt you for this file if not provided. |
+| `VIAM_AGENT_PATH` | The path to a beta or local build of `viam-agent`. Used for testing. |
+
+
{{% expand "Using a Raspberry Pi?" %}}