Skip to content

ctk search

Terminal window
ctk search [query]
ctk search --quick [text]

By default, ctk search uses Confluence Query Language (CQL):

Terminal window
# Find pages in a specific space
ctk search "type=page AND space=DEV"
# Search by title pattern
ctk search "title~'architecture' AND type=page"
# Find pages with a label
ctk search "label='important' AND space=TEAM"
# Recent pages modified this week
ctk search "type=page AND lastModified >= startOfWeek()"

Output:

Type Space Title Excerpt
─────────────────────────────────────────────────────────────
page DEV Architecture Overview System architecture and design...
page DEV API Design REST API design principles...
Showing 2 of 2 results

Use --quick (or -q) for a simple text search:

Terminal window
ctk search --quick "migration guide"
ctk search -q "deployment process"

Quick search is simpler but less powerful than CQL. It searches across titles, content, and excerpts.

FlagShortDescription
--quick-qUse quick text search instead of CQL
--jsonOutput raw JSON response

Common CQL operators and fields:

FieldDescriptionExample
typeContent typetype=page, type=blogpost
spaceSpace keyspace=DEV
titleExact titletitle="My Page"
title~Title containstitle~'architecture'
labelPage labellabel='important'
creatorCreated bycreator=currentUser()
lastModifiedLast modified datelastModified >= "2025-01-01"
ancestorUnder a pageancestor=12345678

Operators: AND, OR, NOT, =, !=, ~ (contains), >=, <=