---
schema_version: "1"
id: e0d41f11c86e822011140e1a74a87c001efb1c37a783a4966afb57df3c227e16
title: analytics enable
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi-dev-guide-cli-reference/guides/cli/sf/bi-cli-reference-analytics-enable-unified.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-cli-reference/guide/bi-cli-reference-analytics-enable-unified.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: bb3c4541e2fa3332809be9990755aba20557ae1c043b11086063318648424106
products:
  - Salesforce Analytics Plugin CLI Command Reference
  - analytics
---

# analytics enable

Enable Analytics in the target org.

## Examples for analytics enable

```nolang
sf analytics enable
```

```nolang
sf analytics enable -o "MyTargetOrg"
```

## Command Syntax

- `sf analytics enable`

    - : [`--json`]

      [`--api-version` APIVERSION]

      `-o` TARGETORG

      [`-a`]

      [`-w` WAIT]

      [`-p` POLLINTERVAL]

## Parameters

- `-o` TARGETORG

    - : Required

      Username or alias of the target org. Not required if the target-org configuration variable is set.

      Type: string

- `--json`

    - : Optional

      Format output as JSON.

      Type: boolean

- `--apiversion` APIVERSION

    - : Optional

      Override the API version used for API requests made by this command.

      Type: string

- `-a` | `--async`

    - : Optional

      Enable asynchronously.

      Type: boolean

- `-w` | `--wait` WAIT

    - : Optional

      Wait time in minutes for auto-install request to finish (default 10).

      Type: number

      Default value: 10

- `-p` | `--pollinterval` POLLINTERVAL

    - : Optional

      Polling interval in milliseconds for checking auto-install request status (default 5000).

      Type: number

      Default value: 5000

