Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

    • Batch Changes
    • Code Monitoring
    • Code Ownership
    • Code Insights
    • Notebooks
  • Platform

    • Sourcegraph Admin
    • Sourcegraph Cloud
    • Integrations
  • CLI & API

    • Sourcegraph & Cody CLI
    • Sourcegraph GraphQL API
    • Sourcegraph Stream API
  • Help & Support

    • SLAs & Premium Support
    • How to videos
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
    • Technical changelog
    • Releases
  1. Docs
  2. admin
  3. how-to
  4. enable-experimental-feature

How to add, enable or disable an experimental feature

This document will take you through how to add, enable, or disable an experimental feature in Sourcegraph. Experimental features are not fully released, but we welcome your feedback at feedback@sourcegraph.com or on twitter @sourcegraph!

NOTE: Changing these settings will affect the entire instance. We advise testing settings in a development environment before changing them in production.

Prerequisites

  • This document assumes that Sourcegraph is installed
  • Assumes you have site-admin privileges on the instance

Steps to enable/disable

  1. Navigate to Site Admin > Global settings in the UI, or follow this link format for your externalUrl/site-admin/global-settings
  2. Scroll down to find where experimentalFeatures is located. Example:
JSON
"experimentalFeatures": { "searchStreaming": true, "showSearchContext": false, },
  1. Locate the feature you would like to disable or enable, setting true for enable or false for disable.
  2. If adding a feature, follow the format "featureName": true,
  3. After changing the values in Site admin > Global settings, the frontend will either restart automatically or you might be asked to restart the frontend for the changes to take effect.
  4. For more information, see Editing global settings for site-admins

Further resources

  • Sourcegraph - Configuration Settings
  • Sourcegraph - Site configuration
  • Learn more about new experimental features on our Blog or Twitter @sourcegraph

On this page

  1. How to add, enable or disable an experimental feature

    1. Prerequisites
    1. Steps to enable/disable
    1. Further resources

Edit this page on GitHub
Questions? Give us feedback