Managing Metadata
- Clearing metadata caches
Cloud CLI caches local metadata files obtained during API calling and stores the files in the following directory:
- Online mode
- Windows: C:\Users\{Your Windows username}\.cloud\metaRepo\
- Linux: /home/{Current username}/.cloud/metaRepo/
- macOS: /Users/{Current username}/.cloud/metaRepo/
- Offline mode
- Windows: C:\Users\{Your Windows username}\.cloud\metaOrigin\
- Linux: /home/{Current username}/.cloud/metaOrigin/
- macOS: /Users/{Current username}/.cloud/metaOrigin/
Run the following commands to clear metadata cache files:
- Online mode
cloud meta clear
cloud meta clearCache cleared. - Offline mode
Run the cloud 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. To completely delete the offline metadata package and the contained metadata cache files, delete the directory where these files are located, according to the OS you use.
- Online mode
- Downloading metadata
A downloaded offline metadata package will be stored in the preceding directories for the offline mode. Run the following command to download the offline metadata package:
cloud meta download
cloud meta downloadDownload successful.