Use imsg for iMessage/SMS. Start with:
imsg
imsg --help
Confirm recipients and message text before sending.