Skip to content

Nitro CLI documentation guide#3174

Open
anegg0 wants to merge 12 commits intomasterfrom
nitro-cli-guide
Open

Nitro CLI documentation guide#3174
anegg0 wants to merge 12 commits intomasterfrom
nitro-cli-guide

Conversation

@anegg0
Copy link
Copy Markdown
Contributor

@anegg0 anegg0 commented Mar 26, 2026

Summary

  • Add 5 new documentation pages under run-arbitrum-node/nitro/ covering the Nitro CLI configuration system, Docker images, DA tools, node tuning, and a complete flag reference
  • Add auto-generation script (scripts/generate-cli-reference.ts) that produces the exhaustive 634-flag reference from Helm chart data
  • Add sidebar entries for all new pages

New pages

Page Content type Lines
configuration-system.mdx how-to 240
docker-and-cli-binaries.mdx reference 271
da-tools-reference.mdx reference 344
node-tuning-and-monitoring.mdx how-to 356
cli-flags-reference.mdx reference (auto-generated) 948

Motivation

Addresses content gaps identified in the Inkeep analysis (450 undocumented questions). Primary Linear issue: TW-693 (Nitro CLI reference). Also partially addresses TW-692, TW-694, TW-695, TW-696, TW-697, TW-698.

Post-merge cleanup

After merging, docs/run-arbitrum-node/nitro/05-nitro-memory-management.mdx should be removed (its content is merged into node-tuning-and-monitoring.mdx). This requires updating internal links first.

Test plan

  • yarn build passes with all 5 new pages
  • yarn lint:markdown passes
  • yarn format passes
  • Each page renders correctly in local dev server
  • yarn generate-cli-reference --check passes (generated output matches committed file)
  • Sidebar shows all 5 new pages under Nitro section

anegg0 added 7 commits March 26, 2026 16:48
Covers config precedence, JSON file format, NITRO_ env var mapping,
Docker config mounting, conf.dump usage, hot reload, and S3 loading.

Addresses TW-693 (partial).
Create docs/run-arbitrum-node/nitro/docker-and-cli-binaries.mdx covering
Nitro Docker image variants, complete binary catalog extracted from the
Nitro source tree, entrypoint usage, Docker Compose example, and port
reference. Add sidebar entry under run-arbitrum-node/nitro section.
Document the three DA-related Nitro CLI binaries: anytrusttool
(keygen, dumpkeyset, client, generatehash), anytrustserver, and
daprovider. All flags, defaults, and output formats derived from
Nitro source code.
Merge all content from the existing memory management page
(allocators, cache config, GOMEMLIMIT calculation) and add new
sections: validator tuning, metrics/monitoring, health checks,
and sized example configurations (32 GB full, 128 GB archive,
16 GB validator).
Introduce scripts/generate-cli-reference.ts that reads structured flag data
from scripts/data/nitro-cli-flags.json (634 flags across 23 namespaces) and
generates docs/run-arbitrum-node/nitro/cli-flags-reference.mdx with collapsible
namespace sections, type/default columns, and cross-links to curated guides.

Add all 5 Nitro CLI guide pages to sidebars.js and the generate-cli-reference
script entry to package.json.
Run Prettier on generated output before comparing with the committed
file, since Prettier reformats table padding, asterisk escaping, and
column widths in markdown tables.
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
arbitrum-docs Ready Ready Preview Apr 1, 2026 9:26pm

Request Review

anegg0 added 2 commits March 26, 2026 17:01
Curly braces in flag descriptions and defaults were being parsed as
JSX expressions by MDX. Added escaping in the generation script and
regenerated the output.
@anegg0 anegg0 added the slop starter Generated draft to start from label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs SME review slop starter Generated draft to start from

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant