Skip to content

command get ppt

zmworm edited this page Apr 29, 2026 · 51 revisions

get - PowerPoint (.pptx)

Available paths for getting PowerPoint document elements.

Paths

Path Description
/ Presentation root (metadata, slide list)
/slide[N] Nth slide
/slide[N]/shape[M] Shape M on slide N
/slide[N]/placeholder[X] Placeholder by index or type name
/slide[N]/picture[M] Picture M on slide N
/slide[N]/chart[M] Chart M on slide N
/slide[N]/table[M] Table M on slide N
/slide[N]/table[M]/tr[R]/tc[C] Table cell
/slide[N]/video[M] Video M on slide N
/slide[N]/audio[M] Audio M on slide N
/slide[N]/notes Speaker notes
/slide[N]/shape[M]/paragraph[P] Paragraph in shape
/slide[N]/shape[M]/paragraph[P]/run[K] Run in paragraph
/slide[N]/shape[M]/run[K] Run anywhere in shape
/slideMaster[N] Slide master
/slideLayout[N] Slide layout

Placeholder Type Names

title, body, subtitle, centertitle, date, footer, slidenum, picture, chart, table, object

Examples

# Get presentation overview
officecli get slides.pptx /

# Get slide with children
officecli get slides.pptx /slide[1]
officecli get slides.pptx /slide[1] --depth 2

# Get a shape
officecli get slides.pptx /slide[1]/shape[1]

# Get placeholder by type
officecli get slides.pptx "/slide[1]/placeholder[title]"

# Get slide notes
officecli get slides.pptx /slide[1]/notes

# Get table cell
officecli get slides.pptx /slide[1]/table[1]/tr[1]/tc[1]

# Get picture
officecli get slides.pptx /slide[1]/picture[1]

# Get as JSON
officecli get slides.pptx /slide[1]/shape[1] --json

See Also


Based on OfficeCLI v1.0.64

Clone this wiki locally