You use the command line option --load
which is documented in 2.3.2 Toplevel Options:
--load filename
This is equivalent to
--eval '(load "filename")'
. The special syntax is intended to reduce quoting headaches when invoking SBCL from shell scripts.
For instance:
$ cat hello.lisp
(print "Starting with a special startup script!")
$ sbcl --load hello.lisp
This is SBCL 1.0.49, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
"Starting with a special startup script!"
* (print 'at-the-repl)
AT-THE-REPL
AT-THE-REPL