Is there a way to use ngspice command line without providing a circuit file? ex: passing the circuit as a string within the command line ?

**EDIT**

Currently the only way I could use ngspice in command line is by providing an input file.. I could not find an example of using pipe mode though to pass netlist directly via command line without have to use a file to read from.