Function Signature
Description
Retrieves the entire configuration object from the ScryxCLI configuration file located at~/.scrycli/config.json. This function reads the configuration file synchronously and returns the parsed JSON object.
Return Type
The complete configuration object containing all stored key-value pairs.
Usage
Examples
Get Entire Configuration
Access Specific Configuration Value
Check if Configuration Key Exists
Error Conditions
- If the configuration file cannot be read, a filesystem error will be thrown
- If the configuration file contains invalid JSON, a
SyntaxErrorwill be thrown
Notes
- The configuration file is automatically created at
~/.scrycli/config.jsonif it doesn’t exist - This function performs synchronous file I/O operations
- Returns an empty object
{}if the configuration file is empty or newly created