Option 1: Wallet (local development)
Store the key in an encrypted local wallet so it is automatically used for every future build on your machine.<key> with your actual Retype key. Once added, you do not need to pass the key again — Retype reads it from the wallet automatically.
Additional wallet commands:
The wallet stores keys in an encrypted file called
license.dat on your local machine. Keys added to the wallet are not committed to your repository.Option 2: --key flag (per-build)
Pass the key directly as a CLI option. The key is not stored in the wallet and must be passed with every invocation.
Option 3: RETYPE_KEY environment variable (CI/hosting)
Set RETYPE_KEY as an environment variable. This is the recommended approach for hosted deployments and CI pipelines because the key never needs to be stored in your repository.
GitHub Actions
Add the secret to your repository
Navigate to your repository’s secret settings:Click New repository secret, set the name to
RETYPE_KEY, and paste your key as the value.Reference the secret in your workflow
Pass the secret to the Retype build action in your
.github/workflows/retype-action.yml:.github/workflows/retype-action.yml
Other platforms
For Netlify, Cloudflare Pages, or any other hosting service, addRETYPE_KEY as an environment variable in the platform’s build settings. Retype automatically reads the variable at build time.
Verify the key is active
Run a build with verbose output to confirm your key is recognized:Summary
| Method | Use case | Key persisted? |
|---|---|---|
retype wallet --add | Local development | Yes, in encrypted wallet |
--key flag | Per-build or scripted | No |
RETYPE_KEY env var | CI pipelines and hosting | No (managed externally) |
