中文 | Overview
- Node.js >= 18
It is recommended to use pnpm for installation, but npm and yarn are also supported.
- Install Core Package
# pnpm
pnpm add @volcengine/sdk-core
# npm
npm install @volcengine/sdk-core
# yarn
yarn add @volcengine/sdk-core-
Install Service SDK Package
Take installing ECS service SDK package as an example:
# pnpm
pnpm add @volcengine/ecs
# npm
npm install @volcengine/ecs
# yarn
yarn add @volcengine/ecs- Credentials — AK/SK, STS, AssumeRole, OIDC, SAML, ECS role, default credential chain
- Endpoint Configuration — Custom endpoint, region ID, automatic resolution
- Transport — Protocol scheme, SSL verification, connection pool
- Proxy — HTTP(S) proxy configuration in code and environment variables
- Timeouts — Client timeout, per-request timeout, connect/read timeout split
- Retries — Retry conditions, backoff strategies, custom retry
- Error Handling — Exception types, error codes, resource cleanup
- Debugging — Debug options, log levels, custom middleware
- Environment Variables — All environment variables supported by the SDK
中文 | Overview