Creating sign.toml
Run cargo codesign init to generate a sign.toml with guided prompts:
cargo codesign init
The wizard asks:
- Which platforms? — macOS, Windows, Linux, Update signing
- Auth mode (macOS) —
apple-idfor local/indie,api-keyfor CI - Signing method (Linux) — cosign, minisign, or gpg
After generating the file, it checks which credentials are already set in your environment and shows how to obtain any that are missing — with links to the relevant guide.
Example output
✓ Created sign.toml
Credential status (2 missing):
✓ APPLE_ID set
✗ APPLE_TEAM_ID Team ID from App Store Connect > Membership
✗ APPLE_APP_PASSWORD app-specific password for notarization
How to obtain missing credentials:
→ https://sassman.github.io/cargo-codesign-rs/macos/auth-modes.html
→ https://sassman.github.io/cargo-codesign-rs/macos/credentials.html
Set missing credentials in .env or CI secrets, then run:
cargo codesign status
Manual creation
You can also create sign.toml by hand — see the sign.toml Reference for the full format.