Command-line Interface¶
The installed gmshparser command provides three read-only views of an ASCII
MSH file:
Use uv run gmshparser when running inside a uv-managed project.
Mesh summary¶
The info action prints the same summary as print(mesh) in the Python API.
Nodes¶
The first line is the total node count. Each following line contains:
Example:
Elements¶
The first line is the total element count. Each following line contains:
Example:
Help and version¶
Argument errors are reported by Python's argparse command-line parser. File
and parsing errors are currently propagated from the Python API.
Shell pipelines¶
Save the output:
Skip the count line and print only node coordinates:
Count element types:
Limitations¶
- the CLI reads but does not modify meshes
- output formats are fixed and line-oriented
- filtering is delegated to shell tools or the Python API
- only ASCII MSH files supported by the library can be read