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.

  • 1
    \$\begingroup\$ Is it even possible to invoke eagle commands from command line? \$\endgroup\$ – Eugene Sh. Jun 15 '16 at 17:50
  • 1
    \$\begingroup\$ The lack of information is hinting it is not possible (I might be wrong though). \$\endgroup\$ – Eugene Sh. Jun 15 '16 at 17:54
  • \$\begingroup\$ I'm pretty sure they answer is no. Eagle tools can't be run from the command line. \$\endgroup\$ – Tom Carpenter Jun 15 '16 at 18:07
  • \$\begingroup\$ Well, I came to ask here after my searches came empty, I'm looking for something a bit hard to find or inexistant. \$\endgroup\$ – nraynaud Jun 15 '16 at 18:17
  • 1
    \$\begingroup\$ There's an EAGLE Automation project on Github. Seems they don't support this (yet), but you could open an issue and suggest this feature. \$\endgroup\$ – hbaderts Jun 27 '16 at 8:34

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.

| improve this answer | |
  • \$\begingroup\$ Yes, but if I'm not wrong the command is eagle -C "drc". \$\endgroup\$ – Antonio Jul 28 '16 at 10:00
  • \$\begingroup\$ well, I had forgotten this question and found the answer a few weeks later. It must be noted that eagle is the shittiest command line program around, it will just open the GUI and show you the list, no way to export the list automatically. And the DRC only applies to the visible layers. \$\endgroup\$ – nraynaud Jul 28 '16 at 12:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.