sf_set_project_directory
Define a Salesforce project directory for command execution context by specifying the path to a directory containing an sfdx-project.json file. Optionally set a name, description, or mark it as the default directory for streamlined CLI operations.
Instructions
Set a Salesforce project directory for command execution context
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | No | Optional description for this project root | |
directory | Yes | The absolute path to a directory containing an sfdx-project.json file | |
isDefault | No | Set this root as the default for command execution | |
name | No | Optional 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"
}