pages command lists all pages in a .fig file with node counts.
Usage
Arguments
Path to the
.fig fileOptions
Output as JSON
Examples
List pages
Get pages as JSON
Output format
For each page, the command displays:- Page type and name:
[PAGE] "Page Name" - Page ID:
(0:1) - Node count: Total number of nodes in the page (including nested children)
Node counting
The node count includes:- All direct children of the page
- All nested descendants (frames, groups, shapes, text, etc.)
- Does not include the page node itself
Use cases
- Project overview: Get a quick summary of page structure
- Size analysis: Identify pages with many nodes that might need optimization
- Navigation: Find page IDs for use with other commands
- Automation: Use
--jsonoutput in scripts to process pages programmatically
Combining with other commands
Use page IDs with thetree command to view a specific page: