ctk attachments
Subcommands
Section titled “Subcommands”ctk attachments list [page-id]
Section titled “ctk attachments list [page-id]”List all attachments on a page.
ctk attachments list 12345678Output:
ID Title Media Type Size───────────────────────────────────────────────────────────────────────att98765401 diagram.png image/png 245 KBatt98765402 design-spec.pdf application/pdf 1.2 MBatt98765403 notes.txt text/plain 4 KB
Showing 3 attachmentsctk attachments download [attachment-id]
Section titled “ctk attachments download [attachment-id]”Download an attachment by its ID.
ctk attachments download att98765401ctk attachments download att98765401 --output ./downloads/diagram.pngOutput:
Downloaded diagram.png (245 KB) -> ./diagram.png| Flag | Short | Description |
|---|---|---|
--output | -o | File path to save the downloaded attachment |
--json | Output raw JSON response |
JSON Output
Section titled “JSON Output”All commands support --json:
ctk attachments list 12345678 --json