Skip to content

docs: correct nico-admin-cli API URL flag from -c to -a#3114

Open
dbl-nv wants to merge 2 commits into
NVIDIA:mainfrom
dbl-nv:fix/admin-cli-c-to-a-flag-docs
Open

docs: correct nico-admin-cli API URL flag from -c to -a#3114
dbl-nv wants to merge 2 commits into
NVIDIA:mainfrom
dbl-nv:fix/admin-cli-c-to-a-flag-docs

Conversation

@dbl-nv

@dbl-nv dbl-nv commented Jul 2, 2026

Copy link
Copy Markdown

Corrects nico-admin-cli documentation inconsistencies.

Primary fix — removed -c API-URL flag. In 2.0 the admin-cli field was renamed carbide_apiapi_url; with clap's derived short, the option changed from --carbide-api / -c to --api-url / -a (--carbide-url retained as a visible alias — see crates/admin-cli/src/cfg/cli_options.rs). Every documented -c example fails against a current build. Sweep replaces nico-admin-cli -cnico-admin-cli -a (79 occurrences across 12 files), including real-URL examples and parameter/option tables.

Related cleanups (from review):

  • Add bash language tag to two code fences in machine_reboot.md (MD040).
  • Fix stale cargo build -p carbide-admin-clinico-admin-cli (package renamed).
  • Rename stale carbide-admin-cli binary invocations to nico-admin-cli in dpu_extension_service.md (the intentional carbide-admin-cli/forge-admin-cli completion aliases in generate-shell-complete.md are left as-is).

Related issues

Related to #3112

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Breaking Changes

  • This PR contains breaking changes

Testing

  • No testing required (docs, internal refactor, etc.)

Additional Notes

Docs-only change; no code affected. Verified -a matches the current cli_options.rs flag definition, that nico-admin-cli is the actual crate/binary name, and that no stale nico-admin-cli -c or unintended carbide-admin-cli references remain in docs/.

🤖 Generated with Claude Code

The admin-cli field was renamed carbide_api -> api_url in 2.0. With clap's
derived short flag, the short option follows the long name's first letter,
so -c/--carbide-api became -a/--api-url (--carbide-url kept as a visible
alias). All docs still showed the stale -c flag, which no longer exists.

Sweep replaces `nico-admin-cli -c` -> `nico-admin-cli -a` across the docs
(79 occurrences, 12 files). No functional/code changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Daryl Blanc <dblanc@nvidia.com>
@dbl-nv dbl-nv requested a review from polarweasel as a code owner July 2, 2026 23:23
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

This PR updates nico-admin-cli command examples across documentation files, replacing the -c flag with -a for API URL arguments. It also adjusts a few surrounding snippets, including quoting, comments, and snippet splits.

Changes

CLI Flag Rename Documentation Updates

Layer / File(s) Summary
Tenant management docs
docs/configuration/tenant_management.md
Instance-type and machine emergency operation examples switch to -a; the emergency snippet also changes quoting and separates destructive actions.
DPU lifecycle management docs
docs/dpu-management/dpu-lifecycle-management.md
Installation monitoring, version checks, reprovisioning, and unhealthy-DPU commands switch from -c to -a.
Quick-start and host ingestion docs
docs/getting-started/quick-start.md, docs/provisioning/ingesting-hosts.md
Credential setup, manifest upload and approval, password updates, troubleshooting, and expected-machines management commands switch to -a, with one snippet split into separate steps.
Firmware update operations docs
docs/operations/firmware-updates.md
Firmware, host update, DPU inspection, component-manager, monitoring, and recovery examples switch from -c to -a.
Tenant lifecycle cleanup docs
docs/operations/tenant-lifecycle-cleanup.md
Instance release, progress tracking, verification, attestation, and troubleshooting commands switch to -a.
Playbooks and provisioning troubleshooting docs
docs/playbooks/debugging_machine/debug_bundle.md, docs/playbooks/force_delete.md, docs/playbooks/machine_reboot.md, docs/playbooks/stuck_objects/diagnostic_tools.md, docs/provisioning/attestation_and_security.md, docs/provisioning/boot-interfaces-and-dpu-modes.md
Debug-bundle, force-delete, machine reboot, diagnostic tools, attestation, and boot-interface/DPU-mode examples switch from -c to -a.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related issues

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main change: replacing the nico-admin-cli API URL flag from -c to -a in docs.
Description check ✅ Passed The description is directly related to the documented flag migration and accompanying doc cleanups.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

🔍 Container Scan Summary

No Grype artifacts were found to aggregate.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

@dbl-nv dbl-nv self-assigned this Jul 2, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/playbooks/debugging_machine/debug_bundle.md`:
- Line 76: The API URL option is inconsistent in the debug-bundle documentation:
the examples now use -a while the parameter table still shows -c <API_URL>.
Update the parameter table entry in the debug-bundle page to match the new -a
flag, and make sure every mention of the API URL option is consistent across the
page so the `nico-admin-cli mh debug-bundle` usage stays aligned.

In `@docs/playbooks/machine_reboot.md`:
- Around line 37-45: The fenced command examples in machine_reboot.md are
missing a language tag, which triggers MD040 and removes syntax highlighting.
Update both Markdown code fences in the reboot examples to use bash, keeping the
existing commands unchanged. Use the fenced blocks around the nico-admin-cli
examples as the reference points.

In `@docs/playbooks/stuck_objects/diagnostic_tools.md`:
- Line 44: The example command for nico-admin-cli now uses the API address flag,
but the connection-options table still documents the old flag, so update the
table to match the new usage. Keep the example and the documented options
consistent by changing the table entry for the CLI’s connection option in
diagnostic_tools.md to reference the same symbol/flag used by the machine show
example.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: f3ac08d5-8ef7-43a2-b34a-f2440fdcf200

📥 Commits

Reviewing files that changed from the base of the PR and between 12ef832 and 0bc2c09.

📒 Files selected for processing (12)
  • docs/configuration/tenant_management.md
  • docs/dpu-management/dpu-lifecycle-management.md
  • docs/getting-started/quick-start.md
  • docs/operations/firmware-updates.md
  • docs/operations/tenant-lifecycle-cleanup.md
  • docs/playbooks/debugging_machine/debug_bundle.md
  • docs/playbooks/force_delete.md
  • docs/playbooks/machine_reboot.md
  • docs/playbooks/stuck_objects/diagnostic_tools.md
  • docs/provisioning/attestation_and_security.md
  • docs/provisioning/boot-interfaces-and-dpu-modes.md
  • docs/provisioning/ingesting-hosts.md

Comment thread docs/playbooks/debugging_machine/debug_bundle.md
Comment thread docs/playbooks/machine_reboot.md Outdated
Comment thread docs/playbooks/stuck_objects/diagnostic_tools.md
Address CodeRabbit review on NVIDIA#3114 plus related stale references:
- debug_bundle.md / diagnostic_tools.md: parameter/connection-option
  tables still documented the removed `-c` flag while examples used `-a`.
- machine_reboot.md: add `bash` language tag to the two example fences
  (MD040).
- diagnostic_tools.md: correct stale `cargo build -p carbide-admin-cli`
  package name to `nico-admin-cli`.
- dpu_extension_service.md: rename `carbide-admin-cli` invocations to
  `nico-admin-cli` (the crate/binary was renamed; old name no longer exists).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Daryl Blanc <dblanc@nvidia.com>

@polarweasel polarweasel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks for the linter fixes, too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants