# Salesforce API Version Mismatch for the CI Build and Custom Deployment

#### Salesforce API Version Mismatch for the CI Build and the Custom Deployment. <a href="#salesforce-api-version-mismatch-for-the-ci-build-and-for-the-custom-deployment" id="salesforce-api-version-mismatch-for-the-ci-build-and-for-the-custom-deployment"></a>

To troubleshoot, run the following command to see the **default** API version for the SFDX:

```
sfdx config:get apiVersion --json
```

Next, run the following command to **change** the SFDX API version. *For example*, changing the API Version to 51.0:

```
sfdx config:set apiVersion=51.0 --global
```

Finally, run the command to see the **configured** API version:

```
sfdx config:get apiVersion --json
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/arm/troubleshoot/best-practices/salesforce-api-version-mismatch-for-the-ci-build-and-custom-deployment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
