Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

check-phone-countrycode

Find phone numbers missing a country code.

Usage

rscontacts check-phone-countrycode
rscontacts check-phone-countrycode --fix
rscontacts check-phone-countrycode --fix --country 1
rscontacts check-phone-countrycode --fix --dry-run

Flags

FlagDescription
--fixAdd country code to matching phone numbers
--dry-runShow changes without applying
--country <CODE>Country code to prepend (default: 972)

Fix Behavior

Automatically prepends +<country> to phone numbers that don’t start with + or 00. Leading zeros are stripped (e.g., 0505665636 becomes +972505665636).