version
Print NDCLI version and build information.
ndcli versionOutput
Section titled “Output”ndcli version v1.2.3Build time: 2024-01-15T10:30:00ZInformation Displayed
Section titled “Information Displayed”| Field | Description |
|---|---|
| Version | Semantic version number (e.g., v1.2.3) |
| Build time | When this binary was built |
Development Builds
Section titled “Development Builds”Development builds show:
ndcli version devBuild time: unknownUse Cases
Section titled “Use Cases”Check for Updates
Section titled “Check for Updates”Compare your version against the latest release:
ndcli versionBug Reports
Section titled “Bug Reports”Include version information when reporting issues:
ndcli versionScripting
Section titled “Scripting”Get version programmatically:
VERSION=$(ndcli version | head -1 | awk '{print $3}')echo "NDCLI version: $VERSION"