SageMath version 9.2.beta4, Release Date: 2020-07-08

Running Sage:
  file.[sage|py|spyx] -- run given .sage, .py or .spyx file
  -advanced           -- print this advanced help message
  -c <cmd>            -- Evaluates cmd as sage code
  -h, -?              -- print short help message
  -min [...]          -- do not populate global namespace (must be first
                         option)
  -preparse <file.sage> -- preparse file.sage and produce corresponding file.sage.py
  -q                  -- quiet; start with no banner
  -root               -- print the Sage root directory
  -gthread, -qthread, -q4thread, -wthread, -pylab
                      -- pass the option through to ipython
  -v, -version        -- display Sage version information
  -dumpversion        -- print Sage version
  -git-branch         -- print the current git branch

Running the notebook:
  --notebook=[...]    -- start the Sage notebook (valid options are
                         'default', 'sagenb', 'jupyter' and 'export').
                         Current default is 'export' sagenb to jupyter.
                         See the output of sage --notebook --help
                         for more details and examples of how to pass
                         optional arguments
  -bn, -build-and-notebook [...] -- build the Sage library then start
                         the Sage notebook
  -inotebook [...]    -- start the *insecure* Sage notebook (deprecated)
  -n, -notebook [...] -- start the default Sage notebook (options are the
                         same as for the notebook command in Sage).  See the
                         output of sage -n -h for more details

Running external programs:
  -cleaner            -- run the Sage cleaner
  -cython [...]       -- run Cython with given arguments
  -ecl [...]          -- run Common Lisp
  -gap [...]          -- run Sage's Gap with given arguments
  -gap3 [...]         -- run Sage's Gap3 with given arguments
  -gdb                -- run Sage under the control of gdb
  -gp [...]           -- run Sage's PARI/GP calculator with given arguments
  -ipython [...]      -- run Sage's IPython using the default environment (not
                         Sage), passing additional options to IPython
  -ipython3 [...]     -- same as above, but using Python 3
  -jupyter [...]      -- run Sage's Jupyter with given arguments
  -kash [...]         -- run Sage's Kash with given arguments
                         (not installed currently, run sage -i kash)
  -lisp [...]         -- run Lisp interpreter included with Sage
  -M2 [...]           -- run Sage's Macaulay2 with given arguments
                         (not installed currently, run sage -i macaulay2)
  -maxima [...]       -- run Sage's Maxima with given arguments
  -mwrank [...]       -- run Sage's mwrank with given arguments
  -polymake [...]     -- run Sage's Polymake with given arguments
                         (not installed currently, run sage -i polymake)
  -python [...]       -- run the Python interpreter
  -python2 [...]      -- run the Python 2 interpreter
  -python3 [...]      -- run the Python 3 interpreter
  -R [...]            -- run Sage's R with given arguments
  -scons [...]        -- run Sage's scons
  -sh [...]           -- run $SHELL (/bin/bash) with Sage environment variables
                         as they are set in the runtime of Sage
  -buildsh [...]      -- run $SHELL (/bin/bash) with Sage environment variables
                         as they are set while building Sage and its packages
  -singular [...]     -- run Sage's singular with given arguments
  -sqlite3 [...]      -- run Sage's sqlite3 with given arguments

Installing packages and upgrading:
  -package [args]     -- call the new package manager with given arguments.
                         Run without arguments for package-specific help.
  -experimental       -- list all experimental packages that can be installed
  -f [opts] [packages]-- shortcut for -i -f: force build of the given Sage
                         packages
  -i [opts] [packages]-- install the given Sage packages.  Options:
                           -c -- run the packages' test suites
                           -d -- only download, do not install packages
                           -f -- force build: install the packages even
                                 if they are already installed
                           -s -- do not delete the temporary build directories
                                 after a successful build
                           -y -- reply yes to prompts about experimental
                                 and old-style packages; warning: there
                                 is no guarantee that these packages will
                                 build correctly; use at your own risk
                           -n -- reply no to prompts about experimental
                                 and old-style packages
  -p [opts] [packages]-- install the given Sage packages, without dependency
                         checking. Options are the same as for the -i command.
  -info [packages]    -- print the SPKG.txt or SPKG.rst of the given packages,
                         and some additional information.
  --location          -- if needed, fix paths to make Sage relocatable
  -optional           -- list all optional packages that can be installed
  -standard           -- list all standard packages that can be installed
  -installed          -- list all installed packages
  -upgrade [version]  -- download, build and install the given version. Here,
                         'version' is a git branch or tag name. Useful values
                         are 'master' (the current development version, this
                         is the default) or a version number like '5.13'.
  -pip [...]          -- invoke pip, the Python package manager

Building and testing the Sage library:
  -b                  -- build Sage library.
  -ba                 -- same as -b and rebuild all Cython code
  -ba-force           -- same as -ba, but don't query before rebuilding
  -br                 -- build and run Sage
  -bt [...]           -- build and test, options like -t below
  -btp <N> [...]      -- build and test parallel, options like -tp below
  -btnew [...]        -- build and test modified files, options like -tnew
  -fixdoctests <file.py> [output_file] [--long]
                      -- replace failing doctests with the actual output. With
                         optional output_file: redirect there. With the --long
                         option: include #long time tests.
  -startuptime [module] -- display how long each component of Sage takes to
                         start up; optionally specify a module to get more
                         details about that particular module
  -t [options] <--all|files|dir>
                      -- test examples in .py, .pyx, .sage, .tex or .rst files
                         selected options:
                           --long - include lines with the phrase 'long time'
                           --verbose - print debugging output during the test
                           --all - test all files
                           --sagenb - test all sagenb files
                           --optional - controls which optional tests are run
                           --new - only test files modified since last commit
                           --initial - only show the first failure per block
                           --debug - drop into PDB after an unexpected error
                           --failed - only test files that failed last test
                           --warn-long [timeout] - warning if doctest is slow
                           --only-errors - only output failures, not successes
                           --gc=GC - control garbarge collection (ALWAYS:
                                     collect garbage before every test; NEVER:
                                     disable gc; DEFAULT: Python default)
                           --help - show all testing options
  -tp <N> [...]       -- like -t above, but tests in parallel using N threads
                         with 0 interpreted as a sensible default
  -testall [options]  -- test all source files, docs, and examples.  options
                         like -t

Documentation:
  -coverage <files>   -- give info about doctest coverage of files
  -coverageall        -- give summary info about doctest coverage of all
                         files in the Sage library
  -docbuild [lang/]<document> <html|pdf|...> -- Build the Sage documentation
  -search_src <string> -- search through all the Sage library code for string
  -search_doc <string> -- search through the Sage documentation for string
  -grep <string>      -- same as -search_src
  -grepdoc <string>   -- same as -search_doc

File conversion:
  -rst2ipynb [...]    -- Generates Jupyter notebook (.ipynb) from standalone
                         reStructuredText source.
                         (not installed currently, run sage -i rst2ipynb)
  -ipynb2rst [...]    -- Generates a reStructuredText source file from
                         a Jupyter notebook (.ipynb).
  -rst2txt [...]      -- Generates Sage worksheet text file from standalone
                         reStructuredText source.
  -rst2sws [...]      -- Generates Sage worksheet (.sws) from standalone
                         reStructuredText source.
  -sws2rst <sws doc>  -- Generates a reStructuredText source file from
                         a Sage worksheet (.sws) document.

Making Sage packages or distributions:
  -sdist              -- build a source distribution of Sage
  -fix-pkg-checksums  -- fix the checksums from build/pkgs directories from 
                         the packages located in upstream/

Valgrind memory debugging:
  -cachegrind         -- run Sage using Valgrind's cachegrind tool.  The log
                         files are named sage-cachegrind.PID can be found in
                         /home/release/.sage/
  -callgrind          -- run Sage using Valgrind's callgrind tool.  The log
                         files are named sage-callgrind.PID can be found in
                         /home/release/.sage/
  -massif             -- run Sage using Valgrind's massif tool.  The log
                         files are named sage-massif.PID can be found in
                         /home/release/.sage/
  -memcheck           -- run Sage using Valgrind's memcheck tool.  The log
                         files are named sage-memcheck.PID can be found in
                         /home/release/.sage/
  -omega              -- run Sage using Valgrind's omega tool.  The log
                         files are named sage-omega.PID can be found in
                         /home/release/.sage/
  -valgrind           -- this is an alias for -memcheck

You can also use -- before a long option, e.g., 'sage --optional'.

