---
schema_version: "1"
id: dc8cd5f8fdd69ad0aaabbf442bcba0500ce33708a7738b60c14b2712c14e9624
title: Salesforce Analytics CLI Plugin Command Reference
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.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-cli-reference/guide/bi-cli-reference.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1d7b64bbd2f50cff055cfa77076846230afe3f02bbcc4d764ec6be0e4b913d33
products:
  - Salesforce Analytics Plugin CLI Command Reference
  - analytics
---

# Salesforce Analytics CLI Plugin Command Reference

The command reference contains information about the Salesforce CLI commands for the Analytics plugin and their flags.

The `sf` section contains information about the `sf`-style commands, which became generally available in July 2023. The `sfdx` section contains information about the `sfdx`-style commands, which are deprecated. We no longer maintain the `sfdx` information and keep it in this guide for historical reference only. See this [developer blog post](https://developer.salesforce.com/blogs/2023/07/salesforce-cli-sf-v2-is-here) for more information about Salesforce CLI `sf` (v2).

## Getting Started

The Analytics plug-in commands perform Analytics related actions, like creating apps and updating templates, in your target org. You must be authenticated into your scratch org from a generated project for the Analytics plug-in commands to work.

Create a project:

```nolang
sf project generate --name MyAnalyticsWork
```

Create a Developer edition scratch org using your default dev hub and give the scratch org an alias:

```nolang
sf org create scratch --edition developer --alias my-scratch-org
```

Set the target org default for all `sf` commands:

```nolang
sf config set target-org my-scratch-org
```

Open your scratch org:

```nolang
sf org open [-o my-scratch-org]
```

View the help for analytics commands:

```nolang
sf analytics --help
```

For information about installing the Salesforce CLI, see the [Salesforce DX Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm).

For information about installing the Analytics CLI plugin, see [Install the Analytics CLI Plugin](https://help.salesforce.com/articleView?id=bi_cli_analytics_plugin_install.htm).

For information about Salesforce CLI changes, see the [Salesforce CLI Release Notes](https://developer.salesforce.com/media/salesforce-cli/releasenotes.html).

-   **[sf](https://developer.salesforce.com/docs/analytics/bi-dev-guide-cli-reference/guide/sf/bi-cli-reference-analytics-unified.md)**  


    This section contains information about the `sf` commands for the `analytics` plug-in.

-   **[sfdx (Deprecated)](https://developer.salesforce.com/docs/analytics/bi-dev-guide-cli-reference/guide/bi-cli-reference-analytics.md)**  


    This section contains information about the deprecated `sfdx`-style commands for the `analytics` plug-in.

-   **[Help for Salesforce CLI Commands](https://developer.salesforce.com/docs/analytics/bi-dev-guide-cli-reference/guide/bi-cli-reference-help.md)**  


    The `-h` | `--help` parameter shows details about Salesforce CLI topics and their commands.

-   **[CLI Deprecation Policy](https://developer.salesforce.com/docs/guides/sfdx-dev/workspace-setup/sfdx-dev-cli-deprecation.md)**  


    Salesforce deprecates CLI commands and flags when, for example, the underlying API changes.

