hardis:cache:clear
Description
Command Behavior
Clears the local cache generated by the sfdx-hardis plugin.
This command is designed to remove temporary files, stored configurations, and other cached data that sfdx-hardis uses to optimize its operations. Clearing the cache can be beneficial for:
- Troubleshooting: Resolving unexpected behavior or inconsistencies.
- Disk Space Management: Freeing up storage on your local machine.
- Ensuring Fresh Data: Guaranteeing that the plugin operates with the most current data and configurations.
Technical explanations
The command's technical implementation is straightforward:
- Direct Function Call: It directly invokes the
clearCache()
function, which is imported from uri../../../common/cache/index.jsuri. - Cache Management Logic: The uriclearCache()` function encapsulates the logic for identifying and removing the specific files and directories that constitute the sfdx-hardis cache.
Parameters
Name | Type | Description | Default | Required | Options |
---|---|---|---|---|---|
debug -d |
boolean | Activate debug mode (more logs) | |||
flags-dir | option | undefined | |||
json | boolean | Format output as json. | |||
skipauth | boolean | Skip authentication check when a default username is required | |||
websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration |
Examples
$ sf hardis:cache:clear