Feature Request
Summary
Add support for setting a page emoji (icon) when creating a page via the CLI.
Motivation
Notion pages support an emoji icon as the page header. Currently, there is no way to set this when creating a page through notion-cli. This makes it harder to script page creation that matches a team's visual conventions.
Proposed API
A flag like --emoji or --icon on the create page command:
notion-cli page create --title "Sprint 42" --emoji 🚀
The Notion API supports this via the icon field on the page object:
{
"icon": {
"type": "emoji",
"emoji": "🚀"
}
}
Expected Behavior
--emoji <emoji> sets the page icon to the given emoji character
- If omitted, no icon is set (current behavior, no regression)
Environment
- notion-cli version: latest
Feature Request
Summary
Add support for setting a page emoji (icon) when creating a page via the CLI.
Motivation
Notion pages support an emoji icon as the page header. Currently, there is no way to set this when creating a page through
notion-cli. This makes it harder to script page creation that matches a team's visual conventions.Proposed API
A flag like
--emojior--iconon thecreate pagecommand:notion-cli page create --title "Sprint 42" --emoji 🚀The Notion API supports this via the
iconfield on the page object:{ "icon": { "type": "emoji", "emoji": "🚀" } }Expected Behavior
--emoji <emoji>sets the page icon to the given emoji characterEnvironment