---
description: This example sets up the PingAuthorize Policy Editor in demo mode with self-governance enabled.
component: pingauthorize
version: 10.1
page_id: pingauthorize:installing_and_uninstalling_pingauthorize:paz_setup_pe_demo_self_gov
canonical_url: https://docs.pingidentity.com/pingauthorize/10.1/installing_and_uninstalling_pingauthorize/paz_setup_pe_demo_self_gov.html
section_ids:
  example-set-up-the-pingauthorize-policy-editor-in-demo-mode-self-governance: "Example: Set up the PingAuthorize Policy Editor in demo mode (self-governance)"
---

# Example: Set up the PingAuthorize Policy Editor in demo mode (self-governance)

This example sets up the PingAuthorize Policy Editor in demo mode with self-governance enabled.

For more information about setting up the Policy Editor in demo mode, click the **Demo mode** tab on this page.

To enable self-governance in demo mode, use the `--enableSelfGovernance` argument. The following values are set by default:

* The time-to-live value for the [HTTP cache](../pingauthorize_server_administration_guide/paz_http_caching.html) is set to 60 seconds, after which the cache is refreshed and a new self-governance check is performed.

* The self-governance administrator username is set to `selfgovernanceadmin`.

* The self-governance administrator password is set to `password123`.

The following example sets up the Policy Editor in demo mode with self-governance enabled:

```shell
$ bin/setup demo \
--adminUsername admin \
--enableSelfGovernance \
--generateSelfSignedCertificate \
--licenseKeyFile /opt/PingAuthorize/PingAuthorize.lic \
--decisionPointSharedSecret pingauthorize \
--hostname localhost \
--port 9443 \
--adminPort  <admin-port>
```
