ALIBABA CLOUD API METADATA ========================== INTRODUCTION ------------ This repository provides scripts that generate and maintain Alibaba Cloud API metadata from the OpenMeta service for API documentation and SDK generation. BUILD ----- Metadata is updated regularly to reflect the latest API changes. It is maintained in two formats: JSON and PHP arrays. JSON metadata: `scripts/update-metadata.sh` fetches the latest metadata from Alibaba Cloud. PHP metadata: `php-generator/generate.php` converts JSON metadata into PHP arrays. The Makefile automates the update and build process. Run: make The following artifacts will be generated in the `build/` directory: - release--json.tar.gz - release--php.tar.gz To build only one format, run one of the following commands: make build-json make build-php Because Alibaba Cloud provides many services, metadata updates can take time. Set `CONCURRENCY` to control how many HTTP requests run at the same time. Use `make -j2` to fetch English and Chinese metadata in parallel: CONCURRENCY=8 make -j2 RELEASE ------- After building the artifacts, you may want to share them with other projects so they can reference the latest API changes. This repository publishes artifacts to Cloudflare R2. Specify the bucket name with the `R2_BUCKET` environment variable. Tarballs and their associated signatures are then uploaded to that bucket. Make sure npm is available, because uploads are handled by the Wrangler CLI under the hood. For example: R2_BUCKET= make release AUTHOR ------ Zhineng Li