Invoking Sage - The Sage Command Line

Skip to content
Back to top
View this page
Edit this page

# Invoking Sage

To run Sage, you basically just need to type `sage` from the command-line prompt to start the Sage interpreter. See the Sage Installation Guide for information about making sure your `$PATH` is set correctly, etc.

## Command-line options for Sage

    usage: sage [-h] [-v] [-q] [--simple-prompt] [-V] [-n [{jupyter,jupyterlab}]]
                [-c [COMMAND]]
                [file ...]

    If no command is given, starts the interactive interpreter where you can enter
    statements and expressions, immediately execute them and see their results.

    positional arguments:
      file                  execute the given file as sage code

    options:
      -h, --help            show this help message and exit
      -v, --verbose         print additional information
      -q, --quiet           do not display the banner
      --simple-prompt       use simple prompt IPython mode
      -V, --version         print the version number and exit
      -n, --notebook [{jupyter,jupyterlab}]
                            start the Jupyter notebook server (default: jupyter)
      -c, --command [COMMAND]
                            execute the given command as sage code