power add¶
Add a slide to an existing presentation.
Synopsis¶
Description¶
Appends a new content slide to an existing PowerPoint presentation. Useful for incrementally building presentations or adding slides to template-based decks.
Arguments¶
| Argument | Required | Description |
|---|---|---|
PPTX_FILE |
Yes | Input presentation file |
Options¶
| Option | Short | Required | Default | Description |
|---|---|---|---|---|
--output |
-o |
Yes | Output file path | |
--title |
Yes | Slide title | ||
--bullets |
No | Bullet points (can specify multiple times) | ||
--layout |
No | Auto-detect | Layout index to use | |
--help |
-h |
No | Show help and exit |
Examples¶
Add a slide with bullets¶
power add deck.pptx -o deck.pptx --title "New Slide" \
--bullets "First point" \
--bullets "Second point" \
--bullets "Third point"
Add a title-only slide¶
Specify layout¶
Chain multiple adds¶
power add deck.pptx -o deck.pptx --title "Slide 2" --bullets "Point A"
power add deck.pptx -o deck.pptx --title "Slide 3" --bullets "Point B"
power add deck.pptx -o deck.pptx --title "Slide 4" --bullets "Point C"
Output¶
On success:
On error:
Notes¶
- The
--bulletsoption can be specified multiple times for multiple bullet points - If
--layoutis not specified, Power CLI auto-detects an appropriate content layout - Use
power inspectto see available layout indices in your template - The input and output can be the same file to modify in place
Layout Detection¶
When --layout is not specified, Power CLI searches for layouts in this order:
- Layouts with "content" in the name
- Layouts with a body/object placeholder
- Falls back to layout index 1
See Also¶
power remove- Remove slidespower generate- Generate multiple slides from YAMLpower inspect- View available layouts