Command line
About the command line
The meridian command does Meridian work without the program window. Use it in scripts and in automatic checks.
The installation gives these commands:
| Command | What it starts |
|---|---|
meridian |
The command-line tool. |
meridian-studio |
The Meridian program window. |
meridian-mapper |
The Property Mapper. |
meridian-mcp |
The MCP server for AI agents. Refer to MCP server for AI agents. |
The command line needs a valid license, as the program window does. The commands update and license work without a license. Refer to Account and license.
General form
meridian [--data <dir>] [--verbose] <command> [options]
meridian --version | --help | help [<command>]
| Option | What it does |
|---|---|
--data <dir> |
Uses this data folder. --data=<dir> is also accepted. |
--verbose |
Writes more detail. |
--version, -v |
Shows the version. |
--help, -h |
Shows the help. |
help <command> |
Shows the usage of one command. |
Numbers on the command line always use a decimal point, for example 1.5, in all languages.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | Failure. For simulate, also a study that fails, a nonlinear study that does not converge, or a factor of safety (static or fatigue) below --min-fos. |
| 2 | Usage error. The command line is not correct. |
| 3 | No valid license. The command writes "Meridian cannot start: ..." and the next step. |
| 10 | An update is available (update --check only). |
Commands
| Command | What it does |
|---|---|
info |
Shows the properties, parameters, features and geometry of a document. |
export |
Exports a document. |
import |
Imports an STL, OBJ or STEP file into a new part, into a part, or (a STEP assembly) into a new assembly. |
convert |
Writes a document of an earlier format version in the current format version. |
rule |
Runs a Meridian Rules script on a document. |
bolt |
Calculates a bolted joint. |
simulate |
Runs the simulation studies of a part or an assembly. |
check |
Runs the self-check of the installation. |
update |
Looks for a newer version of Meridian and installs it. |
setup |
Writes the user settings without the setup wizard. |
mcp |
Runs the MCP server, or adds it to an AI agent. |
license |
Shows the license of this device, signs in, renews the license or signs out. |
info
meridian info <file> [--json]
The command shows:
- The format version of the file.
- The properties.
- The parameters with their expressions and values.
- The health of each feature.
- The bodies with their volume and bounds.
- For an assembly, the components, the bill of materials, and a note for each component that did not load.
Add --json to get the output as JSON.
export
meridian export <file> --format <format> [--out <path>]
[--width <px>] [--height <px>]
[--view iso|front|back|left|right|top|bottom]
[--background white|dark|transparent]
| Format | Output |
|---|---|
stl |
STL mesh, ASCII |
stl-binary |
STL mesh, binary |
obj |
OBJ mesh, with a .mtl material file |
3mf |
3MF model with colors |
step |
STEP AP242 with exact solids (planes, cylinders, cones, spheres and tori) |
step-mesh |
STEP AP242 with triangles |
xml |
XML summary of the model |
png |
PNG image |
svg |
SVG image |
glb |
glTF binary: one node for each part instance, in meters, with Y up |
blend |
Blender scene. Blender 3.6 or later must be installed. |
Output and options:
--outcan be a file or a folder. Without--out, the file goes to the export folder of your settings, with a name that is free.- The command does not replace a file, unless
--outnames that file. --widthand--heightare 16 to 8192 pixels. The default size is 1200 x 900. The default view isisoand the default background iswhite.- The options
--width,--height,--viewand--backgroundare forpngandsvgonly. With other formats, they give a usage error. - For
blend, Meridian looks for Blender onPATHand in the usual install folder. To give a different Blender program, set the environment variableMERIDIAN_BLENDER.
Example:
meridian export bracket.mpart --format png --view iso --background transparent --out bracket.png
Refer to Import and export.
import
meridian import <file> [--into <part>] [--solid | --reference] [--flat] [--save | --out <file>]
The file must be .stl, .obj, .step or .stp.
- Without
--into, the command makes a new part. Without--out, it saves<name>.mpartnext to the source file and does not write over a file that exists. With--out, it saves at that path and replaces a file that exists. - With
--into <part>, the command adds the bodies to that part. Use--saveto save that part, or--outto write a new file.--saveworks only with--into. - An STL or OBJ mesh becomes a reference body. Add
--solidto make a closed mesh a solid body. - A closed STEP body becomes a solid body. Add
--referenceto make it a reference body. - A STEP file with a product structure becomes a new assembly (
.massy), with one part file for each product next to it. Add--flatto get one part. - The STEP import map (
data/ImportMaps) sets the document properties from the product data of the STEP file.
convert
meridian convert <file> [--out <file>] [--in-place]
The command writes the file in the current format version.
| File | What the command does |
|---|---|
| Version 1 part or assembly (XML) | Writes <name>.v2.<ext> next to the file. If that file exists, the command fails. Use --out for a different name, or --in-place to replace the file. |
| JSON file of an earlier version | Tells you that Meridian opens the file directly. It writes the file only with --out or --in-place. |
| File at the current version | Tells you that the file is already at the current version. |
| File from a newer version of Meridian | Refuses the file and writes nothing. |
| Version 1 drawing, presentation or feature library | Cannot convert it. Meridian opens these files read-only. |
Refer to File formats.
rule
meridian rule <file> (<rule-file> | -e <rule-source>) [--save] [--out <file>]
The command runs a rule on the document. Give the rule in a file, or as text after -e.
- Use
--saveto save the document, or--outto write a new file. - The command does not change a read-only document.
- If a feature does not regenerate after the rule, the command lists the features with errors, does not save, and stops with exit code 1.
Refer to Parameters and rules.
bolt
meridian bolt [--size <Mxx[xP]>] [--class 4.6|5.8|8.8|10.9|12.9]
[--clamp <N>] [--axial <N>] [--transverse <N>] [--count <n>]
[--length <mm>] [--friction <mu>] [--joint-friction <mu>]
[--tightening <alphaA>] [--json]
| Option | Value |
|---|---|
--size |
A metric thread, for example M10 or M10x1.25. |
--class |
The property class of the bolt. |
--clamp |
The minimum residual clamp force, in N. |
--axial |
The axial force, in N. |
--transverse |
The transverse force, in N. |
--count |
The number of bolts, 1 to 1000. |
--length |
The bolt length, in mm. |
--friction |
The friction coefficient of the thread and the head, 0.01 to 0.99. |
--joint-friction |
The friction coefficient of the joint faces, 0.01 to 0.99. |
--tightening |
The tightening factor, 1 to 10. |
--json |
Writes the result as JSON. |
The same calculation is in Tools > Bolt Calculator.
simulate
meridian simulate <file.mpart|file.massy> [options]
The command runs all of the studies in the file. To run one study, add --study <name>. The results are not saved in the file.
| Option | What it does |
|---|---|
--study <name> |
Runs only this study. |
--json |
Writes the results as JSON. |
--report <path> |
Writes a report. The extension sets the format: .md, .html or .json. |
--export-csv <path.csv> |
Writes the node results as CSV. |
--export-vtk <path.vtk> |
Writes the node results as VTK for ParaView. |
--curves-csv <path.csv> |
Writes the response curves of harmonic and transient studies, and the temperature curves of transient thermal studies. |
--at <Hz or s> |
Selects the frequency or the time of the result field of a harmonic, transient or transient thermal study. |
--mesh coarse\|medium\|fine |
Sets the mesh size. |
--element-size <mm> |
Sets the element size. |
--min-fos <n> |
Fails (exit code 1) if the factor of safety or the fatigue factor of safety of a static study is less than this value. |
--nonlinear |
Runs a nonlinear static study. Also: --load-steps <n>, --small-displacement, --no-plasticity, --tangent-modulus <MPa>. |
--wall-model none\|spalding |
External flow only. Sets the wall model. |
--angle-of-attack <deg>, --yaw <deg> |
External flow only. Sets the flow direction. |
--up +z\|+y\|+x\|-z\|-y\|-x |
External flow only. Sets the up axis. |
--reference-area <mm^2>, --reference-length <mm> |
External flow only. Sets the reference values for the coefficients. |
--sweep <start>:<stop>:<step> |
External flow only. Runs an angle-of-attack sweep. |
--refinement-to-walls |
External flow only. Extends the refinement to the box walls. |
The CSV and VTK exports are for structural and thermal studies of parts.
A quick static study without a saved study
meridian simulate <file> --static --fix-face <face> --force-face <face> <x,y,z N> [--material <name>]
You can give more than one --fix-face and more than one --force-face.
Use simulate in an automatic check
The command returns exit code 0 when all studies ran. With --min-fos, each factor of safety must also be at least the given value. Otherwise the command returns exit code 1.
meridian simulate bracket.mpart --mesh medium --min-fos 2 --report bracket-report.html
Refer to Structural simulation and Fluid simulation.
check
meridian check [--out <dir>]
The command runs the self-check of the installation. It does these steps: configuration, plugin policy, sample flange, sample rule, bolted joint, save and reopen, version 1 migration, XML export, export formats, and the bill of materials of the housing sample. The check writes its test files to an output folder and shows the folder. Use --out to set the folder.
update
meridian update --check
meridian update [--yes]
--checkonly looks for a newer version. It returns exit code 10 when an update is available.- Without
--check, the command shows the new version and asks "Install the update now? Type y to continue:".--yesskips the question. - The update installs after the command ends.
- For the Linux package (
.deb), the command downloads and checks the package. Then it shows thesudo apt installcommand to run. - If you are not signed in, the command tells you to run
meridian license sign-in --email <address>.
You cannot use --check and --yes together. Refer to Updates.
setup
meridian setup [--keymap <id>] [--units mm|in] [--projects <dir>] [--exports <dir>]
[--auto-update on|off] [--prereleases on|off]
[--desktop-integration] [--uninstall-integration] [--list-keymaps]
| Option | What it does |
|---|---|
--keymap <id> |
Sets the keymap. The IDs are meridian, inventor-style, solidworks-style, fusion-style, creo-style and onshape-style. |
--units mm\|in |
Sets the units and the default part template. |
--projects <dir> |
Sets the projects folder. |
--exports <dir> |
Sets the export folder. |
--auto-update on\|off |
Turns the automatic update check on or off. |
--prereleases on\|off |
Includes test versions (prereleases) in the update check. |
--desktop-integration |
Adds the menu entries and file types (copy from a .zip or .tar.gz file only). |
--uninstall-integration |
Removes the desktop integration. |
--list-keymaps |
Shows the keymap IDs and names. |
The command writes the settings and shows the result. For an installed copy, the installer manages the desktop integration.
mcp
meridian mcp serve [<server options>]
meridian mcp install (--hermes | --claude-desktop | --claude-code | --print)
[--name <name>] [--root <dir>]... [--read-only] [--no-studio]
[--hermes-home <dir>] [--profile <name>] [--config <file>]
[--scope project|user] [--project <dir>] [--skill | --no-skill] [--dry-run]
meridian mcp uninstall (--hermes | --claude-desktop | --claude-code)
[--name <name>] [--hermes-home <dir>] [--profile <name>] [--config <file>]
[--scope project|user] [--project <dir>] [--dry-run]
meridian mcp status [--name <name>] [--hermes-home <dir>] [--profile <name>]
| Subcommand | What it does |
|---|---|
serve |
Runs the MCP server on standard input and output. It is the same server as meridian-mcp and takes the same options. |
install |
Adds the server to an AI agent. --print shows the configuration and writes nothing. |
uninstall |
Removes the server entry that Meridian added. |
status |
Shows the server command, and the state of the entry in Hermes Agent (with the skill), Claude Desktop and Claude Code (this folder). It also shows if agent control of Meridian Studio is on. |
--skill and --no-skill are for --hermes only. Refer to MCP server for AI agents.
license
meridian license [status]
meridian license sign-in --email <address>
meridian license sign-in --token-stdin [--email <address>]
meridian license renew
meridian license sign-out
| Subcommand | What it does |
|---|---|
status |
Shows the mode, the state, the end of the lease, the account and the device. This is the default. |
sign-in --email <address> |
Signs in. The command asks for the password, or reads it from the environment variable MERIDIAN_PASSWORD. |
sign-in --token-stdin |
Signs in with an account token from standard input. |
renew |
Gets a new lease now. |
sign-out |
Removes the sign-in and the lease from this device. |
Refer to Account and license.