Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

page view: include space key in output, not just space ID #102

@piekstra

Description

@piekstra

Problem

cfl page view <id> -o json returns spaceId (numeric) but not the space key. Other commands like cfl page create require the space key (--space), not the ID.

This makes it difficult to create sibling/child pages when you know the parent page ID but not the space key. You have to cross-reference with cfl space list or cfl search to find the key, but:

  • space list doesn't paginate (see related issue)
  • search results show the space name but not the key

Reproduction:

# Returns spaceId but not spaceKey
cfl page view 12345 -o json
# Output: { "id": "12345", "spaceId": "9999999", ... }

# Need the key to create a child page, but can't get it from the page view
cfl page create --space ??? --parent 12345 --title "Child Page"

Expected

Include spaceKey in the page view JSON output:

{
  "id": "12345",
  "spaceId": "9999999",
  "spaceKey": "DEV",
  ...
}

Also, cfl search results should include the space key alongside the space name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions