---
schema_version: "1"
id: 2d52fc26b2189330122d03f566dec70829fb793caf2674d0559e0f5a9e7b1c8c
title: analytics:enable (Deprecated)
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/bi-cli-reference-analytics-enable.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-cli-reference/guide/bi-cli-reference-analytics-enable.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3d9402895408caa08e9ab7aff4984acb92843179a90d2071cb233e179b7ceb27
products:
  - Salesforce Analytics Plugin CLI Command Reference
  - analytics
---



# analytics\:enable (Deprecated)

Enable Analytics.

**warning:** As of April 20, 2023, we no longer maintain this section of the command reference. Refer to the [reference information about the `sf`-style commands](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_cli_reference.meta/bi_dev_guide_cli_reference/bi_cli_reference_analytics_unified.htm) instead, which we update regularly. We keep this reference information about the `sfdx`-style commands as-is for historical reference only.

The `sfdx`-style commands continue to work the same as before, and any scripts that use the commands won’t break. However, we recommend that you start using the equivalent [`sf`-style commands](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_cli_reference.meta/bi_dev_guide_cli_reference/bi_cli_reference_analytics_unified.htm).

The reference page for each `sfdx` command has been updated with information about its equivalent `sf` command. The page also shows how the flag names have changed between the `sfdx` and `sf` commands. Use this information to migrate your scripts.

For background information about this change, read [this blog post](https://developer.salesforce.com/blogs/2022/12/big-improvements-coming-to-the-salesforce-cli), which describes how we've updated many of the existing `sfdx` commands to use the improvements we made in `sf` commands. To view all the changes, read the CLI release notes starting with version 7.183.1 on [January 12, 2023](https://github.com/forcedotcom/cli/blob/main/releasenotes/sfdx/README.md#71831-jan-12-2023).


## Examples for analytics\:enable

```nolang
sfdx analytics:enable
```

## Command Syntax

- `sfdx analytics:enable`

    - : [`--json`]

      [`--loglevel` LOGLEVEL]

      [`-u` TARGETUSERNAME]

      [`--apiversion` APIVERSION]

      [`-a`]

      [`-w` WAIT]

      [`-p` POLLINTERVAL]

## Parameters

- `--json`

    - : Optional

      Format output as JSON.

      Type: boolean

- `--loglevel` LOGLEVEL

    - : Optional

      The logging level for this command invocation. Logs are stored in $HOME/.sfdx/sfdx.log.

      Type: enum

      Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL

      Default value: warn

- `-u` | `--targetusername` TARGETUSERNAME

    - : Optional

      A username or alias for the target org. Overrides the default target org.

      Type: string

- `--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
