Salesforce CLI MCP Server

sf_set_project_directory

Set the project directory for Salesforce CLI commands by specifying the absolute path to a directory containing an sfdx-project.json file. Optionally name, describe, or set it as the default root for command execution.

Input Schema

NameRequiredDescriptionDefault
descriptionNoOptional description for this project root
directoryYesThe absolute path to a directory containing an sfdx-project.json file
isDefaultNoSet this root as the default for command execution
nameNoOptional name for this project root

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "description": { "description": "Optional description for this project root", "type": "string" }, "directory": { "description": "The absolute path to a directory containing an sfdx-project.json file", "type": "string" }, "isDefault": { "description": "Set this root as the default for command execution", "type": "boolean" }, "name": { "description": "Optional name for this project root", "type": "string" } }, "required": [ "directory" ], "type": "object" }

You must be authenticated.

Other Tools from Salesforce CLI MCP Server

Related Tools

ID: 1qi9nvwagh