Inbox Commands
Inbox commands let you create temporary email addresses, list existing inboxes, and manage their lifecycle.
Global Flags
Section titled “Global Flags”All inbox commands support these global flags:
| Flag | Description |
|---|---|
--config | Config file (default is $HOME/.config/vsb/config.yaml) |
-o, --output | Output format: pretty, json |
vsb inbox create
Section titled “vsb inbox create”Create a new temporary inbox with an auto-generated email address.
vsb inbox create [flags]| Flag | Description | Default |
|---|---|---|
--ttl | Time-to-live duration (e.g., 1h, 24h, 7d) | 24h |
Examples
Section titled “Examples”# Create inbox with default 24h TTLvsb inbox create
# Create inbox with custom TTLvsb inbox create --ttl 1hvsb inbox create --ttl 7d
# Create inbox and output JSON (useful for scripting)vsb inbox create -o jsonOutput
Section titled “Output”Inbox Ready!
Address: [email protected] Expires: 24h
Run 'vsb' to see emails arrive live.JSON output:
{ "expiresAt": "2024-01-16T14:30:00Z", "createdAt": "2024-01-15T14:30:00Z"}vsb inbox list
Section titled “vsb inbox list”List all stored inboxes.
vsb inbox list [flags]vsb inbox ls [flags]| Flag | Description |
|---|---|
-a, --all | Include expired inboxes |
Examples
Section titled “Examples”# List active inboxesvsb inbox listvsb inbox ls
# Include expired inboxesvsb inbox list -a
# Output as JSONvsb inbox list -o jsonOutput
Section titled “Output” EMAIL EXPIRES > [email protected] 14h [email protected] expiredThe > marker indicates the active inbox. Expired inboxes are shown with dimmed styling.
JSON output:
[ { "expiresAt": "2024-01-16T14:30:00Z", "isActive": true, "isExpired": false }]vsb inbox info
Section titled “vsb inbox info”Show detailed information about an inbox.
vsb inbox info [email]If no email is specified, shows info for the active inbox.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
email | Email address (optional, uses active inbox if omitted) |
Examples
Section titled “Examples”# Show info for active inboxvsb inbox info
# Show info for specific inbox
# Partial matching worksvsb inbox info abc123
# JSON outputvsb inbox info -o jsonOutput
Section titled “Output”[email protected] ACTIVE
ID: abc123Created: 2024-01-15 14:30Expires: 2024-01-16 14:30 (14h)Emails: 3JSON output:
{ "expiresAt": "2024-01-16T14:30:00Z", "isActive": true, "isExpired": false, "id": "abc123", "createdAt": "2024-01-15T14:30:00Z", "emailCount": 3, "syncError": "error message"}Note: syncError is only included when the server sync fails.
vsb inbox use
Section titled “vsb inbox use”Set the active inbox for subsequent commands.
vsb inbox use <email>Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
email | Email address or partial match |
Examples
Section titled “Examples”# Set active inbox by full address
# Partial matchingvsb inbox use abc123vsb inbox use abc
# Now commands use this inbox by defaultvsb email listvsb inbox delete
Section titled “vsb inbox delete”Delete an inbox and all its emails.
vsb inbox delete <email> [flags]vsb inbox rm <email> [flags]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
email | Email address or partial match |
| Flag | Description |
|---|---|
-l, --local | Only remove from local keystore (don’t delete on server) |
Examples
Section titled “Examples”# Delete inboxvsb inbox rm abc123
# Remove from local keystore onlyvsb inbox delete abc123 --localvsb inbox delete abc123 -lNext Steps
Section titled “Next Steps”- Email Commands - Work with emails in your inboxes
- Wait Command - Script email verification
- Export/Import - Back up and restore inboxes