Skip to content

try/part-1: rewrite UI steps as CLI commands (experiment)#5014

Closed
IanWhalen wants to merge 3 commits intomainfrom
claude/youthful-borg-6ed6e0
Closed

try/part-1: rewrite UI steps as CLI commands (experiment)#5014
IanWhalen wants to merge 3 commits intomainfrom
claude/youthful-borg-6ed6e0

Conversation

@IanWhalen
Copy link
Copy Markdown
Contributor

Summary

  • Replaces all Viam app UI interactions in the Part 1 tutorial with equivalent viam CLI commands
  • Covers machine status, part ID lookup, camera component add/configure, camera verification, fragment apply, and vision service streaming test
  • Notes the one gap: fragment variables have no CLI flag today, so that step falls back to JSON config or the app UI

What a reviewer should know

This is an exploratory PR to see what a CLI-only version of the tutorial looks like end-to-end. It's not necessarily intended to ship as-is — the main open question is how to handle fragment variable setting cleanly from the CLI (the fragment_mods JSON workaround in the current draft is a bit rough).

The live video feed from the camera test panel also has no CLI equivalent — the rewrite substitutes log inspection and a GetImage API call, which is functional but less immediate.

Changed files

  • docs/try/part-1.md — full rewrite of UI steps to CLI commands

Replaces all Viam app UI interactions with equivalent viam CLI commands:
- machine status check via `viam machines status`
- part ID lookup via `viam machines part list`
- camera component add/configure via `viam machines part add-resource` and `viam resource update`
- camera verification via `viam machines part logs` and `part run` (GetImage)
- fragment apply via `viam machines part fragments add`
- vision service test via `viam machines part run` with streaming GetDetectionsFromCamera

Notes fragment variable support gap (no CLI flag; requires JSON config or app UI).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 5bf1b78
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/69eb8e41eff5d60008dd7b16
😎 Deploy Preview https://deploy-preview-5014--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 38 (🟢 up 2 from production)
Accessibility: 99 (no change from production)
Best Practices: 83 (🔴 down 9 from production)
SEO: 89 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Apr 24, 2026
@IanWhalen IanWhalen marked this pull request as draft April 24, 2026 15:35
@IanWhalen
Copy link
Copy Markdown
Contributor Author

@shannonbradshaw this is very much a quick POC. I'm just kinda curious what you think about the approach.

IanWhalen and others added 2 commits April 24, 2026 11:37
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ound

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@IanWhalen IanWhalen closed this Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants