Sub-commands
| Command | What it does |
|---|---|
socifyr media list | List items in the library |
socifyr media upload <file> | Upload a local file |
socifyr media get <id> | Get details on one item |
socifyr media delete <id...> | Delete one or more items |
media list
bash
socifyr media list [options]| Flag | Description |
|---|---|
--type <type> | Filter by image, video, or document |
--search <query> | Search by filename |
--limit <n> | Max results (default 20) |
--json | Output as JSON |
bash
socifyr media list --type image --search banner --limit 10Media library (2 total)
🖼 banner.png
ID: 6a04f715d3d7d93575e65d13 Size: 330.6KB image
🖼 Screenshot.png
ID: 6a04f715d3d7d93575e65d14 Size: 256.6KB imagemedia upload
bash
socifyr media upload <file> [--alt <text>] [--json]bash
socifyr media upload banner.png --alt "Product banner"
# ✓ Uploaded
# ID: 6a05031284584482ace13d3b
# File: banner.png
# Size: 330.6KB
# URL: https://rustfs.crumet.com/socifyr/media/...After upload, reuse the ID in any post with --media-id:
bash
socifyr post "Use the same asset" \
--media-id 6a05031284584482ace13d3b \
--to linkedin-myhandlemedia get
bash
socifyr media get <id> [--json]bash
socifyr media get 6a05031284584482ace13d3b
# 🖼 banner.png
# ID: 6a05031284584482ace13d3b
# Type: image
# Size: 330.6KB
# URL: https://...
# Alt: Product bannermedia delete
bash
socifyr media delete <id...> [--json]Pass one or more IDs:
bash
socifyr media delete 6a05031284584482ace13d3b
# Or in bulk
socifyr media delete \
6a05031284584482ace13d3b \
6a05031284584482ace13d3c \
6a05031284584482ace13d3d
# ✓ Deleted 3 items