@catafal/notion-cli 5.9.0 → 5.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/notion.js +10 -0
- package/dist/utils/shell-config.d.ts +19 -10
- package/dist/utils/shell-config.js +65 -24
- package/oclif.manifest.json +757 -757
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -3002,99 +3002,6 @@
|
|
|
3002
3002
|
"info.js"
|
|
3003
3003
|
]
|
|
3004
3004
|
},
|
|
3005
|
-
"config:set-token": {
|
|
3006
|
-
"aliases": [
|
|
3007
|
-
"config:token"
|
|
3008
|
-
],
|
|
3009
|
-
"args": {
|
|
3010
|
-
"token": {
|
|
3011
|
-
"description": "Notion integration token (starts with secret_ or ntn_)",
|
|
3012
|
-
"name": "token",
|
|
3013
|
-
"required": false
|
|
3014
|
-
}
|
|
3015
|
-
},
|
|
3016
|
-
"description": "Set NOTION_TOKEN in your shell configuration file",
|
|
3017
|
-
"examples": [
|
|
3018
|
-
{
|
|
3019
|
-
"description": "Set Notion token interactively",
|
|
3020
|
-
"command": "notion-cli config set-token"
|
|
3021
|
-
},
|
|
3022
|
-
{
|
|
3023
|
-
"description": "Set Notion token directly",
|
|
3024
|
-
"command": "notion-cli config set-token ntn_abc123..."
|
|
3025
|
-
},
|
|
3026
|
-
{
|
|
3027
|
-
"description": "Set token with JSON output",
|
|
3028
|
-
"command": "notion-cli config set-token ntn_abc123... --json"
|
|
3029
|
-
}
|
|
3030
|
-
],
|
|
3031
|
-
"flags": {
|
|
3032
|
-
"json": {
|
|
3033
|
-
"char": "j",
|
|
3034
|
-
"description": "Output as JSON (recommended for automation)",
|
|
3035
|
-
"name": "json",
|
|
3036
|
-
"allowNo": false,
|
|
3037
|
-
"type": "boolean"
|
|
3038
|
-
},
|
|
3039
|
-
"page-size": {
|
|
3040
|
-
"description": "Items per page (1-100, default: 100 for automation)",
|
|
3041
|
-
"name": "page-size",
|
|
3042
|
-
"default": 100,
|
|
3043
|
-
"hasDynamicHelp": false,
|
|
3044
|
-
"multiple": false,
|
|
3045
|
-
"type": "option"
|
|
3046
|
-
},
|
|
3047
|
-
"retry": {
|
|
3048
|
-
"description": "Auto-retry on rate limit (respects Retry-After header)",
|
|
3049
|
-
"name": "retry",
|
|
3050
|
-
"allowNo": false,
|
|
3051
|
-
"type": "boolean"
|
|
3052
|
-
},
|
|
3053
|
-
"timeout": {
|
|
3054
|
-
"description": "Request timeout in milliseconds",
|
|
3055
|
-
"name": "timeout",
|
|
3056
|
-
"default": 30000,
|
|
3057
|
-
"hasDynamicHelp": false,
|
|
3058
|
-
"multiple": false,
|
|
3059
|
-
"type": "option"
|
|
3060
|
-
},
|
|
3061
|
-
"no-cache": {
|
|
3062
|
-
"description": "Bypass cache and force fresh API calls",
|
|
3063
|
-
"name": "no-cache",
|
|
3064
|
-
"allowNo": false,
|
|
3065
|
-
"type": "boolean"
|
|
3066
|
-
},
|
|
3067
|
-
"verbose": {
|
|
3068
|
-
"char": "v",
|
|
3069
|
-
"description": "Enable verbose logging to stderr (retry events, cache stats) - never pollutes stdout",
|
|
3070
|
-
"env": "NOTION_CLI_VERBOSE",
|
|
3071
|
-
"name": "verbose",
|
|
3072
|
-
"allowNo": false,
|
|
3073
|
-
"type": "boolean"
|
|
3074
|
-
},
|
|
3075
|
-
"minimal": {
|
|
3076
|
-
"description": "Strip unnecessary metadata (created_by, last_edited_by, object fields, request_id, etc.) - reduces response size by ~40%",
|
|
3077
|
-
"name": "minimal",
|
|
3078
|
-
"allowNo": false,
|
|
3079
|
-
"type": "boolean"
|
|
3080
|
-
}
|
|
3081
|
-
},
|
|
3082
|
-
"hasDynamicHelp": false,
|
|
3083
|
-
"hiddenAliases": [],
|
|
3084
|
-
"id": "config:set-token",
|
|
3085
|
-
"pluginAlias": "@catafal/notion-cli",
|
|
3086
|
-
"pluginName": "@catafal/notion-cli",
|
|
3087
|
-
"pluginType": "core",
|
|
3088
|
-
"strict": true,
|
|
3089
|
-
"enableJsonFlag": false,
|
|
3090
|
-
"isESM": false,
|
|
3091
|
-
"relativePath": [
|
|
3092
|
-
"dist",
|
|
3093
|
-
"commands",
|
|
3094
|
-
"config",
|
|
3095
|
-
"set-token.js"
|
|
3096
|
-
]
|
|
3097
|
-
},
|
|
3098
3005
|
"daily": {
|
|
3099
3006
|
"aliases": [
|
|
3100
3007
|
"d"
|
|
@@ -4260,27 +4167,105 @@
|
|
|
4260
4167
|
"update.js"
|
|
4261
4168
|
]
|
|
4262
4169
|
},
|
|
4263
|
-
"
|
|
4170
|
+
"page:create": {
|
|
4264
4171
|
"aliases": [
|
|
4265
|
-
"
|
|
4172
|
+
"page:c"
|
|
4266
4173
|
],
|
|
4267
4174
|
"args": {},
|
|
4268
|
-
"description": "
|
|
4175
|
+
"description": "Create a page",
|
|
4269
4176
|
"examples": [
|
|
4270
4177
|
{
|
|
4271
|
-
"description": "
|
|
4272
|
-
"command": "$ notion-cli
|
|
4178
|
+
"description": "Create a page via interactive mode",
|
|
4179
|
+
"command": "$ notion-cli page create"
|
|
4273
4180
|
},
|
|
4274
4181
|
{
|
|
4275
|
-
"description": "
|
|
4276
|
-
"command": "$ notion-cli
|
|
4182
|
+
"description": "Create a page with a specific parent_page_id",
|
|
4183
|
+
"command": "$ notion-cli page create -p PARENT_PAGE_ID"
|
|
4277
4184
|
},
|
|
4278
4185
|
{
|
|
4279
|
-
"description": "
|
|
4280
|
-
"command": "$ notion-cli
|
|
4186
|
+
"description": "Create a page with a parent page URL",
|
|
4187
|
+
"command": "$ notion-cli page create -p https://notion.so/PARENT_PAGE_ID"
|
|
4188
|
+
},
|
|
4189
|
+
{
|
|
4190
|
+
"description": "Create a page with a specific parent_db_id",
|
|
4191
|
+
"command": "$ notion-cli page create -d PARENT_DB_ID"
|
|
4192
|
+
},
|
|
4193
|
+
{
|
|
4194
|
+
"description": "Create a page with simple properties (recommended for AI agents)",
|
|
4195
|
+
"command": "$ notion-cli page create -d DATA_SOURCE_ID -S --properties '{\"Name\": \"My Task\", \"Status\": \"In Progress\", \"Due Date\": \"2025-12-31\"}'"
|
|
4196
|
+
},
|
|
4197
|
+
{
|
|
4198
|
+
"description": "Create a page with simple properties using relative dates",
|
|
4199
|
+
"command": "$ notion-cli page create -d DATA_SOURCE_ID -S --properties '{\"Name\": \"Review\", \"Due Date\": \"tomorrow\", \"Priority\": \"High\"}'"
|
|
4200
|
+
},
|
|
4201
|
+
{
|
|
4202
|
+
"description": "Create a page with simple properties and multi-select",
|
|
4203
|
+
"command": "$ notion-cli page create -d DATA_SOURCE_ID -S --properties '{\"Name\": \"Bug Fix\", \"Tags\": [\"urgent\", \"bug\"], \"Status\": \"Done\"}'"
|
|
4204
|
+
},
|
|
4205
|
+
{
|
|
4206
|
+
"description": "Create a page with a specific source markdown file and parent_page_id",
|
|
4207
|
+
"command": "$ notion-cli page create -f ./path/to/source.md -p PARENT_PAGE_ID"
|
|
4208
|
+
},
|
|
4209
|
+
{
|
|
4210
|
+
"description": "Create a page with a specific source markdown file and parent_db_id",
|
|
4211
|
+
"command": "$ notion-cli page create -f ./path/to/source.md -d PARENT_DB_ID"
|
|
4212
|
+
},
|
|
4213
|
+
{
|
|
4214
|
+
"description": "Create a page with a specific source markdown file and output raw json with parent_page_id",
|
|
4215
|
+
"command": "$ notion-cli page create -f ./path/to/source.md -p PARENT_PAGE_ID -r"
|
|
4216
|
+
},
|
|
4217
|
+
{
|
|
4218
|
+
"description": "Create a page and output JSON for automation",
|
|
4219
|
+
"command": "$ notion-cli page create -p PARENT_PAGE_ID --json"
|
|
4281
4220
|
}
|
|
4282
4221
|
],
|
|
4283
4222
|
"flags": {
|
|
4223
|
+
"parent_page_id": {
|
|
4224
|
+
"char": "p",
|
|
4225
|
+
"description": "Parent page ID or URL (to create a sub-page)",
|
|
4226
|
+
"name": "parent_page_id",
|
|
4227
|
+
"hasDynamicHelp": false,
|
|
4228
|
+
"multiple": false,
|
|
4229
|
+
"type": "option"
|
|
4230
|
+
},
|
|
4231
|
+
"parent_data_source_id": {
|
|
4232
|
+
"char": "d",
|
|
4233
|
+
"description": "Parent data source ID or URL (to create a page in a table)",
|
|
4234
|
+
"name": "parent_data_source_id",
|
|
4235
|
+
"hasDynamicHelp": false,
|
|
4236
|
+
"multiple": false,
|
|
4237
|
+
"type": "option"
|
|
4238
|
+
},
|
|
4239
|
+
"file_path": {
|
|
4240
|
+
"char": "f",
|
|
4241
|
+
"description": "Path to a source markdown file",
|
|
4242
|
+
"name": "file_path",
|
|
4243
|
+
"hasDynamicHelp": false,
|
|
4244
|
+
"multiple": false,
|
|
4245
|
+
"type": "option"
|
|
4246
|
+
},
|
|
4247
|
+
"title_property": {
|
|
4248
|
+
"char": "t",
|
|
4249
|
+
"description": "Title property name (auto-detected: \"title\" for sub-pages, \"Name\" for databases)",
|
|
4250
|
+
"name": "title_property",
|
|
4251
|
+
"hasDynamicHelp": false,
|
|
4252
|
+
"multiple": false,
|
|
4253
|
+
"type": "option"
|
|
4254
|
+
},
|
|
4255
|
+
"properties": {
|
|
4256
|
+
"description": "Page properties as JSON string",
|
|
4257
|
+
"name": "properties",
|
|
4258
|
+
"hasDynamicHelp": false,
|
|
4259
|
+
"multiple": false,
|
|
4260
|
+
"type": "option"
|
|
4261
|
+
},
|
|
4262
|
+
"simple-properties": {
|
|
4263
|
+
"char": "S",
|
|
4264
|
+
"description": "Use simplified property format (flat key-value pairs, recommended for AI agents)",
|
|
4265
|
+
"name": "simple-properties",
|
|
4266
|
+
"allowNo": false,
|
|
4267
|
+
"type": "boolean"
|
|
4268
|
+
},
|
|
4284
4269
|
"raw": {
|
|
4285
4270
|
"char": "r",
|
|
4286
4271
|
"description": "output raw json",
|
|
@@ -4395,7 +4380,7 @@
|
|
|
4395
4380
|
},
|
|
4396
4381
|
"hasDynamicHelp": false,
|
|
4397
4382
|
"hiddenAliases": [],
|
|
4398
|
-
"id": "
|
|
4383
|
+
"id": "page:create",
|
|
4399
4384
|
"pluginAlias": "@catafal/notion-cli",
|
|
4400
4385
|
"pluginName": "@catafal/notion-cli",
|
|
4401
4386
|
"pluginType": "core",
|
|
@@ -4405,38 +4390,40 @@
|
|
|
4405
4390
|
"relativePath": [
|
|
4406
4391
|
"dist",
|
|
4407
4392
|
"commands",
|
|
4408
|
-
"
|
|
4409
|
-
"
|
|
4393
|
+
"page",
|
|
4394
|
+
"create.js"
|
|
4410
4395
|
]
|
|
4411
4396
|
},
|
|
4412
|
-
"
|
|
4397
|
+
"page:delete": {
|
|
4413
4398
|
"aliases": [
|
|
4414
|
-
"
|
|
4399
|
+
"page:d"
|
|
4415
4400
|
],
|
|
4416
4401
|
"args": {
|
|
4417
|
-
"
|
|
4418
|
-
"
|
|
4402
|
+
"page_id": {
|
|
4403
|
+
"description": "Page ID or full Notion URL",
|
|
4404
|
+
"name": "page_id",
|
|
4405
|
+
"required": true
|
|
4419
4406
|
}
|
|
4420
4407
|
},
|
|
4421
|
-
"description": "
|
|
4408
|
+
"description": "Archive (soft-delete) a Notion page",
|
|
4422
4409
|
"examples": [
|
|
4423
4410
|
{
|
|
4424
|
-
"description": "
|
|
4425
|
-
"command": "$ notion-cli
|
|
4411
|
+
"description": "Delete (archive) a page by ID",
|
|
4412
|
+
"command": "$ notion-cli page delete PAGE_ID"
|
|
4426
4413
|
},
|
|
4427
4414
|
{
|
|
4428
|
-
"description": "
|
|
4429
|
-
"command": "$ notion-cli
|
|
4415
|
+
"description": "Delete (archive) a page by URL",
|
|
4416
|
+
"command": "$ notion-cli page delete https://notion.so/PAGE_ID"
|
|
4430
4417
|
},
|
|
4431
4418
|
{
|
|
4432
|
-
"description": "
|
|
4433
|
-
"command": "$ notion-cli
|
|
4419
|
+
"description": "Delete and output JSON for automation",
|
|
4420
|
+
"command": "$ notion-cli page delete PAGE_ID --json"
|
|
4434
4421
|
}
|
|
4435
4422
|
],
|
|
4436
4423
|
"flags": {
|
|
4437
4424
|
"raw": {
|
|
4438
4425
|
"char": "r",
|
|
4439
|
-
"description": "
|
|
4426
|
+
"description": "Output raw JSON",
|
|
4440
4427
|
"name": "raw",
|
|
4441
4428
|
"allowNo": false,
|
|
4442
4429
|
"type": "boolean"
|
|
@@ -4548,7 +4535,7 @@
|
|
|
4548
4535
|
},
|
|
4549
4536
|
"hasDynamicHelp": false,
|
|
4550
4537
|
"hiddenAliases": [],
|
|
4551
|
-
"id": "
|
|
4538
|
+
"id": "page:delete",
|
|
4552
4539
|
"pluginAlias": "@catafal/notion-cli",
|
|
4553
4540
|
"pluginName": "@catafal/notion-cli",
|
|
4554
4541
|
"pluginType": "core",
|
|
@@ -4558,40 +4545,64 @@
|
|
|
4558
4545
|
"relativePath": [
|
|
4559
4546
|
"dist",
|
|
4560
4547
|
"commands",
|
|
4561
|
-
"
|
|
4562
|
-
"
|
|
4548
|
+
"page",
|
|
4549
|
+
"delete.js"
|
|
4563
4550
|
]
|
|
4564
4551
|
},
|
|
4565
|
-
"
|
|
4552
|
+
"page:export": {
|
|
4566
4553
|
"aliases": [
|
|
4567
|
-
"
|
|
4554
|
+
"page:e"
|
|
4568
4555
|
],
|
|
4569
4556
|
"args": {
|
|
4570
|
-
"
|
|
4571
|
-
"description": "
|
|
4572
|
-
"name": "
|
|
4557
|
+
"page_id": {
|
|
4558
|
+
"description": "Page ID or full Notion URL",
|
|
4559
|
+
"name": "page_id",
|
|
4573
4560
|
"required": true
|
|
4574
4561
|
}
|
|
4575
4562
|
},
|
|
4576
|
-
"description": "
|
|
4563
|
+
"description": "Export a Notion page to markdown or JSON",
|
|
4577
4564
|
"examples": [
|
|
4578
4565
|
{
|
|
4579
|
-
"description": "
|
|
4580
|
-
"command": "$ notion-cli
|
|
4581
|
-
}
|
|
4582
|
-
],
|
|
4583
|
-
"flags": {
|
|
4584
|
-
"json": {
|
|
4585
|
-
"char": "j",
|
|
4586
|
-
"description": "Output as JSON (recommended for automation)",
|
|
4587
|
-
"name": "json",
|
|
4588
|
-
"allowNo": false,
|
|
4589
|
-
"type": "boolean"
|
|
4566
|
+
"description": "Export page as markdown to stdout",
|
|
4567
|
+
"command": "$ notion-cli page export PAGE_ID"
|
|
4590
4568
|
},
|
|
4591
|
-
|
|
4592
|
-
"description": "
|
|
4593
|
-
"
|
|
4594
|
-
|
|
4569
|
+
{
|
|
4570
|
+
"description": "Export page as markdown to a file",
|
|
4571
|
+
"command": "$ notion-cli page export PAGE_ID -o notes.md"
|
|
4572
|
+
},
|
|
4573
|
+
{
|
|
4574
|
+
"description": "Export page as JSON to a file",
|
|
4575
|
+
"command": "$ notion-cli page export PAGE_ID --json -o page.json"
|
|
4576
|
+
},
|
|
4577
|
+
{
|
|
4578
|
+
"description": "Export using a Notion URL",
|
|
4579
|
+
"command": "$ notion-cli page export \"https://notion.so/My-Page-abc123\" -o notes.md"
|
|
4580
|
+
},
|
|
4581
|
+
{
|
|
4582
|
+
"description": "Pipe markdown to another command",
|
|
4583
|
+
"command": "$ notion-cli page export PAGE_ID | head -20"
|
|
4584
|
+
}
|
|
4585
|
+
],
|
|
4586
|
+
"flags": {
|
|
4587
|
+
"output": {
|
|
4588
|
+
"char": "o",
|
|
4589
|
+
"description": "File path to write (omit for stdout)",
|
|
4590
|
+
"name": "output",
|
|
4591
|
+
"hasDynamicHelp": false,
|
|
4592
|
+
"multiple": false,
|
|
4593
|
+
"type": "option"
|
|
4594
|
+
},
|
|
4595
|
+
"json": {
|
|
4596
|
+
"char": "j",
|
|
4597
|
+
"description": "Output as JSON (recommended for automation)",
|
|
4598
|
+
"name": "json",
|
|
4599
|
+
"allowNo": false,
|
|
4600
|
+
"type": "boolean"
|
|
4601
|
+
},
|
|
4602
|
+
"page-size": {
|
|
4603
|
+
"description": "Items per page (1-100, default: 100 for automation)",
|
|
4604
|
+
"name": "page-size",
|
|
4605
|
+
"default": 100,
|
|
4595
4606
|
"hasDynamicHelp": false,
|
|
4596
4607
|
"multiple": false,
|
|
4597
4608
|
"type": "option"
|
|
@@ -4633,7 +4644,7 @@
|
|
|
4633
4644
|
},
|
|
4634
4645
|
"hasDynamicHelp": false,
|
|
4635
4646
|
"hiddenAliases": [],
|
|
4636
|
-
"id": "
|
|
4647
|
+
"id": "page:export",
|
|
4637
4648
|
"pluginAlias": "@catafal/notion-cli",
|
|
4638
4649
|
"pluginName": "@catafal/notion-cli",
|
|
4639
4650
|
"pluginType": "core",
|
|
@@ -4643,23 +4654,119 @@
|
|
|
4643
4654
|
"relativePath": [
|
|
4644
4655
|
"dist",
|
|
4645
4656
|
"commands",
|
|
4646
|
-
"
|
|
4647
|
-
"
|
|
4657
|
+
"page",
|
|
4658
|
+
"export.js"
|
|
4648
4659
|
]
|
|
4649
4660
|
},
|
|
4650
|
-
"
|
|
4661
|
+
"page:retrieve": {
|
|
4651
4662
|
"aliases": [
|
|
4652
|
-
"
|
|
4663
|
+
"page:r"
|
|
4653
4664
|
],
|
|
4654
|
-
"args": {
|
|
4655
|
-
|
|
4665
|
+
"args": {
|
|
4666
|
+
"page_id": {
|
|
4667
|
+
"description": "Page ID or full Notion URL (e.g., https://notion.so/...)",
|
|
4668
|
+
"name": "page_id",
|
|
4669
|
+
"required": true
|
|
4670
|
+
}
|
|
4671
|
+
},
|
|
4672
|
+
"description": "Retrieve a page",
|
|
4656
4673
|
"examples": [
|
|
4657
4674
|
{
|
|
4658
|
-
"description": "
|
|
4659
|
-
"command": "$ notion-cli
|
|
4675
|
+
"description": "Retrieve a page with full data (recommended for AI assistants)",
|
|
4676
|
+
"command": "$ notion-cli page retrieve PAGE_ID -r"
|
|
4677
|
+
},
|
|
4678
|
+
{
|
|
4679
|
+
"description": "Fast structure overview (90% faster than full fetch)",
|
|
4680
|
+
"command": "$ notion-cli page retrieve PAGE_ID --map"
|
|
4681
|
+
},
|
|
4682
|
+
{
|
|
4683
|
+
"description": "Fast structure overview with compact JSON",
|
|
4684
|
+
"command": "$ notion-cli page retrieve PAGE_ID --map --compact-json"
|
|
4685
|
+
},
|
|
4686
|
+
{
|
|
4687
|
+
"description": "Retrieve entire page tree with all nested content (35% token reduction)",
|
|
4688
|
+
"command": "$ notion-cli page retrieve PAGE_ID --recursive --compact-json"
|
|
4689
|
+
},
|
|
4690
|
+
{
|
|
4691
|
+
"description": "Retrieve page tree with custom depth limit",
|
|
4692
|
+
"command": "$ notion-cli page retrieve PAGE_ID -R --max-depth 5 --json"
|
|
4693
|
+
},
|
|
4694
|
+
{
|
|
4695
|
+
"description": "Retrieve a page and output table",
|
|
4696
|
+
"command": "$ notion-cli page retrieve PAGE_ID"
|
|
4697
|
+
},
|
|
4698
|
+
{
|
|
4699
|
+
"description": "Retrieve a page via URL",
|
|
4700
|
+
"command": "$ notion-cli page retrieve https://notion.so/PAGE_ID"
|
|
4701
|
+
},
|
|
4702
|
+
{
|
|
4703
|
+
"description": "Retrieve a page and output raw json",
|
|
4704
|
+
"command": "$ notion-cli page retrieve PAGE_ID -r"
|
|
4705
|
+
},
|
|
4706
|
+
{
|
|
4707
|
+
"description": "Retrieve a page and output markdown",
|
|
4708
|
+
"command": "$ notion-cli page retrieve PAGE_ID -m"
|
|
4709
|
+
},
|
|
4710
|
+
{
|
|
4711
|
+
"description": "Retrieve a page metadata and output as markdown table",
|
|
4712
|
+
"command": "$ notion-cli page retrieve PAGE_ID --markdown"
|
|
4713
|
+
},
|
|
4714
|
+
{
|
|
4715
|
+
"description": "Retrieve a page metadata and output as compact JSON",
|
|
4716
|
+
"command": "$ notion-cli page retrieve PAGE_ID --compact-json"
|
|
4717
|
+
},
|
|
4718
|
+
{
|
|
4719
|
+
"description": "Retrieve a page and output JSON for automation",
|
|
4720
|
+
"command": "$ notion-cli page retrieve PAGE_ID --json"
|
|
4660
4721
|
}
|
|
4661
4722
|
],
|
|
4662
4723
|
"flags": {
|
|
4724
|
+
"raw": {
|
|
4725
|
+
"char": "r",
|
|
4726
|
+
"description": "output raw json (recommended for AI assistants - returns all fields)",
|
|
4727
|
+
"name": "raw",
|
|
4728
|
+
"allowNo": false,
|
|
4729
|
+
"type": "boolean"
|
|
4730
|
+
},
|
|
4731
|
+
"markdown": {
|
|
4732
|
+
"char": "m",
|
|
4733
|
+
"description": "Output as markdown table (GitHub-flavored)",
|
|
4734
|
+
"exclusive": [
|
|
4735
|
+
"compact-json",
|
|
4736
|
+
"pretty"
|
|
4737
|
+
],
|
|
4738
|
+
"name": "markdown",
|
|
4739
|
+
"allowNo": false,
|
|
4740
|
+
"type": "boolean"
|
|
4741
|
+
},
|
|
4742
|
+
"map": {
|
|
4743
|
+
"description": "fast structure discovery (returns minimal info: titles, types, IDs)",
|
|
4744
|
+
"exclusive": [
|
|
4745
|
+
"raw",
|
|
4746
|
+
"markdown"
|
|
4747
|
+
],
|
|
4748
|
+
"name": "map",
|
|
4749
|
+
"allowNo": false,
|
|
4750
|
+
"type": "boolean"
|
|
4751
|
+
},
|
|
4752
|
+
"recursive": {
|
|
4753
|
+
"char": "R",
|
|
4754
|
+
"description": "recursively fetch all blocks and nested pages (reduces API calls)",
|
|
4755
|
+
"name": "recursive",
|
|
4756
|
+
"allowNo": false,
|
|
4757
|
+
"type": "boolean"
|
|
4758
|
+
},
|
|
4759
|
+
"max-depth": {
|
|
4760
|
+
"dependsOn": [
|
|
4761
|
+
"recursive"
|
|
4762
|
+
],
|
|
4763
|
+
"description": "maximum recursion depth for --recursive (default: 3)",
|
|
4764
|
+
"name": "max-depth",
|
|
4765
|
+
"default": 3,
|
|
4766
|
+
"hasDynamicHelp": false,
|
|
4767
|
+
"multiple": false,
|
|
4768
|
+
"type": "option"
|
|
4769
|
+
},
|
|
4663
4770
|
"columns": {
|
|
4664
4771
|
"description": "Only show provided columns (comma-separated)",
|
|
4665
4772
|
"exclusive": [
|
|
@@ -4715,6 +4822,28 @@
|
|
|
4715
4822
|
"allowNo": false,
|
|
4716
4823
|
"type": "boolean"
|
|
4717
4824
|
},
|
|
4825
|
+
"compact-json": {
|
|
4826
|
+
"char": "c",
|
|
4827
|
+
"description": "Output as compact JSON (single-line, ideal for piping)",
|
|
4828
|
+
"exclusive": [
|
|
4829
|
+
"markdown",
|
|
4830
|
+
"pretty"
|
|
4831
|
+
],
|
|
4832
|
+
"name": "compact-json",
|
|
4833
|
+
"allowNo": false,
|
|
4834
|
+
"type": "boolean"
|
|
4835
|
+
},
|
|
4836
|
+
"pretty": {
|
|
4837
|
+
"char": "P",
|
|
4838
|
+
"description": "Output as pretty table with borders",
|
|
4839
|
+
"exclusive": [
|
|
4840
|
+
"markdown",
|
|
4841
|
+
"compact-json"
|
|
4842
|
+
],
|
|
4843
|
+
"name": "pretty",
|
|
4844
|
+
"allowNo": false,
|
|
4845
|
+
"type": "boolean"
|
|
4846
|
+
},
|
|
4718
4847
|
"json": {
|
|
4719
4848
|
"char": "j",
|
|
4720
4849
|
"description": "Output as JSON (recommended for automation)",
|
|
@@ -4767,7 +4896,7 @@
|
|
|
4767
4896
|
},
|
|
4768
4897
|
"hasDynamicHelp": false,
|
|
4769
4898
|
"hiddenAliases": [],
|
|
4770
|
-
"id": "
|
|
4899
|
+
"id": "page:retrieve",
|
|
4771
4900
|
"pluginAlias": "@catafal/notion-cli",
|
|
4772
4901
|
"pluginName": "@catafal/notion-cli",
|
|
4773
4902
|
"pluginType": "core",
|
|
@@ -4777,43 +4906,173 @@
|
|
|
4777
4906
|
"relativePath": [
|
|
4778
4907
|
"dist",
|
|
4779
4908
|
"commands",
|
|
4780
|
-
"
|
|
4781
|
-
"
|
|
4909
|
+
"page",
|
|
4910
|
+
"retrieve.js"
|
|
4782
4911
|
]
|
|
4783
4912
|
},
|
|
4784
|
-
"
|
|
4913
|
+
"page:update": {
|
|
4785
4914
|
"aliases": [
|
|
4786
|
-
"
|
|
4915
|
+
"page:u"
|
|
4787
4916
|
],
|
|
4788
4917
|
"args": {
|
|
4789
|
-
"
|
|
4790
|
-
"description": "
|
|
4791
|
-
"name": "
|
|
4918
|
+
"page_id": {
|
|
4919
|
+
"description": "Page ID or full Notion URL (e.g., https://notion.so/...)",
|
|
4920
|
+
"name": "page_id",
|
|
4792
4921
|
"required": true
|
|
4793
4922
|
}
|
|
4794
4923
|
},
|
|
4795
|
-
"description": "
|
|
4924
|
+
"description": "Update a page",
|
|
4796
4925
|
"examples": [
|
|
4797
4926
|
{
|
|
4798
|
-
"description": "
|
|
4799
|
-
"command": "$ notion-cli
|
|
4927
|
+
"description": "Update a page and output table",
|
|
4928
|
+
"command": "$ notion-cli page update PAGE_ID"
|
|
4929
|
+
},
|
|
4930
|
+
{
|
|
4931
|
+
"description": "Update a page via URL",
|
|
4932
|
+
"command": "$ notion-cli page update https://notion.so/PAGE_ID -a"
|
|
4933
|
+
},
|
|
4934
|
+
{
|
|
4935
|
+
"description": "Update page properties with simple format (recommended for AI agents)",
|
|
4936
|
+
"command": "$ notion-cli page update PAGE_ID -S --properties '{\"Status\": \"Done\", \"Priority\": \"High\"}'"
|
|
4937
|
+
},
|
|
4938
|
+
{
|
|
4939
|
+
"description": "Update page properties with relative date",
|
|
4940
|
+
"command": "$ notion-cli page update PAGE_ID -S --properties '{\"Due Date\": \"tomorrow\", \"Status\": \"In Progress\"}'"
|
|
4941
|
+
},
|
|
4942
|
+
{
|
|
4943
|
+
"description": "Update page with multi-select tags",
|
|
4944
|
+
"command": "$ notion-cli page update PAGE_ID -S --properties '{\"Tags\": [\"urgent\", \"bug\"], \"Status\": \"Done\"}'"
|
|
4945
|
+
},
|
|
4946
|
+
{
|
|
4947
|
+
"description": "Update a page and output raw json",
|
|
4948
|
+
"command": "$ notion-cli page update PAGE_ID -r"
|
|
4949
|
+
},
|
|
4950
|
+
{
|
|
4951
|
+
"description": "Update a page and archive",
|
|
4952
|
+
"command": "$ notion-cli page update PAGE_ID -a"
|
|
4953
|
+
},
|
|
4954
|
+
{
|
|
4955
|
+
"description": "Update a page and unarchive",
|
|
4956
|
+
"command": "$ notion-cli page update PAGE_ID -u"
|
|
4957
|
+
},
|
|
4958
|
+
{
|
|
4959
|
+
"description": "Update a page and archive and output raw json",
|
|
4960
|
+
"command": "$ notion-cli page update PAGE_ID -a -r"
|
|
4961
|
+
},
|
|
4962
|
+
{
|
|
4963
|
+
"description": "Update a page and unarchive and output raw json",
|
|
4964
|
+
"command": "$ notion-cli page update PAGE_ID -u -r"
|
|
4965
|
+
},
|
|
4966
|
+
{
|
|
4967
|
+
"description": "Update a page and output JSON for automation",
|
|
4968
|
+
"command": "$ notion-cli page update PAGE_ID -a --json"
|
|
4800
4969
|
}
|
|
4801
4970
|
],
|
|
4802
4971
|
"flags": {
|
|
4803
|
-
"
|
|
4804
|
-
"char": "
|
|
4805
|
-
"description": "
|
|
4806
|
-
"name": "
|
|
4972
|
+
"archived": {
|
|
4973
|
+
"char": "a",
|
|
4974
|
+
"description": "Archive the page",
|
|
4975
|
+
"name": "archived",
|
|
4807
4976
|
"allowNo": false,
|
|
4808
4977
|
"type": "boolean"
|
|
4809
4978
|
},
|
|
4810
|
-
"
|
|
4811
|
-
"
|
|
4812
|
-
"
|
|
4813
|
-
"
|
|
4814
|
-
"
|
|
4815
|
-
"
|
|
4816
|
-
|
|
4979
|
+
"unarchive": {
|
|
4980
|
+
"char": "u",
|
|
4981
|
+
"description": "Unarchive the page",
|
|
4982
|
+
"name": "unarchive",
|
|
4983
|
+
"allowNo": false,
|
|
4984
|
+
"type": "boolean"
|
|
4985
|
+
},
|
|
4986
|
+
"properties": {
|
|
4987
|
+
"description": "Page properties to update as JSON string",
|
|
4988
|
+
"name": "properties",
|
|
4989
|
+
"hasDynamicHelp": false,
|
|
4990
|
+
"multiple": false,
|
|
4991
|
+
"type": "option"
|
|
4992
|
+
},
|
|
4993
|
+
"simple-properties": {
|
|
4994
|
+
"char": "S",
|
|
4995
|
+
"description": "Use simplified property format (flat key-value pairs, recommended for AI agents)",
|
|
4996
|
+
"name": "simple-properties",
|
|
4997
|
+
"allowNo": false,
|
|
4998
|
+
"type": "boolean"
|
|
4999
|
+
},
|
|
5000
|
+
"raw": {
|
|
5001
|
+
"char": "r",
|
|
5002
|
+
"description": "output raw json",
|
|
5003
|
+
"name": "raw",
|
|
5004
|
+
"allowNo": false,
|
|
5005
|
+
"type": "boolean"
|
|
5006
|
+
},
|
|
5007
|
+
"columns": {
|
|
5008
|
+
"description": "Only show provided columns (comma-separated)",
|
|
5009
|
+
"exclusive": [
|
|
5010
|
+
"extended"
|
|
5011
|
+
],
|
|
5012
|
+
"name": "columns",
|
|
5013
|
+
"hasDynamicHelp": false,
|
|
5014
|
+
"multiple": false,
|
|
5015
|
+
"type": "option"
|
|
5016
|
+
},
|
|
5017
|
+
"sort": {
|
|
5018
|
+
"description": "Property to sort by (prepend with - for descending)",
|
|
5019
|
+
"name": "sort",
|
|
5020
|
+
"hasDynamicHelp": false,
|
|
5021
|
+
"multiple": false,
|
|
5022
|
+
"type": "option"
|
|
5023
|
+
},
|
|
5024
|
+
"filter": {
|
|
5025
|
+
"description": "Filter property by substring match",
|
|
5026
|
+
"name": "filter",
|
|
5027
|
+
"hasDynamicHelp": false,
|
|
5028
|
+
"multiple": false,
|
|
5029
|
+
"type": "option"
|
|
5030
|
+
},
|
|
5031
|
+
"csv": {
|
|
5032
|
+
"description": "Output in CSV format",
|
|
5033
|
+
"exclusive": [
|
|
5034
|
+
"no-truncate"
|
|
5035
|
+
],
|
|
5036
|
+
"name": "csv",
|
|
5037
|
+
"allowNo": false,
|
|
5038
|
+
"type": "boolean"
|
|
5039
|
+
},
|
|
5040
|
+
"extended": {
|
|
5041
|
+
"char": "x",
|
|
5042
|
+
"description": "Show extra columns",
|
|
5043
|
+
"name": "extended",
|
|
5044
|
+
"allowNo": false,
|
|
5045
|
+
"type": "boolean"
|
|
5046
|
+
},
|
|
5047
|
+
"no-truncate": {
|
|
5048
|
+
"description": "Do not truncate output to fit screen",
|
|
5049
|
+
"exclusive": [
|
|
5050
|
+
"csv"
|
|
5051
|
+
],
|
|
5052
|
+
"name": "no-truncate",
|
|
5053
|
+
"allowNo": false,
|
|
5054
|
+
"type": "boolean"
|
|
5055
|
+
},
|
|
5056
|
+
"no-header": {
|
|
5057
|
+
"description": "Hide table header from output",
|
|
5058
|
+
"name": "no-header",
|
|
5059
|
+
"allowNo": false,
|
|
5060
|
+
"type": "boolean"
|
|
5061
|
+
},
|
|
5062
|
+
"json": {
|
|
5063
|
+
"char": "j",
|
|
5064
|
+
"description": "Output as JSON (recommended for automation)",
|
|
5065
|
+
"name": "json",
|
|
5066
|
+
"allowNo": false,
|
|
5067
|
+
"type": "boolean"
|
|
5068
|
+
},
|
|
5069
|
+
"page-size": {
|
|
5070
|
+
"description": "Items per page (1-100, default: 100 for automation)",
|
|
5071
|
+
"name": "page-size",
|
|
5072
|
+
"default": 100,
|
|
5073
|
+
"hasDynamicHelp": false,
|
|
5074
|
+
"multiple": false,
|
|
5075
|
+
"type": "option"
|
|
4817
5076
|
},
|
|
4818
5077
|
"retry": {
|
|
4819
5078
|
"description": "Auto-retry on rate limit (respects Retry-After header)",
|
|
@@ -4852,7 +5111,7 @@
|
|
|
4852
5111
|
},
|
|
4853
5112
|
"hasDynamicHelp": false,
|
|
4854
5113
|
"hiddenAliases": [],
|
|
4855
|
-
"id": "
|
|
5114
|
+
"id": "page:update",
|
|
4856
5115
|
"pluginAlias": "@catafal/notion-cli",
|
|
4857
5116
|
"pluginName": "@catafal/notion-cli",
|
|
4858
5117
|
"pluginType": "core",
|
|
@@ -4862,56 +5121,37 @@
|
|
|
4862
5121
|
"relativePath": [
|
|
4863
5122
|
"dist",
|
|
4864
5123
|
"commands",
|
|
4865
|
-
"
|
|
4866
|
-
"
|
|
5124
|
+
"page",
|
|
5125
|
+
"update.js"
|
|
4867
5126
|
]
|
|
4868
5127
|
},
|
|
4869
|
-
"
|
|
5128
|
+
"config:set-token": {
|
|
4870
5129
|
"aliases": [
|
|
4871
|
-
"
|
|
5130
|
+
"config:token"
|
|
4872
5131
|
],
|
|
4873
5132
|
"args": {
|
|
4874
|
-
"
|
|
4875
|
-
"description": "
|
|
4876
|
-
"name": "
|
|
4877
|
-
"required":
|
|
5133
|
+
"token": {
|
|
5134
|
+
"description": "Notion integration token (starts with secret_ or ntn_)",
|
|
5135
|
+
"name": "token",
|
|
5136
|
+
"required": false
|
|
4878
5137
|
}
|
|
4879
5138
|
},
|
|
4880
|
-
"description": "
|
|
5139
|
+
"description": "Set NOTION_TOKEN in your shell configuration file",
|
|
4881
5140
|
"examples": [
|
|
4882
5141
|
{
|
|
4883
|
-
"description": "
|
|
4884
|
-
"command": "
|
|
5142
|
+
"description": "Set Notion token interactively",
|
|
5143
|
+
"command": "notion-cli config set-token"
|
|
4885
5144
|
},
|
|
4886
5145
|
{
|
|
4887
|
-
"description": "
|
|
4888
|
-
"command": "
|
|
5146
|
+
"description": "Set Notion token directly",
|
|
5147
|
+
"command": "notion-cli config set-token ntn_abc123..."
|
|
5148
|
+
},
|
|
5149
|
+
{
|
|
5150
|
+
"description": "Set token with JSON output",
|
|
5151
|
+
"command": "notion-cli config set-token ntn_abc123... --json"
|
|
4889
5152
|
}
|
|
4890
5153
|
],
|
|
4891
5154
|
"flags": {
|
|
4892
|
-
"properties": {
|
|
4893
|
-
"char": "p",
|
|
4894
|
-
"description": "Properties as JSON (simple format, e.g. '{\"Status\": \"To Do\"}')",
|
|
4895
|
-
"name": "properties",
|
|
4896
|
-
"hasDynamicHelp": false,
|
|
4897
|
-
"multiple": false,
|
|
4898
|
-
"type": "option"
|
|
4899
|
-
},
|
|
4900
|
-
"content": {
|
|
4901
|
-
"char": "c",
|
|
4902
|
-
"description": "Markdown body content for the page",
|
|
4903
|
-
"name": "content",
|
|
4904
|
-
"hasDynamicHelp": false,
|
|
4905
|
-
"multiple": false,
|
|
4906
|
-
"type": "option"
|
|
4907
|
-
},
|
|
4908
|
-
"icon": {
|
|
4909
|
-
"description": "Emoji icon (e.g. \"📋\")",
|
|
4910
|
-
"name": "icon",
|
|
4911
|
-
"hasDynamicHelp": false,
|
|
4912
|
-
"multiple": false,
|
|
4913
|
-
"type": "option"
|
|
4914
|
-
},
|
|
4915
5155
|
"json": {
|
|
4916
5156
|
"char": "j",
|
|
4917
5157
|
"description": "Output as JSON (recommended for automation)",
|
|
@@ -4964,7 +5204,7 @@
|
|
|
4964
5204
|
},
|
|
4965
5205
|
"hasDynamicHelp": false,
|
|
4966
5206
|
"hiddenAliases": [],
|
|
4967
|
-
"id": "
|
|
5207
|
+
"id": "config:set-token",
|
|
4968
5208
|
"pluginAlias": "@catafal/notion-cli",
|
|
4969
5209
|
"pluginName": "@catafal/notion-cli",
|
|
4970
5210
|
"pluginType": "core",
|
|
@@ -4974,49 +5214,29 @@
|
|
|
4974
5214
|
"relativePath": [
|
|
4975
5215
|
"dist",
|
|
4976
5216
|
"commands",
|
|
4977
|
-
"
|
|
4978
|
-
"
|
|
5217
|
+
"config",
|
|
5218
|
+
"set-token.js"
|
|
4979
5219
|
]
|
|
4980
5220
|
},
|
|
4981
|
-
"template:
|
|
5221
|
+
"template:get": {
|
|
4982
5222
|
"aliases": [
|
|
4983
|
-
"tpl:
|
|
5223
|
+
"tpl:get"
|
|
4984
5224
|
],
|
|
4985
5225
|
"args": {
|
|
4986
5226
|
"name": {
|
|
4987
|
-
"description": "Template name
|
|
5227
|
+
"description": "Template name",
|
|
4988
5228
|
"name": "name",
|
|
4989
5229
|
"required": true
|
|
4990
5230
|
}
|
|
4991
5231
|
},
|
|
4992
|
-
"description": "
|
|
5232
|
+
"description": "View a saved template",
|
|
4993
5233
|
"examples": [
|
|
4994
5234
|
{
|
|
4995
|
-
"description": "
|
|
4996
|
-
"command": "$ notion-cli template
|
|
4997
|
-
},
|
|
4998
|
-
{
|
|
4999
|
-
"description": "Use default bookmark as target",
|
|
5000
|
-
"command": "$ notion-cli template use \"task\" --title \"Fix login bug\""
|
|
5235
|
+
"description": "View a template",
|
|
5236
|
+
"command": "$ notion-cli template get \"meeting\""
|
|
5001
5237
|
}
|
|
5002
5238
|
],
|
|
5003
5239
|
"flags": {
|
|
5004
|
-
"to": {
|
|
5005
|
-
"description": "Target bookmark name, database name, or ID (defaults to default bookmark)",
|
|
5006
|
-
"name": "to",
|
|
5007
|
-
"hasDynamicHelp": false,
|
|
5008
|
-
"multiple": false,
|
|
5009
|
-
"type": "option"
|
|
5010
|
-
},
|
|
5011
|
-
"title": {
|
|
5012
|
-
"char": "t",
|
|
5013
|
-
"description": "Page title (overrides any title in template properties)",
|
|
5014
|
-
"name": "title",
|
|
5015
|
-
"required": true,
|
|
5016
|
-
"hasDynamicHelp": false,
|
|
5017
|
-
"multiple": false,
|
|
5018
|
-
"type": "option"
|
|
5019
|
-
},
|
|
5020
5240
|
"json": {
|
|
5021
5241
|
"char": "j",
|
|
5022
5242
|
"description": "Output as JSON (recommended for automation)",
|
|
@@ -5069,7 +5289,7 @@
|
|
|
5069
5289
|
},
|
|
5070
5290
|
"hasDynamicHelp": false,
|
|
5071
5291
|
"hiddenAliases": [],
|
|
5072
|
-
"id": "template:
|
|
5292
|
+
"id": "template:get",
|
|
5073
5293
|
"pluginAlias": "@catafal/notion-cli",
|
|
5074
5294
|
"pluginName": "@catafal/notion-cli",
|
|
5075
5295
|
"pluginType": "core",
|
|
@@ -5080,128 +5300,35 @@
|
|
|
5080
5300
|
"dist",
|
|
5081
5301
|
"commands",
|
|
5082
5302
|
"template",
|
|
5083
|
-
"
|
|
5303
|
+
"get.js"
|
|
5084
5304
|
]
|
|
5085
5305
|
},
|
|
5086
|
-
"
|
|
5306
|
+
"template:list": {
|
|
5087
5307
|
"aliases": [
|
|
5088
|
-
"
|
|
5308
|
+
"tpl:ls"
|
|
5089
5309
|
],
|
|
5090
5310
|
"args": {},
|
|
5091
|
-
"description": "
|
|
5311
|
+
"description": "List all saved templates",
|
|
5092
5312
|
"examples": [
|
|
5093
5313
|
{
|
|
5094
|
-
"description": "
|
|
5095
|
-
"command": "$ notion-cli
|
|
5096
|
-
},
|
|
5097
|
-
{
|
|
5098
|
-
"description": "Create a page with a specific parent_page_id",
|
|
5099
|
-
"command": "$ notion-cli page create -p PARENT_PAGE_ID"
|
|
5100
|
-
},
|
|
5101
|
-
{
|
|
5102
|
-
"description": "Create a page with a parent page URL",
|
|
5103
|
-
"command": "$ notion-cli page create -p https://notion.so/PARENT_PAGE_ID"
|
|
5104
|
-
},
|
|
5105
|
-
{
|
|
5106
|
-
"description": "Create a page with a specific parent_db_id",
|
|
5107
|
-
"command": "$ notion-cli page create -d PARENT_DB_ID"
|
|
5108
|
-
},
|
|
5109
|
-
{
|
|
5110
|
-
"description": "Create a page with simple properties (recommended for AI agents)",
|
|
5111
|
-
"command": "$ notion-cli page create -d DATA_SOURCE_ID -S --properties '{\"Name\": \"My Task\", \"Status\": \"In Progress\", \"Due Date\": \"2025-12-31\"}'"
|
|
5112
|
-
},
|
|
5113
|
-
{
|
|
5114
|
-
"description": "Create a page with simple properties using relative dates",
|
|
5115
|
-
"command": "$ notion-cli page create -d DATA_SOURCE_ID -S --properties '{\"Name\": \"Review\", \"Due Date\": \"tomorrow\", \"Priority\": \"High\"}'"
|
|
5116
|
-
},
|
|
5117
|
-
{
|
|
5118
|
-
"description": "Create a page with simple properties and multi-select",
|
|
5119
|
-
"command": "$ notion-cli page create -d DATA_SOURCE_ID -S --properties '{\"Name\": \"Bug Fix\", \"Tags\": [\"urgent\", \"bug\"], \"Status\": \"Done\"}'"
|
|
5120
|
-
},
|
|
5121
|
-
{
|
|
5122
|
-
"description": "Create a page with a specific source markdown file and parent_page_id",
|
|
5123
|
-
"command": "$ notion-cli page create -f ./path/to/source.md -p PARENT_PAGE_ID"
|
|
5124
|
-
},
|
|
5125
|
-
{
|
|
5126
|
-
"description": "Create a page with a specific source markdown file and parent_db_id",
|
|
5127
|
-
"command": "$ notion-cli page create -f ./path/to/source.md -d PARENT_DB_ID"
|
|
5128
|
-
},
|
|
5129
|
-
{
|
|
5130
|
-
"description": "Create a page with a specific source markdown file and output raw json with parent_page_id",
|
|
5131
|
-
"command": "$ notion-cli page create -f ./path/to/source.md -p PARENT_PAGE_ID -r"
|
|
5132
|
-
},
|
|
5133
|
-
{
|
|
5134
|
-
"description": "Create a page and output JSON for automation",
|
|
5135
|
-
"command": "$ notion-cli page create -p PARENT_PAGE_ID --json"
|
|
5314
|
+
"description": "List all templates",
|
|
5315
|
+
"command": "$ notion-cli template list"
|
|
5136
5316
|
}
|
|
5137
5317
|
],
|
|
5138
5318
|
"flags": {
|
|
5139
|
-
"
|
|
5140
|
-
"
|
|
5141
|
-
"
|
|
5142
|
-
|
|
5319
|
+
"columns": {
|
|
5320
|
+
"description": "Only show provided columns (comma-separated)",
|
|
5321
|
+
"exclusive": [
|
|
5322
|
+
"extended"
|
|
5323
|
+
],
|
|
5324
|
+
"name": "columns",
|
|
5143
5325
|
"hasDynamicHelp": false,
|
|
5144
5326
|
"multiple": false,
|
|
5145
5327
|
"type": "option"
|
|
5146
5328
|
},
|
|
5147
|
-
"
|
|
5148
|
-
"
|
|
5149
|
-
"
|
|
5150
|
-
"name": "parent_data_source_id",
|
|
5151
|
-
"hasDynamicHelp": false,
|
|
5152
|
-
"multiple": false,
|
|
5153
|
-
"type": "option"
|
|
5154
|
-
},
|
|
5155
|
-
"file_path": {
|
|
5156
|
-
"char": "f",
|
|
5157
|
-
"description": "Path to a source markdown file",
|
|
5158
|
-
"name": "file_path",
|
|
5159
|
-
"hasDynamicHelp": false,
|
|
5160
|
-
"multiple": false,
|
|
5161
|
-
"type": "option"
|
|
5162
|
-
},
|
|
5163
|
-
"title_property": {
|
|
5164
|
-
"char": "t",
|
|
5165
|
-
"description": "Title property name (auto-detected: \"title\" for sub-pages, \"Name\" for databases)",
|
|
5166
|
-
"name": "title_property",
|
|
5167
|
-
"hasDynamicHelp": false,
|
|
5168
|
-
"multiple": false,
|
|
5169
|
-
"type": "option"
|
|
5170
|
-
},
|
|
5171
|
-
"properties": {
|
|
5172
|
-
"description": "Page properties as JSON string",
|
|
5173
|
-
"name": "properties",
|
|
5174
|
-
"hasDynamicHelp": false,
|
|
5175
|
-
"multiple": false,
|
|
5176
|
-
"type": "option"
|
|
5177
|
-
},
|
|
5178
|
-
"simple-properties": {
|
|
5179
|
-
"char": "S",
|
|
5180
|
-
"description": "Use simplified property format (flat key-value pairs, recommended for AI agents)",
|
|
5181
|
-
"name": "simple-properties",
|
|
5182
|
-
"allowNo": false,
|
|
5183
|
-
"type": "boolean"
|
|
5184
|
-
},
|
|
5185
|
-
"raw": {
|
|
5186
|
-
"char": "r",
|
|
5187
|
-
"description": "output raw json",
|
|
5188
|
-
"name": "raw",
|
|
5189
|
-
"allowNo": false,
|
|
5190
|
-
"type": "boolean"
|
|
5191
|
-
},
|
|
5192
|
-
"columns": {
|
|
5193
|
-
"description": "Only show provided columns (comma-separated)",
|
|
5194
|
-
"exclusive": [
|
|
5195
|
-
"extended"
|
|
5196
|
-
],
|
|
5197
|
-
"name": "columns",
|
|
5198
|
-
"hasDynamicHelp": false,
|
|
5199
|
-
"multiple": false,
|
|
5200
|
-
"type": "option"
|
|
5201
|
-
},
|
|
5202
|
-
"sort": {
|
|
5203
|
-
"description": "Property to sort by (prepend with - for descending)",
|
|
5204
|
-
"name": "sort",
|
|
5329
|
+
"sort": {
|
|
5330
|
+
"description": "Property to sort by (prepend with - for descending)",
|
|
5331
|
+
"name": "sort",
|
|
5205
5332
|
"hasDynamicHelp": false,
|
|
5206
5333
|
"multiple": false,
|
|
5207
5334
|
"type": "option"
|
|
@@ -5296,7 +5423,7 @@
|
|
|
5296
5423
|
},
|
|
5297
5424
|
"hasDynamicHelp": false,
|
|
5298
5425
|
"hiddenAliases": [],
|
|
5299
|
-
"id": "
|
|
5426
|
+
"id": "template:list",
|
|
5300
5427
|
"pluginAlias": "@catafal/notion-cli",
|
|
5301
5428
|
"pluginName": "@catafal/notion-cli",
|
|
5302
5429
|
"pluginType": "core",
|
|
@@ -5306,99 +5433,29 @@
|
|
|
5306
5433
|
"relativePath": [
|
|
5307
5434
|
"dist",
|
|
5308
5435
|
"commands",
|
|
5309
|
-
"
|
|
5310
|
-
"
|
|
5436
|
+
"template",
|
|
5437
|
+
"list.js"
|
|
5311
5438
|
]
|
|
5312
5439
|
},
|
|
5313
|
-
"
|
|
5440
|
+
"template:remove": {
|
|
5314
5441
|
"aliases": [
|
|
5315
|
-
"
|
|
5442
|
+
"tpl:rm"
|
|
5316
5443
|
],
|
|
5317
5444
|
"args": {
|
|
5318
|
-
"
|
|
5319
|
-
"description": "
|
|
5320
|
-
"name": "
|
|
5445
|
+
"name": {
|
|
5446
|
+
"description": "Template name to remove",
|
|
5447
|
+
"name": "name",
|
|
5321
5448
|
"required": true
|
|
5322
5449
|
}
|
|
5323
5450
|
},
|
|
5324
|
-
"description": "
|
|
5451
|
+
"description": "Remove a saved template",
|
|
5325
5452
|
"examples": [
|
|
5326
5453
|
{
|
|
5327
|
-
"description": "
|
|
5328
|
-
"command": "$ notion-cli
|
|
5329
|
-
},
|
|
5330
|
-
{
|
|
5331
|
-
"description": "Delete (archive) a page by URL",
|
|
5332
|
-
"command": "$ notion-cli page delete https://notion.so/PAGE_ID"
|
|
5333
|
-
},
|
|
5334
|
-
{
|
|
5335
|
-
"description": "Delete and output JSON for automation",
|
|
5336
|
-
"command": "$ notion-cli page delete PAGE_ID --json"
|
|
5454
|
+
"description": "Remove a template",
|
|
5455
|
+
"command": "$ notion-cli template remove \"meeting\""
|
|
5337
5456
|
}
|
|
5338
5457
|
],
|
|
5339
5458
|
"flags": {
|
|
5340
|
-
"raw": {
|
|
5341
|
-
"char": "r",
|
|
5342
|
-
"description": "Output raw JSON",
|
|
5343
|
-
"name": "raw",
|
|
5344
|
-
"allowNo": false,
|
|
5345
|
-
"type": "boolean"
|
|
5346
|
-
},
|
|
5347
|
-
"columns": {
|
|
5348
|
-
"description": "Only show provided columns (comma-separated)",
|
|
5349
|
-
"exclusive": [
|
|
5350
|
-
"extended"
|
|
5351
|
-
],
|
|
5352
|
-
"name": "columns",
|
|
5353
|
-
"hasDynamicHelp": false,
|
|
5354
|
-
"multiple": false,
|
|
5355
|
-
"type": "option"
|
|
5356
|
-
},
|
|
5357
|
-
"sort": {
|
|
5358
|
-
"description": "Property to sort by (prepend with - for descending)",
|
|
5359
|
-
"name": "sort",
|
|
5360
|
-
"hasDynamicHelp": false,
|
|
5361
|
-
"multiple": false,
|
|
5362
|
-
"type": "option"
|
|
5363
|
-
},
|
|
5364
|
-
"filter": {
|
|
5365
|
-
"description": "Filter property by substring match",
|
|
5366
|
-
"name": "filter",
|
|
5367
|
-
"hasDynamicHelp": false,
|
|
5368
|
-
"multiple": false,
|
|
5369
|
-
"type": "option"
|
|
5370
|
-
},
|
|
5371
|
-
"csv": {
|
|
5372
|
-
"description": "Output in CSV format",
|
|
5373
|
-
"exclusive": [
|
|
5374
|
-
"no-truncate"
|
|
5375
|
-
],
|
|
5376
|
-
"name": "csv",
|
|
5377
|
-
"allowNo": false,
|
|
5378
|
-
"type": "boolean"
|
|
5379
|
-
},
|
|
5380
|
-
"extended": {
|
|
5381
|
-
"char": "x",
|
|
5382
|
-
"description": "Show extra columns",
|
|
5383
|
-
"name": "extended",
|
|
5384
|
-
"allowNo": false,
|
|
5385
|
-
"type": "boolean"
|
|
5386
|
-
},
|
|
5387
|
-
"no-truncate": {
|
|
5388
|
-
"description": "Do not truncate output to fit screen",
|
|
5389
|
-
"exclusive": [
|
|
5390
|
-
"csv"
|
|
5391
|
-
],
|
|
5392
|
-
"name": "no-truncate",
|
|
5393
|
-
"allowNo": false,
|
|
5394
|
-
"type": "boolean"
|
|
5395
|
-
},
|
|
5396
|
-
"no-header": {
|
|
5397
|
-
"description": "Hide table header from output",
|
|
5398
|
-
"name": "no-header",
|
|
5399
|
-
"allowNo": false,
|
|
5400
|
-
"type": "boolean"
|
|
5401
|
-
},
|
|
5402
5459
|
"json": {
|
|
5403
5460
|
"char": "j",
|
|
5404
5461
|
"description": "Output as JSON (recommended for automation)",
|
|
@@ -5451,7 +5508,7 @@
|
|
|
5451
5508
|
},
|
|
5452
5509
|
"hasDynamicHelp": false,
|
|
5453
5510
|
"hiddenAliases": [],
|
|
5454
|
-
"id": "
|
|
5511
|
+
"id": "template:remove",
|
|
5455
5512
|
"pluginAlias": "@catafal/notion-cli",
|
|
5456
5513
|
"pluginName": "@catafal/notion-cli",
|
|
5457
5514
|
"pluginType": "core",
|
|
@@ -5461,49 +5518,52 @@
|
|
|
5461
5518
|
"relativePath": [
|
|
5462
5519
|
"dist",
|
|
5463
5520
|
"commands",
|
|
5464
|
-
"
|
|
5465
|
-
"
|
|
5521
|
+
"template",
|
|
5522
|
+
"remove.js"
|
|
5466
5523
|
]
|
|
5467
5524
|
},
|
|
5468
|
-
"
|
|
5525
|
+
"template:save": {
|
|
5469
5526
|
"aliases": [
|
|
5470
|
-
"
|
|
5527
|
+
"tpl:save"
|
|
5471
5528
|
],
|
|
5472
5529
|
"args": {
|
|
5473
|
-
"
|
|
5474
|
-
"description": "
|
|
5475
|
-
"name": "
|
|
5530
|
+
"name": {
|
|
5531
|
+
"description": "Template name (e.g. \"meeting\", \"task\")",
|
|
5532
|
+
"name": "name",
|
|
5476
5533
|
"required": true
|
|
5477
5534
|
}
|
|
5478
5535
|
},
|
|
5479
|
-
"description": "
|
|
5536
|
+
"description": "Save a reusable page template",
|
|
5480
5537
|
"examples": [
|
|
5481
5538
|
{
|
|
5482
|
-
"description": "
|
|
5483
|
-
"command": "$ notion-cli
|
|
5484
|
-
},
|
|
5485
|
-
{
|
|
5486
|
-
"description": "Export page as markdown to a file",
|
|
5487
|
-
"command": "$ notion-cli page export PAGE_ID -o notes.md"
|
|
5488
|
-
},
|
|
5489
|
-
{
|
|
5490
|
-
"description": "Export page as JSON to a file",
|
|
5491
|
-
"command": "$ notion-cli page export PAGE_ID --json -o page.json"
|
|
5492
|
-
},
|
|
5493
|
-
{
|
|
5494
|
-
"description": "Export using a Notion URL",
|
|
5495
|
-
"command": "$ notion-cli page export \"https://notion.so/My-Page-abc123\" -o notes.md"
|
|
5539
|
+
"description": "Save a template with properties",
|
|
5540
|
+
"command": "$ notion-cli template save \"meeting\" --properties '{\"Status\": \"To Do\", \"Type\": \"Meeting\"}'"
|
|
5496
5541
|
},
|
|
5497
5542
|
{
|
|
5498
|
-
"description": "
|
|
5499
|
-
"command": "$ notion-cli
|
|
5543
|
+
"description": "Save with properties, body content, and icon",
|
|
5544
|
+
"command": "$ notion-cli template save \"standup\" --properties '{\"Status\": \"In Progress\"}' --content \"# Standup\\n\\n## Done\\n\\n## Doing\\n\\n## Blockers\" --icon \"🧑💻\""
|
|
5500
5545
|
}
|
|
5501
5546
|
],
|
|
5502
5547
|
"flags": {
|
|
5503
|
-
"
|
|
5504
|
-
"char": "
|
|
5505
|
-
"description": "
|
|
5506
|
-
"name": "
|
|
5548
|
+
"properties": {
|
|
5549
|
+
"char": "p",
|
|
5550
|
+
"description": "Properties as JSON (simple format, e.g. '{\"Status\": \"To Do\"}')",
|
|
5551
|
+
"name": "properties",
|
|
5552
|
+
"hasDynamicHelp": false,
|
|
5553
|
+
"multiple": false,
|
|
5554
|
+
"type": "option"
|
|
5555
|
+
},
|
|
5556
|
+
"content": {
|
|
5557
|
+
"char": "c",
|
|
5558
|
+
"description": "Markdown body content for the page",
|
|
5559
|
+
"name": "content",
|
|
5560
|
+
"hasDynamicHelp": false,
|
|
5561
|
+
"multiple": false,
|
|
5562
|
+
"type": "option"
|
|
5563
|
+
},
|
|
5564
|
+
"icon": {
|
|
5565
|
+
"description": "Emoji icon (e.g. \"📋\")",
|
|
5566
|
+
"name": "icon",
|
|
5507
5567
|
"hasDynamicHelp": false,
|
|
5508
5568
|
"multiple": false,
|
|
5509
5569
|
"type": "option"
|
|
@@ -5560,7 +5620,7 @@
|
|
|
5560
5620
|
},
|
|
5561
5621
|
"hasDynamicHelp": false,
|
|
5562
5622
|
"hiddenAliases": [],
|
|
5563
|
-
"id": "
|
|
5623
|
+
"id": "template:save",
|
|
5564
5624
|
"pluginAlias": "@catafal/notion-cli",
|
|
5565
5625
|
"pluginName": "@catafal/notion-cli",
|
|
5566
5626
|
"pluginType": "core",
|
|
@@ -5570,196 +5630,49 @@
|
|
|
5570
5630
|
"relativePath": [
|
|
5571
5631
|
"dist",
|
|
5572
5632
|
"commands",
|
|
5573
|
-
"
|
|
5574
|
-
"
|
|
5633
|
+
"template",
|
|
5634
|
+
"save.js"
|
|
5575
5635
|
]
|
|
5576
5636
|
},
|
|
5577
|
-
"
|
|
5637
|
+
"template:use": {
|
|
5578
5638
|
"aliases": [
|
|
5579
|
-
"
|
|
5639
|
+
"tpl:use"
|
|
5580
5640
|
],
|
|
5581
5641
|
"args": {
|
|
5582
|
-
"
|
|
5583
|
-
"description": "
|
|
5584
|
-
"name": "
|
|
5642
|
+
"name": {
|
|
5643
|
+
"description": "Template name to use",
|
|
5644
|
+
"name": "name",
|
|
5585
5645
|
"required": true
|
|
5586
5646
|
}
|
|
5587
5647
|
},
|
|
5588
|
-
"description": "
|
|
5648
|
+
"description": "Create a page from a saved template",
|
|
5589
5649
|
"examples": [
|
|
5590
5650
|
{
|
|
5591
|
-
"description": "
|
|
5592
|
-
"command": "$ notion-cli
|
|
5593
|
-
},
|
|
5594
|
-
{
|
|
5595
|
-
"description": "Fast structure overview (90% faster than full fetch)",
|
|
5596
|
-
"command": "$ notion-cli page retrieve PAGE_ID --map"
|
|
5597
|
-
},
|
|
5598
|
-
{
|
|
5599
|
-
"description": "Fast structure overview with compact JSON",
|
|
5600
|
-
"command": "$ notion-cli page retrieve PAGE_ID --map --compact-json"
|
|
5601
|
-
},
|
|
5602
|
-
{
|
|
5603
|
-
"description": "Retrieve entire page tree with all nested content (35% token reduction)",
|
|
5604
|
-
"command": "$ notion-cli page retrieve PAGE_ID --recursive --compact-json"
|
|
5605
|
-
},
|
|
5606
|
-
{
|
|
5607
|
-
"description": "Retrieve page tree with custom depth limit",
|
|
5608
|
-
"command": "$ notion-cli page retrieve PAGE_ID -R --max-depth 5 --json"
|
|
5609
|
-
},
|
|
5610
|
-
{
|
|
5611
|
-
"description": "Retrieve a page and output table",
|
|
5612
|
-
"command": "$ notion-cli page retrieve PAGE_ID"
|
|
5613
|
-
},
|
|
5614
|
-
{
|
|
5615
|
-
"description": "Retrieve a page via URL",
|
|
5616
|
-
"command": "$ notion-cli page retrieve https://notion.so/PAGE_ID"
|
|
5617
|
-
},
|
|
5618
|
-
{
|
|
5619
|
-
"description": "Retrieve a page and output raw json",
|
|
5620
|
-
"command": "$ notion-cli page retrieve PAGE_ID -r"
|
|
5621
|
-
},
|
|
5622
|
-
{
|
|
5623
|
-
"description": "Retrieve a page and output markdown",
|
|
5624
|
-
"command": "$ notion-cli page retrieve PAGE_ID -m"
|
|
5625
|
-
},
|
|
5626
|
-
{
|
|
5627
|
-
"description": "Retrieve a page metadata and output as markdown table",
|
|
5628
|
-
"command": "$ notion-cli page retrieve PAGE_ID --markdown"
|
|
5629
|
-
},
|
|
5630
|
-
{
|
|
5631
|
-
"description": "Retrieve a page metadata and output as compact JSON",
|
|
5632
|
-
"command": "$ notion-cli page retrieve PAGE_ID --compact-json"
|
|
5651
|
+
"description": "Create a page from a template",
|
|
5652
|
+
"command": "$ notion-cli template use \"meeting\" --to tasks --title \"Sprint Planning\""
|
|
5633
5653
|
},
|
|
5634
5654
|
{
|
|
5635
|
-
"description": "
|
|
5636
|
-
"command": "$ notion-cli
|
|
5655
|
+
"description": "Use default bookmark as target",
|
|
5656
|
+
"command": "$ notion-cli template use \"task\" --title \"Fix login bug\""
|
|
5637
5657
|
}
|
|
5638
5658
|
],
|
|
5639
5659
|
"flags": {
|
|
5640
|
-
"
|
|
5641
|
-
"
|
|
5642
|
-
"
|
|
5643
|
-
"name": "raw",
|
|
5644
|
-
"allowNo": false,
|
|
5645
|
-
"type": "boolean"
|
|
5646
|
-
},
|
|
5647
|
-
"markdown": {
|
|
5648
|
-
"char": "m",
|
|
5649
|
-
"description": "Output as markdown table (GitHub-flavored)",
|
|
5650
|
-
"exclusive": [
|
|
5651
|
-
"compact-json",
|
|
5652
|
-
"pretty"
|
|
5653
|
-
],
|
|
5654
|
-
"name": "markdown",
|
|
5655
|
-
"allowNo": false,
|
|
5656
|
-
"type": "boolean"
|
|
5657
|
-
},
|
|
5658
|
-
"map": {
|
|
5659
|
-
"description": "fast structure discovery (returns minimal info: titles, types, IDs)",
|
|
5660
|
-
"exclusive": [
|
|
5661
|
-
"raw",
|
|
5662
|
-
"markdown"
|
|
5663
|
-
],
|
|
5664
|
-
"name": "map",
|
|
5665
|
-
"allowNo": false,
|
|
5666
|
-
"type": "boolean"
|
|
5667
|
-
},
|
|
5668
|
-
"recursive": {
|
|
5669
|
-
"char": "R",
|
|
5670
|
-
"description": "recursively fetch all blocks and nested pages (reduces API calls)",
|
|
5671
|
-
"name": "recursive",
|
|
5672
|
-
"allowNo": false,
|
|
5673
|
-
"type": "boolean"
|
|
5674
|
-
},
|
|
5675
|
-
"max-depth": {
|
|
5676
|
-
"dependsOn": [
|
|
5677
|
-
"recursive"
|
|
5678
|
-
],
|
|
5679
|
-
"description": "maximum recursion depth for --recursive (default: 3)",
|
|
5680
|
-
"name": "max-depth",
|
|
5681
|
-
"default": 3,
|
|
5682
|
-
"hasDynamicHelp": false,
|
|
5683
|
-
"multiple": false,
|
|
5684
|
-
"type": "option"
|
|
5685
|
-
},
|
|
5686
|
-
"columns": {
|
|
5687
|
-
"description": "Only show provided columns (comma-separated)",
|
|
5688
|
-
"exclusive": [
|
|
5689
|
-
"extended"
|
|
5690
|
-
],
|
|
5691
|
-
"name": "columns",
|
|
5692
|
-
"hasDynamicHelp": false,
|
|
5693
|
-
"multiple": false,
|
|
5694
|
-
"type": "option"
|
|
5695
|
-
},
|
|
5696
|
-
"sort": {
|
|
5697
|
-
"description": "Property to sort by (prepend with - for descending)",
|
|
5698
|
-
"name": "sort",
|
|
5660
|
+
"to": {
|
|
5661
|
+
"description": "Target bookmark name, database name, or ID (defaults to default bookmark)",
|
|
5662
|
+
"name": "to",
|
|
5699
5663
|
"hasDynamicHelp": false,
|
|
5700
5664
|
"multiple": false,
|
|
5701
5665
|
"type": "option"
|
|
5702
5666
|
},
|
|
5703
|
-
"
|
|
5704
|
-
"
|
|
5705
|
-
"
|
|
5667
|
+
"title": {
|
|
5668
|
+
"char": "t",
|
|
5669
|
+
"description": "Page title (overrides any title in template properties)",
|
|
5670
|
+
"name": "title",
|
|
5671
|
+
"required": true,
|
|
5706
5672
|
"hasDynamicHelp": false,
|
|
5707
5673
|
"multiple": false,
|
|
5708
5674
|
"type": "option"
|
|
5709
5675
|
},
|
|
5710
|
-
"csv": {
|
|
5711
|
-
"description": "Output in CSV format",
|
|
5712
|
-
"exclusive": [
|
|
5713
|
-
"no-truncate"
|
|
5714
|
-
],
|
|
5715
|
-
"name": "csv",
|
|
5716
|
-
"allowNo": false,
|
|
5717
|
-
"type": "boolean"
|
|
5718
|
-
},
|
|
5719
|
-
"extended": {
|
|
5720
|
-
"char": "x",
|
|
5721
|
-
"description": "Show extra columns",
|
|
5722
|
-
"name": "extended",
|
|
5723
|
-
"allowNo": false,
|
|
5724
|
-
"type": "boolean"
|
|
5725
|
-
},
|
|
5726
|
-
"no-truncate": {
|
|
5727
|
-
"description": "Do not truncate output to fit screen",
|
|
5728
|
-
"exclusive": [
|
|
5729
|
-
"csv"
|
|
5730
|
-
],
|
|
5731
|
-
"name": "no-truncate",
|
|
5732
|
-
"allowNo": false,
|
|
5733
|
-
"type": "boolean"
|
|
5734
|
-
},
|
|
5735
|
-
"no-header": {
|
|
5736
|
-
"description": "Hide table header from output",
|
|
5737
|
-
"name": "no-header",
|
|
5738
|
-
"allowNo": false,
|
|
5739
|
-
"type": "boolean"
|
|
5740
|
-
},
|
|
5741
|
-
"compact-json": {
|
|
5742
|
-
"char": "c",
|
|
5743
|
-
"description": "Output as compact JSON (single-line, ideal for piping)",
|
|
5744
|
-
"exclusive": [
|
|
5745
|
-
"markdown",
|
|
5746
|
-
"pretty"
|
|
5747
|
-
],
|
|
5748
|
-
"name": "compact-json",
|
|
5749
|
-
"allowNo": false,
|
|
5750
|
-
"type": "boolean"
|
|
5751
|
-
},
|
|
5752
|
-
"pretty": {
|
|
5753
|
-
"char": "P",
|
|
5754
|
-
"description": "Output as pretty table with borders",
|
|
5755
|
-
"exclusive": [
|
|
5756
|
-
"markdown",
|
|
5757
|
-
"compact-json"
|
|
5758
|
-
],
|
|
5759
|
-
"name": "pretty",
|
|
5760
|
-
"allowNo": false,
|
|
5761
|
-
"type": "boolean"
|
|
5762
|
-
},
|
|
5763
5676
|
"json": {
|
|
5764
5677
|
"char": "j",
|
|
5765
5678
|
"description": "Output as JSON (recommended for automation)",
|
|
@@ -5812,7 +5725,7 @@
|
|
|
5812
5725
|
},
|
|
5813
5726
|
"hasDynamicHelp": false,
|
|
5814
5727
|
"hiddenAliases": [],
|
|
5815
|
-
"id": "
|
|
5728
|
+
"id": "template:use",
|
|
5816
5729
|
"pluginAlias": "@catafal/notion-cli",
|
|
5817
5730
|
"pluginName": "@catafal/notion-cli",
|
|
5818
5731
|
"pluginType": "core",
|
|
@@ -5822,97 +5735,31 @@
|
|
|
5822
5735
|
"relativePath": [
|
|
5823
5736
|
"dist",
|
|
5824
5737
|
"commands",
|
|
5825
|
-
"
|
|
5826
|
-
"
|
|
5738
|
+
"template",
|
|
5739
|
+
"use.js"
|
|
5827
5740
|
]
|
|
5828
5741
|
},
|
|
5829
|
-
"
|
|
5742
|
+
"user:list": {
|
|
5830
5743
|
"aliases": [
|
|
5831
|
-
"
|
|
5744
|
+
"user:l"
|
|
5832
5745
|
],
|
|
5833
|
-
"args": {
|
|
5834
|
-
|
|
5835
|
-
"description": "Page ID or full Notion URL (e.g., https://notion.so/...)",
|
|
5836
|
-
"name": "page_id",
|
|
5837
|
-
"required": true
|
|
5838
|
-
}
|
|
5839
|
-
},
|
|
5840
|
-
"description": "Update a page",
|
|
5746
|
+
"args": {},
|
|
5747
|
+
"description": "List all users",
|
|
5841
5748
|
"examples": [
|
|
5842
5749
|
{
|
|
5843
|
-
"description": "
|
|
5844
|
-
"command": "$ notion-cli
|
|
5845
|
-
},
|
|
5846
|
-
{
|
|
5847
|
-
"description": "Update a page via URL",
|
|
5848
|
-
"command": "$ notion-cli page update https://notion.so/PAGE_ID -a"
|
|
5849
|
-
},
|
|
5850
|
-
{
|
|
5851
|
-
"description": "Update page properties with simple format (recommended for AI agents)",
|
|
5852
|
-
"command": "$ notion-cli page update PAGE_ID -S --properties '{\"Status\": \"Done\", \"Priority\": \"High\"}'"
|
|
5853
|
-
},
|
|
5854
|
-
{
|
|
5855
|
-
"description": "Update page properties with relative date",
|
|
5856
|
-
"command": "$ notion-cli page update PAGE_ID -S --properties '{\"Due Date\": \"tomorrow\", \"Status\": \"In Progress\"}'"
|
|
5857
|
-
},
|
|
5858
|
-
{
|
|
5859
|
-
"description": "Update page with multi-select tags",
|
|
5860
|
-
"command": "$ notion-cli page update PAGE_ID -S --properties '{\"Tags\": [\"urgent\", \"bug\"], \"Status\": \"Done\"}'"
|
|
5861
|
-
},
|
|
5862
|
-
{
|
|
5863
|
-
"description": "Update a page and output raw json",
|
|
5864
|
-
"command": "$ notion-cli page update PAGE_ID -r"
|
|
5865
|
-
},
|
|
5866
|
-
{
|
|
5867
|
-
"description": "Update a page and archive",
|
|
5868
|
-
"command": "$ notion-cli page update PAGE_ID -a"
|
|
5869
|
-
},
|
|
5870
|
-
{
|
|
5871
|
-
"description": "Update a page and unarchive",
|
|
5872
|
-
"command": "$ notion-cli page update PAGE_ID -u"
|
|
5873
|
-
},
|
|
5874
|
-
{
|
|
5875
|
-
"description": "Update a page and archive and output raw json",
|
|
5876
|
-
"command": "$ notion-cli page update PAGE_ID -a -r"
|
|
5877
|
-
},
|
|
5878
|
-
{
|
|
5879
|
-
"description": "Update a page and unarchive and output raw json",
|
|
5880
|
-
"command": "$ notion-cli page update PAGE_ID -u -r"
|
|
5750
|
+
"description": "List all users",
|
|
5751
|
+
"command": "$ notion-cli user list"
|
|
5881
5752
|
},
|
|
5882
5753
|
{
|
|
5883
|
-
"description": "
|
|
5884
|
-
"command": "$ notion-cli
|
|
5885
|
-
}
|
|
5886
|
-
],
|
|
5887
|
-
"flags": {
|
|
5888
|
-
"archived": {
|
|
5889
|
-
"char": "a",
|
|
5890
|
-
"description": "Archive the page",
|
|
5891
|
-
"name": "archived",
|
|
5892
|
-
"allowNo": false,
|
|
5893
|
-
"type": "boolean"
|
|
5894
|
-
},
|
|
5895
|
-
"unarchive": {
|
|
5896
|
-
"char": "u",
|
|
5897
|
-
"description": "Unarchive the page",
|
|
5898
|
-
"name": "unarchive",
|
|
5899
|
-
"allowNo": false,
|
|
5900
|
-
"type": "boolean"
|
|
5901
|
-
},
|
|
5902
|
-
"properties": {
|
|
5903
|
-
"description": "Page properties to update as JSON string",
|
|
5904
|
-
"name": "properties",
|
|
5905
|
-
"hasDynamicHelp": false,
|
|
5906
|
-
"multiple": false,
|
|
5907
|
-
"type": "option"
|
|
5908
|
-
},
|
|
5909
|
-
"simple-properties": {
|
|
5910
|
-
"char": "S",
|
|
5911
|
-
"description": "Use simplified property format (flat key-value pairs, recommended for AI agents)",
|
|
5912
|
-
"name": "simple-properties",
|
|
5913
|
-
"allowNo": false,
|
|
5914
|
-
"type": "boolean"
|
|
5754
|
+
"description": "List all users and output raw json",
|
|
5755
|
+
"command": "$ notion-cli user list -r"
|
|
5915
5756
|
},
|
|
5757
|
+
{
|
|
5758
|
+
"description": "List all users and output JSON for automation",
|
|
5759
|
+
"command": "$ notion-cli user list --json"
|
|
5760
|
+
}
|
|
5761
|
+
],
|
|
5762
|
+
"flags": {
|
|
5916
5763
|
"raw": {
|
|
5917
5764
|
"char": "r",
|
|
5918
5765
|
"description": "output raw json",
|
|
@@ -6027,7 +5874,7 @@
|
|
|
6027
5874
|
},
|
|
6028
5875
|
"hasDynamicHelp": false,
|
|
6029
5876
|
"hiddenAliases": [],
|
|
6030
|
-
"id": "
|
|
5877
|
+
"id": "user:list",
|
|
6031
5878
|
"pluginAlias": "@catafal/notion-cli",
|
|
6032
5879
|
"pluginName": "@catafal/notion-cli",
|
|
6033
5880
|
"pluginType": "core",
|
|
@@ -6037,42 +5884,32 @@
|
|
|
6037
5884
|
"relativePath": [
|
|
6038
5885
|
"dist",
|
|
6039
5886
|
"commands",
|
|
6040
|
-
"
|
|
6041
|
-
"
|
|
5887
|
+
"user",
|
|
5888
|
+
"list.js"
|
|
6042
5889
|
]
|
|
6043
5890
|
},
|
|
6044
|
-
"
|
|
5891
|
+
"user:retrieve": {
|
|
6045
5892
|
"aliases": [
|
|
6046
|
-
"
|
|
5893
|
+
"user:r"
|
|
6047
5894
|
],
|
|
6048
5895
|
"args": {
|
|
6049
|
-
"
|
|
6050
|
-
"
|
|
6051
|
-
"name": "block_id",
|
|
6052
|
-
"required": true
|
|
5896
|
+
"user_id": {
|
|
5897
|
+
"name": "user_id"
|
|
6053
5898
|
}
|
|
6054
5899
|
},
|
|
6055
|
-
"description": "Retrieve
|
|
5900
|
+
"description": "Retrieve a user",
|
|
6056
5901
|
"examples": [
|
|
6057
5902
|
{
|
|
6058
|
-
"description": "Retrieve
|
|
6059
|
-
"command": "$ notion-cli
|
|
6060
|
-
},
|
|
6061
|
-
{
|
|
6062
|
-
"description": "Retrieve block children and output raw json",
|
|
6063
|
-
"command": "$ notion-cli block retrieve:children BLOCK_ID -r"
|
|
6064
|
-
},
|
|
6065
|
-
{
|
|
6066
|
-
"description": "Retrieve block children and output JSON for automation",
|
|
6067
|
-
"command": "$ notion-cli block retrieve:children BLOCK_ID --json"
|
|
5903
|
+
"description": "Retrieve a user",
|
|
5904
|
+
"command": "$ notion-cli user retrieve USER_ID"
|
|
6068
5905
|
},
|
|
6069
5906
|
{
|
|
6070
|
-
"description": "
|
|
6071
|
-
"command": "$ notion-cli
|
|
5907
|
+
"description": "Retrieve a user and output raw json",
|
|
5908
|
+
"command": "$ notion-cli user retrieve USER_ID -r"
|
|
6072
5909
|
},
|
|
6073
5910
|
{
|
|
6074
|
-
"description": "
|
|
6075
|
-
"command": "$ notion-cli
|
|
5911
|
+
"description": "Retrieve a user and output JSON for automation",
|
|
5912
|
+
"command": "$ notion-cli user retrieve USER_ID --json"
|
|
6076
5913
|
}
|
|
6077
5914
|
],
|
|
6078
5915
|
"flags": {
|
|
@@ -6083,13 +5920,6 @@
|
|
|
6083
5920
|
"allowNo": false,
|
|
6084
5921
|
"type": "boolean"
|
|
6085
5922
|
},
|
|
6086
|
-
"show-databases": {
|
|
6087
|
-
"char": "d",
|
|
6088
|
-
"description": "show only child databases with their queryable IDs (data_source_id)",
|
|
6089
|
-
"name": "show-databases",
|
|
6090
|
-
"allowNo": false,
|
|
6091
|
-
"type": "boolean"
|
|
6092
|
-
},
|
|
6093
5923
|
"columns": {
|
|
6094
5924
|
"description": "Only show provided columns (comma-separated)",
|
|
6095
5925
|
"exclusive": [
|
|
@@ -6197,7 +6027,7 @@
|
|
|
6197
6027
|
},
|
|
6198
6028
|
"hasDynamicHelp": false,
|
|
6199
6029
|
"hiddenAliases": [],
|
|
6200
|
-
"id": "
|
|
6030
|
+
"id": "user:retrieve",
|
|
6201
6031
|
"pluginAlias": "@catafal/notion-cli",
|
|
6202
6032
|
"pluginName": "@catafal/notion-cli",
|
|
6203
6033
|
"pluginType": "core",
|
|
@@ -6207,29 +6037,42 @@
|
|
|
6207
6037
|
"relativePath": [
|
|
6208
6038
|
"dist",
|
|
6209
6039
|
"commands",
|
|
6210
|
-
"
|
|
6211
|
-
"retrieve"
|
|
6212
|
-
"children.js"
|
|
6040
|
+
"user",
|
|
6041
|
+
"retrieve.js"
|
|
6213
6042
|
]
|
|
6214
6043
|
},
|
|
6215
|
-
"
|
|
6044
|
+
"block:retrieve:children": {
|
|
6216
6045
|
"aliases": [
|
|
6217
|
-
"
|
|
6046
|
+
"block:r:c"
|
|
6218
6047
|
],
|
|
6219
|
-
"args": {
|
|
6220
|
-
|
|
6048
|
+
"args": {
|
|
6049
|
+
"block_id": {
|
|
6050
|
+
"description": "block_id or page_id",
|
|
6051
|
+
"name": "block_id",
|
|
6052
|
+
"required": true
|
|
6053
|
+
}
|
|
6054
|
+
},
|
|
6055
|
+
"description": "Retrieve block children (supports database discovery via --show-databases)",
|
|
6221
6056
|
"examples": [
|
|
6222
6057
|
{
|
|
6223
|
-
"description": "Retrieve
|
|
6224
|
-
"command": "$ notion-cli
|
|
6058
|
+
"description": "Retrieve block children",
|
|
6059
|
+
"command": "$ notion-cli block retrieve:children BLOCK_ID"
|
|
6225
6060
|
},
|
|
6226
6061
|
{
|
|
6227
|
-
"description": "Retrieve
|
|
6228
|
-
"command": "$ notion-cli
|
|
6062
|
+
"description": "Retrieve block children and output raw json",
|
|
6063
|
+
"command": "$ notion-cli block retrieve:children BLOCK_ID -r"
|
|
6229
6064
|
},
|
|
6230
6065
|
{
|
|
6231
|
-
"description": "Retrieve
|
|
6232
|
-
"command": "$ notion-cli
|
|
6066
|
+
"description": "Retrieve block children and output JSON for automation",
|
|
6067
|
+
"command": "$ notion-cli block retrieve:children BLOCK_ID --json"
|
|
6068
|
+
},
|
|
6069
|
+
{
|
|
6070
|
+
"description": "Discover databases on a page with queryable IDs",
|
|
6071
|
+
"command": "$ notion-cli block retrieve:children PAGE_ID --show-databases"
|
|
6072
|
+
},
|
|
6073
|
+
{
|
|
6074
|
+
"description": "Get databases as JSON for automation",
|
|
6075
|
+
"command": "$ notion-cli block retrieve:children PAGE_ID --show-databases --json"
|
|
6233
6076
|
}
|
|
6234
6077
|
],
|
|
6235
6078
|
"flags": {
|
|
@@ -6240,6 +6083,13 @@
|
|
|
6240
6083
|
"allowNo": false,
|
|
6241
6084
|
"type": "boolean"
|
|
6242
6085
|
},
|
|
6086
|
+
"show-databases": {
|
|
6087
|
+
"char": "d",
|
|
6088
|
+
"description": "show only child databases with their queryable IDs (data_source_id)",
|
|
6089
|
+
"name": "show-databases",
|
|
6090
|
+
"allowNo": false,
|
|
6091
|
+
"type": "boolean"
|
|
6092
|
+
},
|
|
6243
6093
|
"columns": {
|
|
6244
6094
|
"description": "Only show provided columns (comma-separated)",
|
|
6245
6095
|
"exclusive": [
|
|
@@ -6347,7 +6197,7 @@
|
|
|
6347
6197
|
},
|
|
6348
6198
|
"hasDynamicHelp": false,
|
|
6349
6199
|
"hiddenAliases": [],
|
|
6350
|
-
"id": "
|
|
6200
|
+
"id": "block:retrieve:children",
|
|
6351
6201
|
"pluginAlias": "@catafal/notion-cli",
|
|
6352
6202
|
"pluginName": "@catafal/notion-cli",
|
|
6353
6203
|
"pluginType": "core",
|
|
@@ -6357,9 +6207,9 @@
|
|
|
6357
6207
|
"relativePath": [
|
|
6358
6208
|
"dist",
|
|
6359
6209
|
"commands",
|
|
6360
|
-
"
|
|
6210
|
+
"block",
|
|
6361
6211
|
"retrieve",
|
|
6362
|
-
"
|
|
6212
|
+
"children.js"
|
|
6363
6213
|
]
|
|
6364
6214
|
},
|
|
6365
6215
|
"page:retrieve:property_item": {
|
|
@@ -6465,7 +6315,157 @@
|
|
|
6465
6315
|
"retrieve",
|
|
6466
6316
|
"property_item.js"
|
|
6467
6317
|
]
|
|
6318
|
+
},
|
|
6319
|
+
"user:retrieve:bot": {
|
|
6320
|
+
"aliases": [
|
|
6321
|
+
"user:r:b"
|
|
6322
|
+
],
|
|
6323
|
+
"args": {},
|
|
6324
|
+
"description": "Retrieve a bot user",
|
|
6325
|
+
"examples": [
|
|
6326
|
+
{
|
|
6327
|
+
"description": "Retrieve a bot user",
|
|
6328
|
+
"command": "$ notion-cli user retrieve:bot"
|
|
6329
|
+
},
|
|
6330
|
+
{
|
|
6331
|
+
"description": "Retrieve a bot user and output raw json",
|
|
6332
|
+
"command": "$ notion-cli user retrieve:bot -r"
|
|
6333
|
+
},
|
|
6334
|
+
{
|
|
6335
|
+
"description": "Retrieve a bot user and output JSON for automation",
|
|
6336
|
+
"command": "$ notion-cli user retrieve:bot --json"
|
|
6337
|
+
}
|
|
6338
|
+
],
|
|
6339
|
+
"flags": {
|
|
6340
|
+
"raw": {
|
|
6341
|
+
"char": "r",
|
|
6342
|
+
"description": "output raw json",
|
|
6343
|
+
"name": "raw",
|
|
6344
|
+
"allowNo": false,
|
|
6345
|
+
"type": "boolean"
|
|
6346
|
+
},
|
|
6347
|
+
"columns": {
|
|
6348
|
+
"description": "Only show provided columns (comma-separated)",
|
|
6349
|
+
"exclusive": [
|
|
6350
|
+
"extended"
|
|
6351
|
+
],
|
|
6352
|
+
"name": "columns",
|
|
6353
|
+
"hasDynamicHelp": false,
|
|
6354
|
+
"multiple": false,
|
|
6355
|
+
"type": "option"
|
|
6356
|
+
},
|
|
6357
|
+
"sort": {
|
|
6358
|
+
"description": "Property to sort by (prepend with - for descending)",
|
|
6359
|
+
"name": "sort",
|
|
6360
|
+
"hasDynamicHelp": false,
|
|
6361
|
+
"multiple": false,
|
|
6362
|
+
"type": "option"
|
|
6363
|
+
},
|
|
6364
|
+
"filter": {
|
|
6365
|
+
"description": "Filter property by substring match",
|
|
6366
|
+
"name": "filter",
|
|
6367
|
+
"hasDynamicHelp": false,
|
|
6368
|
+
"multiple": false,
|
|
6369
|
+
"type": "option"
|
|
6370
|
+
},
|
|
6371
|
+
"csv": {
|
|
6372
|
+
"description": "Output in CSV format",
|
|
6373
|
+
"exclusive": [
|
|
6374
|
+
"no-truncate"
|
|
6375
|
+
],
|
|
6376
|
+
"name": "csv",
|
|
6377
|
+
"allowNo": false,
|
|
6378
|
+
"type": "boolean"
|
|
6379
|
+
},
|
|
6380
|
+
"extended": {
|
|
6381
|
+
"char": "x",
|
|
6382
|
+
"description": "Show extra columns",
|
|
6383
|
+
"name": "extended",
|
|
6384
|
+
"allowNo": false,
|
|
6385
|
+
"type": "boolean"
|
|
6386
|
+
},
|
|
6387
|
+
"no-truncate": {
|
|
6388
|
+
"description": "Do not truncate output to fit screen",
|
|
6389
|
+
"exclusive": [
|
|
6390
|
+
"csv"
|
|
6391
|
+
],
|
|
6392
|
+
"name": "no-truncate",
|
|
6393
|
+
"allowNo": false,
|
|
6394
|
+
"type": "boolean"
|
|
6395
|
+
},
|
|
6396
|
+
"no-header": {
|
|
6397
|
+
"description": "Hide table header from output",
|
|
6398
|
+
"name": "no-header",
|
|
6399
|
+
"allowNo": false,
|
|
6400
|
+
"type": "boolean"
|
|
6401
|
+
},
|
|
6402
|
+
"json": {
|
|
6403
|
+
"char": "j",
|
|
6404
|
+
"description": "Output as JSON (recommended for automation)",
|
|
6405
|
+
"name": "json",
|
|
6406
|
+
"allowNo": false,
|
|
6407
|
+
"type": "boolean"
|
|
6408
|
+
},
|
|
6409
|
+
"page-size": {
|
|
6410
|
+
"description": "Items per page (1-100, default: 100 for automation)",
|
|
6411
|
+
"name": "page-size",
|
|
6412
|
+
"default": 100,
|
|
6413
|
+
"hasDynamicHelp": false,
|
|
6414
|
+
"multiple": false,
|
|
6415
|
+
"type": "option"
|
|
6416
|
+
},
|
|
6417
|
+
"retry": {
|
|
6418
|
+
"description": "Auto-retry on rate limit (respects Retry-After header)",
|
|
6419
|
+
"name": "retry",
|
|
6420
|
+
"allowNo": false,
|
|
6421
|
+
"type": "boolean"
|
|
6422
|
+
},
|
|
6423
|
+
"timeout": {
|
|
6424
|
+
"description": "Request timeout in milliseconds",
|
|
6425
|
+
"name": "timeout",
|
|
6426
|
+
"default": 30000,
|
|
6427
|
+
"hasDynamicHelp": false,
|
|
6428
|
+
"multiple": false,
|
|
6429
|
+
"type": "option"
|
|
6430
|
+
},
|
|
6431
|
+
"no-cache": {
|
|
6432
|
+
"description": "Bypass cache and force fresh API calls",
|
|
6433
|
+
"name": "no-cache",
|
|
6434
|
+
"allowNo": false,
|
|
6435
|
+
"type": "boolean"
|
|
6436
|
+
},
|
|
6437
|
+
"verbose": {
|
|
6438
|
+
"char": "v",
|
|
6439
|
+
"description": "Enable verbose logging to stderr (retry events, cache stats) - never pollutes stdout",
|
|
6440
|
+
"env": "NOTION_CLI_VERBOSE",
|
|
6441
|
+
"name": "verbose",
|
|
6442
|
+
"allowNo": false,
|
|
6443
|
+
"type": "boolean"
|
|
6444
|
+
},
|
|
6445
|
+
"minimal": {
|
|
6446
|
+
"description": "Strip unnecessary metadata (created_by, last_edited_by, object fields, request_id, etc.) - reduces response size by ~40%",
|
|
6447
|
+
"name": "minimal",
|
|
6448
|
+
"allowNo": false,
|
|
6449
|
+
"type": "boolean"
|
|
6450
|
+
}
|
|
6451
|
+
},
|
|
6452
|
+
"hasDynamicHelp": false,
|
|
6453
|
+
"hiddenAliases": [],
|
|
6454
|
+
"id": "user:retrieve:bot",
|
|
6455
|
+
"pluginAlias": "@catafal/notion-cli",
|
|
6456
|
+
"pluginName": "@catafal/notion-cli",
|
|
6457
|
+
"pluginType": "core",
|
|
6458
|
+
"strict": true,
|
|
6459
|
+
"enableJsonFlag": false,
|
|
6460
|
+
"isESM": false,
|
|
6461
|
+
"relativePath": [
|
|
6462
|
+
"dist",
|
|
6463
|
+
"commands",
|
|
6464
|
+
"user",
|
|
6465
|
+
"retrieve",
|
|
6466
|
+
"bot.js"
|
|
6467
|
+
]
|
|
6468
6468
|
}
|
|
6469
6469
|
},
|
|
6470
|
-
"version": "5.9.
|
|
6470
|
+
"version": "5.9.2"
|
|
6471
6471
|
}
|