Skip to main content
The CLI does every step for you:
It checks each file, uploads it (in parts when it’s large) and prints the media ID to pass to --media.

Attach it

Pass the media IDs as mediaIds when you create the post, or --media MEDIA_ID with the CLI.