@@ -102,6 +102,7 @@ Learn how to install, configure, update, and maintain your GitLab instance.
#### Updating GitLab
-[GitLab versions and maintenance policy](../policy/maintenance.md): Understand GitLab versions and releases (Major, Minor, Patch, Security), as well as update recommendations.
-[GitLab in maintenance mode](maintenance_mode/index.md): Put GitLab in maintenance mode.
-[Update GitLab](../update/README.md): Update guides to upgrade your installation to a new version.
-[Upgrading without downtime](../update/README.md#upgrading-without-downtime): Upgrade to a newer major, minor, or patch version of GitLab without taking your GitLab instance offline.
-[Migrate your GitLab CI/CD data to another version of GitLab](../migrate_ci_to_ce/README.md): If you have an old GitLab installation (older than 8.0), follow this guide to migrate your existing GitLab CI/CD data to another version of GitLab.
info:To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
---
# GitLab in maintenance mode **PREMIUM SELF**
> [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/2149) in GitLab Premium 13.9.
In maintenance mode, most write operations are disabled at the application level.
This means that GitLab is effectively in a read-only mode for all non-administrative
users (administrators are still able to edit application settings). Regular users
are able to log in to GitLab, view the interface and perform other read-only
operations, such as `git clone` or `git pull`.
## Enable maintenance mode
There are three ways to enable maintenance mode as an administrator:
-**Web UI**:
1. Navigate to the **Admin Area > Application settings > General** and toggle
the maintenance mode. You can optionally add a message for the banner as well.
1. Click **Save** for the changes to take effect.
-**API**:
```shell
curl --request PUT --header"PRIVATE-TOKEN:$ADMIN_TOKEN""<gitlab-url>/api/v4/application/settings?maintenance_mode=true"