Referenceoo CLI
oo files
Upload attachments for Chat or Code.
Upload a file to attach with oo chat send or oo code send --attachment ID. An upload expires a day after it was made.
oo files upload
Upload a file of up to 5 MB for Chat or Code and print its attachment ID. Send it with the same credential within a day.
oo files upload [options] file| Argument | Required | Default | Choices | Description |
|---|---|---|---|---|
file | yes | path of the file to upload | ||
--for SURFACE | yes | chat, code | ||
--content-type CONTENT_TYPE | no | attachment media type; inferred from filename by default |
It also takes the connection options.