Electronic – how to Design Rule Check an Eagle file in a git hook

eagle

I can't find how to launch the ERC and DRC from the command line in Eagle. My hope is putting the command in a git pre-commit hook.

I'm perfectly ok with using a third party program or library if need be, but my google fu is not strong enough to find a useful tool.

Best Answer

I can execute commands from the cmd in windows when i browse to :[eagle-path]\bin. Tried with eagle 5 and 7.5. The command for ERC is eagle -C "erc;" [your schematic.sch]

When i remember correctly than -C is for command.

The help section found in the installation directory or in the gui is your friend here. You are searching for commando options.