Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/build-modules/module-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,14 @@ are set to the target platform. See [Environment variables](#environment-variabl
| `viam module reload --part-id <id>` | Build in cloud; machine downloads the package directly. |
| `viam module restart --part-id <id>` | Restart a running module without rebuilding. |

`reload` flags: `--part-id` (target machine part), `--path` (root of git
repo to build), `--annotation` (text note describing the purpose of this
reload build), `--model-name` (add a resource to config with this model
triple), `--resource-name` (name the resource instance), `--id` (module ID),
`--cloud-config` (path to `viam.json`, alternative to `--part-id`),
`--workdir` (subdirectory containing `meta.json`), `--local` (run entrypoint
directly on localhost).
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new reload flags summary omits --module, which is documented in the CLI reference as applicable to reload/reload-local for specifying a non-current-directory meta.json path. Add --module to this reload flags list (and consider adding it to the adjacent reload-local flags list for consistency/completeness).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 07a366b. Added --module to both the reload and reload-local flags paragraphs.


Generated by Claude Code


`reload-local` flags: `--part-id` (target machine part), `--no-build` (skip
build), `--local` (run entrypoint directly on localhost instead of bundling),
`--model-name` (add a resource to config with this model triple),
Expand Down
1 change: 1 addition & 0 deletions docs/cli/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ viam module local-app-testing --app-url http://localhost:3000
<!-- prettier-ignore -->
| Argument | Description | Applicable commands | Required? |
| -------- | ----------- | ------------------- | --------- |
| `--annotation` | A text note describing the purpose of this reload build. Stored alongside the reload metadata in the machine config. | `reload` | Optional |
| `--binary` | The module executable to run (binary or script). Must work on the OS or processor of the device. If omitted, the CLI uses the entrypoint defined in <file>meta.json</file>. | `update-models` | Optional |
| `--count` | Number of cloud builds to list, defaults to displaying all builds | `build list` | Optional |
| `--cloud-config` | The location of the <FILE>viam.json</FILE> file which contains the machine ID to lookup the part-id. Alternative to `--part-id`. Default: `/etc/viam.json` | `reload`, `reload-local`, `restart` | Optional |
Expand Down
Loading