As for Cadence Spectre Circuit Simulator, there are many ways to do the non-graphic model;
--> 1. Use the OCEAN; You can find the OCEAN manual just google it;
--> 2. Use the Spectre; Before that you need to set the ENV and the Lib files and the Cadence Licences.
--> 3. You can use SKILL script; Just google Candence SKILL User Guide;