SMS CLI Commands
CLI commands for managing SMS infrastructure.
Deploy AWS End User Messaging SMS infrastructure for transactional and marketing messages.
Pricing: Free to use. You pay AWS directly for phone numbers ($1-2/mo) and per-message costs (~$0.0075/segment US). Registration fees apply for toll-free and 10DLC numbers.
Deploy SMS infrastructure to your AWS account. Sets up phone numbers, configuration sets, event tracking, and IAM roles.
npx @wraps.dev/cli sms init [options]-p, --provider <provider>Hosting provider: vercel, aws, railway, or other
-r, --region <region>AWS region to deploy infrastructure (default: us-east-1)
--preset <preset>Configuration preset: starter, production, or enterprise
-y, --yesSkip confirmation prompts
Display the current status of your SMS infrastructure, including phone number, configuration, and enabled features.
npx @wraps.dev/cli sms status [options]--jsonOutput status as JSON
Send a test SMS message to verify your setup is working. Supports AWS simulator numbers for sandbox testing.
npx @wraps.dev/cli sms test [options]--to <phone>Destination phone number in E.164 format (e.g., +14155551234)
--message <text>Message content to send
--jsonOutput result as JSON
Interactive mode (prompts for destination):
npx @wraps.dev/cli sms testSend to a specific number:
npx @wraps.dev/cli sms test --to +14155551234 --message "Hello from Wraps!"Verify a destination phone number for sandbox testing. In sandbox mode, numbers must be verified before they can receive test messages.
npx @wraps.dev/cli sms verify-number [options]--phone-number <phone>Phone number to verify in E.164 format
--code <code>Verification code received via SMS
--resendResend verification code to a pending number
--listList all verified destination numbers
--deleteRemove a number from the verified list
Start verification for a number:
npx @wraps.dev/cli sms verify-number --phone-number +14155551234Complete verification with code:
npx @wraps.dev/cli sms verify-number --phone-number +14155551234 --code 123456List verified numbers:
npx @wraps.dev/cli sms verify-number --listSubmit a toll-free verification request to AWS for production sending. Required before toll-free numbers can send messages at scale.
npx @wraps.dev/cli sms register [options]-r, --region <region>AWS region where SMS is deployed
Timeline: Registration typically takes 1-15 business days.
Enhance your SMS infrastructure with additional features or upgrade to a higher-tier phone number.
npx @wraps.dev/cli sms upgrade [options]--preset <name>Target preset: starter, production, or enterprise
-r, --region <region>AWS region where SMS is deployed
-y, --yesSkip confirmation prompts
Synchronize your local configuration with deployed infrastructure. Useful after CLI updates or when resources need to be recreated.
npx @wraps.dev/cli sms sync [options]-r, --region <region>AWS region where SMS is deployed
-y, --yesSkip confirmation prompts
Remove all SMS infrastructure from your AWS account. This is a destructive operation.
npx @wraps.dev/cli sms destroy [options]-f, --forceSkip confirmation prompt (use with caution)
--previewPreview what would be destroyed without making changes
After deploying infrastructure with the CLI, use the SDK to send SMS messages from your application.
import { Wraps } from '@wraps.dev/sms';const wraps = new Wraps();// Send a transactional SMSconst result = await wraps.sms.send({ to: '+14155551234', message: 'Your verification code is 123456',});if (result.success) { console.log('SMS sent:', result.data.messageId);}