Skip to content
eliwarePublic

About

Git-versioned inventory for network infrastructure and systems, with YAML schemas, validation, and Snowflake ID generation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

eliware.org

@eliware/netdoc npm License CI

Git-versioned inventory for network infrastructure and systems, with YAML schemas, validation, and Snowflake ID generation.

Table of Contents

Features

NetDoc validates YAML, reports date freshness, and prints topology graphs and Snowflake IDs.

Requirements

  • Node.js 26 or later.
  • npm to install the package and run repository checks.

Setup

Install the public package:

npm install --global @eliware/netdoc

The package includes the netdoc command, source, schemas, and user guide. Only approved releases publish versions to npm.

Usage

Run netdoc --help to list commands. Read the CLI guide for command details and the release notes for version history.

Development

Read AGENTS.md, the documentation index, and the specification index before you change files.

Testing

Run npm ci to install locked dependencies. Run npm test for repository checks and test coverage.

Troubleshooting

If a command fails, read its error and correct the named path, option, or YAML value.

Security

Do not add credentials, keys, secrets, or private data to inventory files.

Configuration

NetDoc has no runtime settings or environment variables.

Operations

NetDoc reads inventory and prints results. It does not change files or connect to devices.

Commands

Command Result
netdoc --help List commands.
netdoc --version Print the package version.
netdoc validate <path> Check YAML files and print text results.
netdoc validate <path> --format text Print validation results as text.
netdoc validate <path> --format json Check YAML files and print JSON results.
netdoc report <path> --freshness --max-age-days DAYS Report object dates and age.
netdoc graph <path> --format mermaid Print inventory topology as Mermaid text.
netdoc --generate-id [-n COUNT] Print one or more Snowflake IDs.

Read the CLI guide for option defaults, errors, and command details.

Exit codes

Code Meaning
0 The command completed.
1 YAML data failed a check.
2 Invalid command or path, or NetDoc cannot load its schemas.

Support

For help, questions, or to chat with the author and community, visit:

Discordeliware.org

eliware.org on Discord

Links

License

MIT © Eliware

About

Git-versioned inventory for network infrastructure and systems, with YAML schemas, validation, and Snowflake ID generation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages