The site:maintenance command Switch site into maintenance mode
Usage:
$ drupal site:maintenance [arguments] $ sma