SolidWorks-CLI

Check SOLIDWORKS installations, ROT sessions, health, paths and batch runs

Ring-0 diagnostics that answer before SOLIDWORKS is even open, plus session health checks, model path lookup and single-attach multi-step batch execution for fast, repeatable workflows.

8 of the 92 verbs · Windows x64 · Late-bound SOLIDWORKS COM API

solid version
Version of this build and of the CLI contract
solid env
SOLIDWORKS installations, COM registration and interop on this machine
solid help [VERB] [--usage] [--option NAME] [--full] [--all]
Task index
solid sessions
Live SOLIDWORKS sessions in the Running Object Table: moniker and pid
solid doctor [--all] [--pid N]
Is the environment sane: sessions, revision vs the tested 34.x, active document, every open document, plus unsavedCount and an unsaved list of at most 10 documents with pending changes
solid where NAME | --name NAME
Ring 0: the full path and policy (readOnly, writable, other) of a model by file name or stem, case-insensitive: searches the open documents (ROT file monikers, no attach), the policy.json folders
solid kb FILE | --file FILE [--full]
Ring 0: reads a sealed knowledge-base file (solid-kb1) under a valid commercial license
solid batch --script FILE | --inline "verb args; verb args" [--check] [--fail-fast] [--digest] [--pid N]
Runs the verbs of a JSON file one after another (batch/ holds the shipped ones), one result per item

Common questions

Which commands work with SOLIDWORKS closed?

All Ring-0 verbs — including solid version, solid env, solid sessions, solid help, solid where, solid kb, solid spec-check, solid api-sig and solid api-enum — run without starting or attaching to SOLIDWORKS.

How do I chain multiple CAD steps in a single SOLIDWORKS attach?

solid batch executes a JSON script or --inline command sequence in one session attach, passing --apply and @sandbox context across steps with fail-fast and dependency skipping.

Run these verbs on your own SOLIDWORKS models

Every verb above returns structured JSON and takes plain command-line flags. SolidWorks-CLI is local and on-premise: zero UAC elevation, zero SOLIDWORKS interop DLLs redistributed, and every write is a dry run until you pass --apply. Fourteen-day free trial with corporate e-mail, no card.

Start a 14-day free trial

Other verb families