Skip to content

Feature request: support emoji when creating a page #55

@terrencestella

Description

@terrencestella

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions