- Function Overview
- What's New
- Service Overview
- Getting Started
-
User Guide
- Configuration Management
- HTTP Proxy
- Commonly Used Commands
-
Options
- Option Overview
- Printing Help Information
- Printing Debugging Information
- Generating API Input Parameter Skeleton in JSON Format
- Checking Command
- Specifying Region
- Calling APIs with AK/SK in Non-configuration Mode
- Specifying Account ID
- Specifying Profile
- Specifying Authentication Mode
- Specifying Output Format
- Passing API Parameters with JSON File
- Specifying Request Timeouts
- Specifying Retry Count
- Skipping HTTPS Request Certificate Verification
- Specifying a Domain Name
- Polling Results
- Obtaining CLI Examples on API Explorer
- Using KooCLI in Non-configuration Mode
- Online Experience
- Obtaining Authentication Information
-
FAQs
- Overview
- Authentication
- Profiles
- Metadata Cache
- Logs
- Network Connections
- Cloud Services
- Cloud Service APIs
- Regions
-
Parameters
- What Are KooCLI System Parameters?
- Why Am I Seeing a Message Indicating an Invalid Parameter?
- Why Are Old and New KooCLI System Parameters (Such as region and cli-region) Available? Which Parameters Are Recommended?
- Why Am I Seeing a Message Indicating a Duplicate Parameter?
- How Do I Use cli-jsonInput?
- When Can I Use cli-jsonInput?
- Why Am I Seeing a Message Indicating an Unsupported Parameter Position or Type?
- How Do I Leave a Body Parameter Empty for Cloud Service APIs?
- Interactive Mode and Autocomplete
-
Output Formats
- What Output Formats Are Supported by KooCLI?
- How Do I Define a JMESPath Expression?
- Which KooCLI System Parameters Are Related to Data Output? Which Ones Are Recommended?
- How Do I Use cli-output, cli-query, and cli-output-num?
- How Do I Use cli-output-rows, cli-output-cols, and cli-output-num? What Are the Precautions?
- How Do I Use cli-json-filter? What Are the Precautions?
- Other
- Videos
- General Reference
Show all
Copied.
Where Are Metadata Cache Files Stored? How Do I Clear Them?
When you use KooCLI to manage and use your cloud service resources, it remotely obtains details about the target cloud services and APIs in the commands. To reduce the remote calling times and accelerate response, KooCLI introduces the cache mechanism to store the information about cloud services and their APIs in local cache files, known as metadata cache files. Before the files expire, the included information is used to verify and assemble parameters in commands.
- Storage directory of metadata cache files
- Online mode
- Windows: C:\Users\{Your Windows username}\.hcloud\metaRepo\
- Linux: /home/{Current username}/.hcloud/metaRepo/
- macOS: /Users/{Current username}/.hcloud/metaRepo/
- Offline mode
- Windows: C:\Users\{Your Windows username}\.hcloud\metaOrigin\
- Linux: /home/{Current username}/.hcloud/metaOrigin/
- macOS: /Users/{Current username}/.hcloud/metaOrigin/
- Online mode
- Procedure for clearing metadata cache files
- Online mode
To clear metadata cache files, run hcloud meta clear. After they are cleared, data is obtained and written to new cache files during API calling.
- Offline mode
Run the hcloud meta clear command to clear the metadata cache files parsed from the downloaded offline metadata package. The package will remain. During API calling, this package will be parsed again and new metadata cache files will be written into it.
- Online mode
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot