This repo contains Composable Commerce SDKs and this is a guide on how to generate the Typescript SDK.
- Have java (
> 8) installed in your environment. - have
rm-codegencli installed.
yarn installyarn build
run yarn generate to generate the sdks. (make sure the environment variables are set first)
| Variable name | Description |
|---|---|
| API_RAML_FILE | The path to Composable Commerce HTTP API reference |
| Variable name | Description |
|---|---|
| CTP_PROJECT_KEY | Composable Commerce Project key |
| CTP_CLIENT_ID | the client id |
| CTP_CLIENT_SECRET | the client secret |
| CTP_API_URL | the API url (contains infos about the region) |
| CTP_AUTH_URL | the auth url (contains infos about the region) |