# 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
