@catafal/notion-cli 5.9.1 → 5.9.3
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 +894 -894
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -2586,24 +2586,74 @@
|
|
|
2586
2586
|
"update.js"
|
|
2587
2587
|
]
|
|
2588
2588
|
},
|
|
2589
|
-
"
|
|
2589
|
+
"bookmark:list": {
|
|
2590
2590
|
"aliases": [
|
|
2591
|
-
"
|
|
2592
|
-
"cache:status"
|
|
2591
|
+
"bm:ls"
|
|
2593
2592
|
],
|
|
2594
2593
|
"args": {},
|
|
2595
|
-
"description": "
|
|
2594
|
+
"description": "List all saved bookmarks",
|
|
2596
2595
|
"examples": [
|
|
2597
2596
|
{
|
|
2598
|
-
"description": "
|
|
2599
|
-
"command": "notion-cli
|
|
2600
|
-
},
|
|
2601
|
-
{
|
|
2602
|
-
"description": "Show cache statistics",
|
|
2603
|
-
"command": "notion-cli cache:info"
|
|
2597
|
+
"description": "List bookmarks",
|
|
2598
|
+
"command": "$ notion-cli bookmark list"
|
|
2604
2599
|
}
|
|
2605
2600
|
],
|
|
2606
2601
|
"flags": {
|
|
2602
|
+
"columns": {
|
|
2603
|
+
"description": "Only show provided columns (comma-separated)",
|
|
2604
|
+
"exclusive": [
|
|
2605
|
+
"extended"
|
|
2606
|
+
],
|
|
2607
|
+
"name": "columns",
|
|
2608
|
+
"hasDynamicHelp": false,
|
|
2609
|
+
"multiple": false,
|
|
2610
|
+
"type": "option"
|
|
2611
|
+
},
|
|
2612
|
+
"sort": {
|
|
2613
|
+
"description": "Property to sort by (prepend with - for descending)",
|
|
2614
|
+
"name": "sort",
|
|
2615
|
+
"hasDynamicHelp": false,
|
|
2616
|
+
"multiple": false,
|
|
2617
|
+
"type": "option"
|
|
2618
|
+
},
|
|
2619
|
+
"filter": {
|
|
2620
|
+
"description": "Filter property by substring match",
|
|
2621
|
+
"name": "filter",
|
|
2622
|
+
"hasDynamicHelp": false,
|
|
2623
|
+
"multiple": false,
|
|
2624
|
+
"type": "option"
|
|
2625
|
+
},
|
|
2626
|
+
"csv": {
|
|
2627
|
+
"description": "Output in CSV format",
|
|
2628
|
+
"exclusive": [
|
|
2629
|
+
"no-truncate"
|
|
2630
|
+
],
|
|
2631
|
+
"name": "csv",
|
|
2632
|
+
"allowNo": false,
|
|
2633
|
+
"type": "boolean"
|
|
2634
|
+
},
|
|
2635
|
+
"extended": {
|
|
2636
|
+
"char": "x",
|
|
2637
|
+
"description": "Show extra columns",
|
|
2638
|
+
"name": "extended",
|
|
2639
|
+
"allowNo": false,
|
|
2640
|
+
"type": "boolean"
|
|
2641
|
+
},
|
|
2642
|
+
"no-truncate": {
|
|
2643
|
+
"description": "Do not truncate output to fit screen",
|
|
2644
|
+
"exclusive": [
|
|
2645
|
+
"csv"
|
|
2646
|
+
],
|
|
2647
|
+
"name": "no-truncate",
|
|
2648
|
+
"allowNo": false,
|
|
2649
|
+
"type": "boolean"
|
|
2650
|
+
},
|
|
2651
|
+
"no-header": {
|
|
2652
|
+
"description": "Hide table header from output",
|
|
2653
|
+
"name": "no-header",
|
|
2654
|
+
"allowNo": false,
|
|
2655
|
+
"type": "boolean"
|
|
2656
|
+
},
|
|
2607
2657
|
"json": {
|
|
2608
2658
|
"char": "j",
|
|
2609
2659
|
"description": "Output as JSON (recommended for automation)",
|
|
@@ -2656,7 +2706,7 @@
|
|
|
2656
2706
|
},
|
|
2657
2707
|
"hasDynamicHelp": false,
|
|
2658
2708
|
"hiddenAliases": [],
|
|
2659
|
-
"id": "
|
|
2709
|
+
"id": "bookmark:list",
|
|
2660
2710
|
"pluginAlias": "@catafal/notion-cli",
|
|
2661
2711
|
"pluginName": "@catafal/notion-cli",
|
|
2662
2712
|
"pluginType": "core",
|
|
@@ -2666,105 +2716,139 @@
|
|
|
2666
2716
|
"relativePath": [
|
|
2667
2717
|
"dist",
|
|
2668
2718
|
"commands",
|
|
2669
|
-
"
|
|
2670
|
-
"
|
|
2719
|
+
"bookmark",
|
|
2720
|
+
"list.js"
|
|
2671
2721
|
]
|
|
2672
2722
|
},
|
|
2673
|
-
"
|
|
2723
|
+
"bookmark:remove": {
|
|
2674
2724
|
"aliases": [
|
|
2675
|
-
"
|
|
2725
|
+
"bm:rm"
|
|
2676
2726
|
],
|
|
2677
2727
|
"args": {
|
|
2678
|
-
"
|
|
2679
|
-
"description": "
|
|
2680
|
-
"name": "
|
|
2728
|
+
"name": {
|
|
2729
|
+
"description": "Bookmark name to remove",
|
|
2730
|
+
"name": "name",
|
|
2681
2731
|
"required": true
|
|
2682
2732
|
}
|
|
2683
2733
|
},
|
|
2684
|
-
"description": "
|
|
2734
|
+
"description": "Remove a saved bookmark",
|
|
2685
2735
|
"examples": [
|
|
2686
2736
|
{
|
|
2687
|
-
"description": "
|
|
2688
|
-
"command": "$ notion-cli
|
|
2689
|
-
},
|
|
2690
|
-
{
|
|
2691
|
-
"description": "Create a database using page URL",
|
|
2692
|
-
"command": "$ notion-cli db create https://notion.so/PAGE_ID -t 'My Database'"
|
|
2693
|
-
},
|
|
2694
|
-
{
|
|
2695
|
-
"description": "Create a database with an initial data source and output raw json",
|
|
2696
|
-
"command": "$ notion-cli db create PAGE_ID -t 'My Database' -r"
|
|
2737
|
+
"description": "Remove a bookmark",
|
|
2738
|
+
"command": "$ notion-cli bookmark remove inbox"
|
|
2697
2739
|
}
|
|
2698
2740
|
],
|
|
2699
2741
|
"flags": {
|
|
2700
|
-
"
|
|
2701
|
-
"char": "
|
|
2702
|
-
"description": "
|
|
2703
|
-
"name": "
|
|
2704
|
-
"required": true,
|
|
2705
|
-
"hasDynamicHelp": false,
|
|
2706
|
-
"multiple": false,
|
|
2707
|
-
"type": "option"
|
|
2708
|
-
},
|
|
2709
|
-
"raw": {
|
|
2710
|
-
"char": "r",
|
|
2711
|
-
"description": "output raw json",
|
|
2712
|
-
"name": "raw",
|
|
2742
|
+
"json": {
|
|
2743
|
+
"char": "j",
|
|
2744
|
+
"description": "Output as JSON (recommended for automation)",
|
|
2745
|
+
"name": "json",
|
|
2713
2746
|
"allowNo": false,
|
|
2714
2747
|
"type": "boolean"
|
|
2715
2748
|
},
|
|
2716
|
-
"
|
|
2717
|
-
"description": "
|
|
2718
|
-
"
|
|
2719
|
-
|
|
2720
|
-
],
|
|
2721
|
-
"name": "columns",
|
|
2749
|
+
"page-size": {
|
|
2750
|
+
"description": "Items per page (1-100, default: 100 for automation)",
|
|
2751
|
+
"name": "page-size",
|
|
2752
|
+
"default": 100,
|
|
2722
2753
|
"hasDynamicHelp": false,
|
|
2723
2754
|
"multiple": false,
|
|
2724
2755
|
"type": "option"
|
|
2725
2756
|
},
|
|
2726
|
-
"
|
|
2727
|
-
"description": "
|
|
2728
|
-
"name": "
|
|
2729
|
-
"
|
|
2730
|
-
"
|
|
2731
|
-
"type": "option"
|
|
2757
|
+
"retry": {
|
|
2758
|
+
"description": "Auto-retry on rate limit (respects Retry-After header)",
|
|
2759
|
+
"name": "retry",
|
|
2760
|
+
"allowNo": false,
|
|
2761
|
+
"type": "boolean"
|
|
2732
2762
|
},
|
|
2733
|
-
"
|
|
2734
|
-
"description": "
|
|
2735
|
-
"name": "
|
|
2763
|
+
"timeout": {
|
|
2764
|
+
"description": "Request timeout in milliseconds",
|
|
2765
|
+
"name": "timeout",
|
|
2766
|
+
"default": 30000,
|
|
2736
2767
|
"hasDynamicHelp": false,
|
|
2737
2768
|
"multiple": false,
|
|
2738
2769
|
"type": "option"
|
|
2739
2770
|
},
|
|
2740
|
-
"
|
|
2741
|
-
"description": "
|
|
2742
|
-
"
|
|
2743
|
-
"no-truncate"
|
|
2744
|
-
],
|
|
2745
|
-
"name": "csv",
|
|
2771
|
+
"no-cache": {
|
|
2772
|
+
"description": "Bypass cache and force fresh API calls",
|
|
2773
|
+
"name": "no-cache",
|
|
2746
2774
|
"allowNo": false,
|
|
2747
2775
|
"type": "boolean"
|
|
2748
2776
|
},
|
|
2749
|
-
"
|
|
2750
|
-
"char": "
|
|
2751
|
-
"description": "
|
|
2752
|
-
"
|
|
2777
|
+
"verbose": {
|
|
2778
|
+
"char": "v",
|
|
2779
|
+
"description": "Enable verbose logging to stderr (retry events, cache stats) - never pollutes stdout",
|
|
2780
|
+
"env": "NOTION_CLI_VERBOSE",
|
|
2781
|
+
"name": "verbose",
|
|
2753
2782
|
"allowNo": false,
|
|
2754
2783
|
"type": "boolean"
|
|
2755
2784
|
},
|
|
2756
|
-
"
|
|
2757
|
-
"description": "
|
|
2758
|
-
"
|
|
2759
|
-
"csv"
|
|
2760
|
-
],
|
|
2761
|
-
"name": "no-truncate",
|
|
2785
|
+
"minimal": {
|
|
2786
|
+
"description": "Strip unnecessary metadata (created_by, last_edited_by, object fields, request_id, etc.) - reduces response size by ~40%",
|
|
2787
|
+
"name": "minimal",
|
|
2762
2788
|
"allowNo": false,
|
|
2763
2789
|
"type": "boolean"
|
|
2790
|
+
}
|
|
2791
|
+
},
|
|
2792
|
+
"hasDynamicHelp": false,
|
|
2793
|
+
"hiddenAliases": [],
|
|
2794
|
+
"id": "bookmark:remove",
|
|
2795
|
+
"pluginAlias": "@catafal/notion-cli",
|
|
2796
|
+
"pluginName": "@catafal/notion-cli",
|
|
2797
|
+
"pluginType": "core",
|
|
2798
|
+
"strict": true,
|
|
2799
|
+
"enableJsonFlag": false,
|
|
2800
|
+
"isESM": false,
|
|
2801
|
+
"relativePath": [
|
|
2802
|
+
"dist",
|
|
2803
|
+
"commands",
|
|
2804
|
+
"bookmark",
|
|
2805
|
+
"remove.js"
|
|
2806
|
+
]
|
|
2807
|
+
},
|
|
2808
|
+
"bookmark:set": {
|
|
2809
|
+
"aliases": [
|
|
2810
|
+
"bm:set"
|
|
2811
|
+
],
|
|
2812
|
+
"args": {
|
|
2813
|
+
"name": {
|
|
2814
|
+
"description": "Bookmark name (e.g. \"inbox\", \"tasks\")",
|
|
2815
|
+
"name": "name",
|
|
2816
|
+
"required": true
|
|
2764
2817
|
},
|
|
2765
|
-
"
|
|
2766
|
-
"description": "
|
|
2767
|
-
"name": "
|
|
2818
|
+
"target": {
|
|
2819
|
+
"description": "Notion ID, URL, or database name",
|
|
2820
|
+
"name": "target",
|
|
2821
|
+
"required": true
|
|
2822
|
+
}
|
|
2823
|
+
},
|
|
2824
|
+
"description": "Save a named shortcut to a Notion page or database",
|
|
2825
|
+
"examples": [
|
|
2826
|
+
{
|
|
2827
|
+
"description": "Bookmark a database as \"inbox\" and set it as default",
|
|
2828
|
+
"command": "$ notion-cli bookmark set inbox DB_ID_OR_URL --default"
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
"description": "Bookmark a page",
|
|
2832
|
+
"command": "$ notion-cli bookmark set notes PAGE_URL --type page"
|
|
2833
|
+
}
|
|
2834
|
+
],
|
|
2835
|
+
"flags": {
|
|
2836
|
+
"type": {
|
|
2837
|
+
"char": "t",
|
|
2838
|
+
"description": "Resource type",
|
|
2839
|
+
"name": "type",
|
|
2840
|
+
"default": "database",
|
|
2841
|
+
"hasDynamicHelp": false,
|
|
2842
|
+
"multiple": false,
|
|
2843
|
+
"options": [
|
|
2844
|
+
"database",
|
|
2845
|
+
"page"
|
|
2846
|
+
],
|
|
2847
|
+
"type": "option"
|
|
2848
|
+
},
|
|
2849
|
+
"default": {
|
|
2850
|
+
"description": "Also set as the default bookmark (used by `quick` command)",
|
|
2851
|
+
"name": "default",
|
|
2768
2852
|
"allowNo": false,
|
|
2769
2853
|
"type": "boolean"
|
|
2770
2854
|
},
|
|
@@ -2820,7 +2904,7 @@
|
|
|
2820
2904
|
},
|
|
2821
2905
|
"hasDynamicHelp": false,
|
|
2822
2906
|
"hiddenAliases": [],
|
|
2823
|
-
"id": "
|
|
2907
|
+
"id": "bookmark:set",
|
|
2824
2908
|
"pluginAlias": "@catafal/notion-cli",
|
|
2825
2909
|
"pluginName": "@catafal/notion-cli",
|
|
2826
2910
|
"pluginType": "core",
|
|
@@ -2830,442 +2914,28 @@
|
|
|
2830
2914
|
"relativePath": [
|
|
2831
2915
|
"dist",
|
|
2832
2916
|
"commands",
|
|
2833
|
-
"
|
|
2834
|
-
"
|
|
2917
|
+
"bookmark",
|
|
2918
|
+
"set.js"
|
|
2835
2919
|
]
|
|
2836
2920
|
},
|
|
2837
|
-
"
|
|
2921
|
+
"cache:info": {
|
|
2838
2922
|
"aliases": [
|
|
2839
|
-
"
|
|
2923
|
+
"cache:stats",
|
|
2924
|
+
"cache:status"
|
|
2840
2925
|
],
|
|
2841
|
-
"args": {
|
|
2842
|
-
|
|
2843
|
-
"description": "Database or data source ID or URL (required for automation)",
|
|
2844
|
-
"name": "database_id",
|
|
2845
|
-
"required": true
|
|
2846
|
-
}
|
|
2847
|
-
},
|
|
2848
|
-
"description": "Query a database",
|
|
2849
|
-
"examples": [
|
|
2850
|
-
{
|
|
2851
|
-
"description": "Query a database with full data (recommended for AI assistants)",
|
|
2852
|
-
"command": "$ notion-cli db query DATABASE_ID --raw"
|
|
2853
|
-
},
|
|
2854
|
-
{
|
|
2855
|
-
"description": "Query all records as JSON",
|
|
2856
|
-
"command": "$ notion-cli db query DATABASE_ID --json"
|
|
2857
|
-
},
|
|
2858
|
-
{
|
|
2859
|
-
"description": "Filter with JSON object (recommended for AI agents)",
|
|
2860
|
-
"command": "$ notion-cli db query DATABASE_ID --filter '{\"property\": \"Status\", \"select\": {\"equals\": \"Done\"}}' --json"
|
|
2861
|
-
},
|
|
2862
|
-
{
|
|
2863
|
-
"description": "Simple text search across properties",
|
|
2864
|
-
"command": "$ notion-cli db query DATABASE_ID --search \"urgent\" --json"
|
|
2865
|
-
},
|
|
2866
|
-
{
|
|
2867
|
-
"description": "Load complex filter from file",
|
|
2868
|
-
"command": "$ notion-cli db query DATABASE_ID --file-filter ./filter.json --json"
|
|
2869
|
-
},
|
|
2870
|
-
{
|
|
2871
|
-
"description": "Query with AND filter",
|
|
2872
|
-
"command": "$ notion-cli db query DATABASE_ID --filter '{\"and\": [{\"property\": \"Status\", \"select\": {\"equals\": \"Done\"}}, {\"property\": \"Priority\", \"number\": {\"greater_than\": 5}}]}' --json"
|
|
2873
|
-
},
|
|
2874
|
-
{
|
|
2875
|
-
"description": "Query using database URL",
|
|
2876
|
-
"command": "$ notion-cli db query https://notion.so/DATABASE_ID --json"
|
|
2877
|
-
},
|
|
2878
|
-
{
|
|
2879
|
-
"description": "Query with sorting",
|
|
2880
|
-
"command": "$ notion-cli db query DATABASE_ID --sort-property Name --sort-direction desc"
|
|
2881
|
-
},
|
|
2882
|
-
{
|
|
2883
|
-
"description": "Query with pagination",
|
|
2884
|
-
"command": "$ notion-cli db query DATABASE_ID --page-size 50"
|
|
2885
|
-
},
|
|
2886
|
-
{
|
|
2887
|
-
"description": "Get all pages (bypass pagination)",
|
|
2888
|
-
"command": "$ notion-cli db query DATABASE_ID --page-all"
|
|
2889
|
-
},
|
|
2890
|
-
{
|
|
2891
|
-
"description": "Output as CSV",
|
|
2892
|
-
"command": "$ notion-cli db query DATABASE_ID --csv"
|
|
2893
|
-
},
|
|
2894
|
-
{
|
|
2895
|
-
"description": "Output as markdown table",
|
|
2896
|
-
"command": "$ notion-cli db query DATABASE_ID --markdown"
|
|
2897
|
-
},
|
|
2898
|
-
{
|
|
2899
|
-
"description": "Output as compact JSON",
|
|
2900
|
-
"command": "$ notion-cli db query DATABASE_ID --compact-json"
|
|
2901
|
-
},
|
|
2902
|
-
{
|
|
2903
|
-
"description": "Output as pretty table",
|
|
2904
|
-
"command": "$ notion-cli db query DATABASE_ID --pretty"
|
|
2905
|
-
},
|
|
2906
|
-
{
|
|
2907
|
-
"description": "Select specific properties (60-80% token reduction)",
|
|
2908
|
-
"command": "$ notion-cli db query DATABASE_ID --select \"title,status,priority\" --json"
|
|
2909
|
-
}
|
|
2910
|
-
],
|
|
2911
|
-
"flags": {
|
|
2912
|
-
"page-size": {
|
|
2913
|
-
"description": "Items per page (1-100, default: 100 for automation)",
|
|
2914
|
-
"name": "page-size",
|
|
2915
|
-
"default": 100,
|
|
2916
|
-
"hasDynamicHelp": false,
|
|
2917
|
-
"multiple": false,
|
|
2918
|
-
"type": "option"
|
|
2919
|
-
},
|
|
2920
|
-
"page-all": {
|
|
2921
|
-
"char": "A",
|
|
2922
|
-
"description": "Get all pages (bypass pagination)",
|
|
2923
|
-
"name": "page-all",
|
|
2924
|
-
"allowNo": false,
|
|
2925
|
-
"type": "boolean"
|
|
2926
|
-
},
|
|
2927
|
-
"sort-property": {
|
|
2928
|
-
"description": "The property to sort results by",
|
|
2929
|
-
"name": "sort-property",
|
|
2930
|
-
"hasDynamicHelp": false,
|
|
2931
|
-
"multiple": false,
|
|
2932
|
-
"type": "option"
|
|
2933
|
-
},
|
|
2934
|
-
"sort-direction": {
|
|
2935
|
-
"description": "The direction to sort results",
|
|
2936
|
-
"name": "sort-direction",
|
|
2937
|
-
"default": "asc",
|
|
2938
|
-
"hasDynamicHelp": false,
|
|
2939
|
-
"multiple": false,
|
|
2940
|
-
"options": [
|
|
2941
|
-
"asc",
|
|
2942
|
-
"desc"
|
|
2943
|
-
],
|
|
2944
|
-
"type": "option"
|
|
2945
|
-
},
|
|
2946
|
-
"raw": {
|
|
2947
|
-
"char": "r",
|
|
2948
|
-
"description": "Output raw JSON (recommended for AI assistants - returns all page data)",
|
|
2949
|
-
"name": "raw",
|
|
2950
|
-
"allowNo": false,
|
|
2951
|
-
"type": "boolean"
|
|
2952
|
-
},
|
|
2953
|
-
"columns": {
|
|
2954
|
-
"description": "Only show provided columns (comma-separated)",
|
|
2955
|
-
"exclusive": [
|
|
2956
|
-
"extended"
|
|
2957
|
-
],
|
|
2958
|
-
"name": "columns",
|
|
2959
|
-
"hasDynamicHelp": false,
|
|
2960
|
-
"multiple": false,
|
|
2961
|
-
"type": "option"
|
|
2962
|
-
},
|
|
2963
|
-
"sort": {
|
|
2964
|
-
"description": "Property to sort by (prepend with - for descending)",
|
|
2965
|
-
"name": "sort",
|
|
2966
|
-
"hasDynamicHelp": false,
|
|
2967
|
-
"multiple": false,
|
|
2968
|
-
"type": "option"
|
|
2969
|
-
},
|
|
2970
|
-
"filter": {
|
|
2971
|
-
"char": "f",
|
|
2972
|
-
"description": "Filter as JSON object (Notion filter API format)",
|
|
2973
|
-
"exclusive": [
|
|
2974
|
-
"search",
|
|
2975
|
-
"file-filter",
|
|
2976
|
-
"rawFilter",
|
|
2977
|
-
"fileFilter"
|
|
2978
|
-
],
|
|
2979
|
-
"name": "filter",
|
|
2980
|
-
"hasDynamicHelp": false,
|
|
2981
|
-
"multiple": false,
|
|
2982
|
-
"type": "option"
|
|
2983
|
-
},
|
|
2984
|
-
"csv": {
|
|
2985
|
-
"description": "Output in CSV format",
|
|
2986
|
-
"exclusive": [
|
|
2987
|
-
"no-truncate"
|
|
2988
|
-
],
|
|
2989
|
-
"name": "csv",
|
|
2990
|
-
"allowNo": false,
|
|
2991
|
-
"type": "boolean"
|
|
2992
|
-
},
|
|
2993
|
-
"extended": {
|
|
2994
|
-
"char": "x",
|
|
2995
|
-
"description": "Show extra columns",
|
|
2996
|
-
"name": "extended",
|
|
2997
|
-
"allowNo": false,
|
|
2998
|
-
"type": "boolean"
|
|
2999
|
-
},
|
|
3000
|
-
"no-truncate": {
|
|
3001
|
-
"description": "Do not truncate output to fit screen",
|
|
3002
|
-
"exclusive": [
|
|
3003
|
-
"csv"
|
|
3004
|
-
],
|
|
3005
|
-
"name": "no-truncate",
|
|
3006
|
-
"allowNo": false,
|
|
3007
|
-
"type": "boolean"
|
|
3008
|
-
},
|
|
3009
|
-
"no-header": {
|
|
3010
|
-
"description": "Hide table header from output",
|
|
3011
|
-
"name": "no-header",
|
|
3012
|
-
"allowNo": false,
|
|
3013
|
-
"type": "boolean"
|
|
3014
|
-
},
|
|
3015
|
-
"json": {
|
|
3016
|
-
"char": "j",
|
|
3017
|
-
"description": "Output as JSON (recommended for automation)",
|
|
3018
|
-
"name": "json",
|
|
3019
|
-
"allowNo": false,
|
|
3020
|
-
"type": "boolean"
|
|
3021
|
-
},
|
|
3022
|
-
"retry": {
|
|
3023
|
-
"description": "Auto-retry on rate limit (respects Retry-After header)",
|
|
3024
|
-
"name": "retry",
|
|
3025
|
-
"allowNo": false,
|
|
3026
|
-
"type": "boolean"
|
|
3027
|
-
},
|
|
3028
|
-
"timeout": {
|
|
3029
|
-
"description": "Request timeout in milliseconds",
|
|
3030
|
-
"name": "timeout",
|
|
3031
|
-
"default": 30000,
|
|
3032
|
-
"hasDynamicHelp": false,
|
|
3033
|
-
"multiple": false,
|
|
3034
|
-
"type": "option"
|
|
3035
|
-
},
|
|
3036
|
-
"no-cache": {
|
|
3037
|
-
"description": "Bypass cache and force fresh API calls",
|
|
3038
|
-
"name": "no-cache",
|
|
3039
|
-
"allowNo": false,
|
|
3040
|
-
"type": "boolean"
|
|
3041
|
-
},
|
|
3042
|
-
"verbose": {
|
|
3043
|
-
"char": "v",
|
|
3044
|
-
"description": "Enable verbose logging to stderr (retry events, cache stats) - never pollutes stdout",
|
|
3045
|
-
"env": "NOTION_CLI_VERBOSE",
|
|
3046
|
-
"name": "verbose",
|
|
3047
|
-
"allowNo": false,
|
|
3048
|
-
"type": "boolean"
|
|
3049
|
-
},
|
|
3050
|
-
"minimal": {
|
|
3051
|
-
"description": "Strip unnecessary metadata (created_by, last_edited_by, object fields, request_id, etc.) - reduces response size by ~40%",
|
|
3052
|
-
"name": "minimal",
|
|
3053
|
-
"allowNo": false,
|
|
3054
|
-
"type": "boolean"
|
|
3055
|
-
},
|
|
3056
|
-
"markdown": {
|
|
3057
|
-
"char": "m",
|
|
3058
|
-
"description": "Output as markdown table (GitHub-flavored)",
|
|
3059
|
-
"exclusive": [
|
|
3060
|
-
"compact-json",
|
|
3061
|
-
"pretty"
|
|
3062
|
-
],
|
|
3063
|
-
"name": "markdown",
|
|
3064
|
-
"allowNo": false,
|
|
3065
|
-
"type": "boolean"
|
|
3066
|
-
},
|
|
3067
|
-
"compact-json": {
|
|
3068
|
-
"char": "c",
|
|
3069
|
-
"description": "Output as compact JSON (single-line, ideal for piping)",
|
|
3070
|
-
"exclusive": [
|
|
3071
|
-
"markdown",
|
|
3072
|
-
"pretty"
|
|
3073
|
-
],
|
|
3074
|
-
"name": "compact-json",
|
|
3075
|
-
"allowNo": false,
|
|
3076
|
-
"type": "boolean"
|
|
3077
|
-
},
|
|
3078
|
-
"pretty": {
|
|
3079
|
-
"char": "P",
|
|
3080
|
-
"description": "Output as pretty table with borders",
|
|
3081
|
-
"exclusive": [
|
|
3082
|
-
"markdown",
|
|
3083
|
-
"compact-json"
|
|
3084
|
-
],
|
|
3085
|
-
"name": "pretty",
|
|
3086
|
-
"allowNo": false,
|
|
3087
|
-
"type": "boolean"
|
|
3088
|
-
},
|
|
3089
|
-
"file-filter": {
|
|
3090
|
-
"char": "F",
|
|
3091
|
-
"description": "Load filter from JSON file",
|
|
3092
|
-
"exclusive": [
|
|
3093
|
-
"filter",
|
|
3094
|
-
"search",
|
|
3095
|
-
"rawFilter",
|
|
3096
|
-
"fileFilter"
|
|
3097
|
-
],
|
|
3098
|
-
"name": "file-filter",
|
|
3099
|
-
"hasDynamicHelp": false,
|
|
3100
|
-
"multiple": false,
|
|
3101
|
-
"type": "option"
|
|
3102
|
-
},
|
|
3103
|
-
"search": {
|
|
3104
|
-
"char": "s",
|
|
3105
|
-
"description": "Simple text search (searches across title and common text properties)",
|
|
3106
|
-
"exclusive": [
|
|
3107
|
-
"filter",
|
|
3108
|
-
"file-filter",
|
|
3109
|
-
"rawFilter",
|
|
3110
|
-
"fileFilter"
|
|
3111
|
-
],
|
|
3112
|
-
"name": "search",
|
|
3113
|
-
"hasDynamicHelp": false,
|
|
3114
|
-
"multiple": false,
|
|
3115
|
-
"type": "option"
|
|
3116
|
-
},
|
|
3117
|
-
"select": {
|
|
3118
|
-
"description": "Select specific properties to return (comma-separated). Reduces token usage by 60-80%.",
|
|
3119
|
-
"name": "select",
|
|
3120
|
-
"hasDynamicHelp": false,
|
|
3121
|
-
"multiple": false,
|
|
3122
|
-
"type": "option"
|
|
3123
|
-
},
|
|
3124
|
-
"rawFilter": {
|
|
3125
|
-
"char": "a",
|
|
3126
|
-
"description": "DEPRECATED: Use --filter instead. JSON stringified filter string",
|
|
3127
|
-
"exclusive": [
|
|
3128
|
-
"filter",
|
|
3129
|
-
"search",
|
|
3130
|
-
"file-filter",
|
|
3131
|
-
"fileFilter"
|
|
3132
|
-
],
|
|
3133
|
-
"hidden": true,
|
|
3134
|
-
"name": "rawFilter",
|
|
3135
|
-
"hasDynamicHelp": false,
|
|
3136
|
-
"multiple": false,
|
|
3137
|
-
"type": "option"
|
|
3138
|
-
},
|
|
3139
|
-
"fileFilter": {
|
|
3140
|
-
"description": "DEPRECATED: Use --file-filter instead. JSON filter file path",
|
|
3141
|
-
"exclusive": [
|
|
3142
|
-
"filter",
|
|
3143
|
-
"search",
|
|
3144
|
-
"file-filter",
|
|
3145
|
-
"rawFilter"
|
|
3146
|
-
],
|
|
3147
|
-
"hidden": true,
|
|
3148
|
-
"name": "fileFilter",
|
|
3149
|
-
"hasDynamicHelp": false,
|
|
3150
|
-
"multiple": false,
|
|
3151
|
-
"type": "option"
|
|
3152
|
-
}
|
|
3153
|
-
},
|
|
3154
|
-
"hasDynamicHelp": false,
|
|
3155
|
-
"hiddenAliases": [],
|
|
3156
|
-
"id": "db:query",
|
|
3157
|
-
"pluginAlias": "@catafal/notion-cli",
|
|
3158
|
-
"pluginName": "@catafal/notion-cli",
|
|
3159
|
-
"pluginType": "core",
|
|
3160
|
-
"strict": true,
|
|
3161
|
-
"enableJsonFlag": false,
|
|
3162
|
-
"isESM": false,
|
|
3163
|
-
"relativePath": [
|
|
3164
|
-
"dist",
|
|
3165
|
-
"commands",
|
|
3166
|
-
"db",
|
|
3167
|
-
"query.js"
|
|
3168
|
-
]
|
|
3169
|
-
},
|
|
3170
|
-
"db:retrieve": {
|
|
3171
|
-
"aliases": [
|
|
3172
|
-
"db:r",
|
|
3173
|
-
"ds:retrieve",
|
|
3174
|
-
"ds:r"
|
|
3175
|
-
],
|
|
3176
|
-
"args": {
|
|
3177
|
-
"database_id": {
|
|
3178
|
-
"description": "Data source ID or URL (the ID of the table whose schema you want to retrieve)",
|
|
3179
|
-
"name": "database_id",
|
|
3180
|
-
"required": true
|
|
3181
|
-
}
|
|
3182
|
-
},
|
|
3183
|
-
"description": "Retrieve a data source (table) schema and properties",
|
|
2926
|
+
"args": {},
|
|
2927
|
+
"description": "Show cache statistics and configuration",
|
|
3184
2928
|
"examples": [
|
|
3185
2929
|
{
|
|
3186
|
-
"description": "
|
|
3187
|
-
"command": "notion-cli
|
|
3188
|
-
},
|
|
3189
|
-
{
|
|
3190
|
-
"description": "Retrieve a data source schema via data_source_id",
|
|
3191
|
-
"command": "notion-cli db retrieve DATA_SOURCE_ID"
|
|
3192
|
-
},
|
|
3193
|
-
{
|
|
3194
|
-
"description": "Retrieve a data source via URL",
|
|
3195
|
-
"command": "notion-cli db retrieve https://notion.so/DATABASE_ID"
|
|
3196
|
-
},
|
|
3197
|
-
{
|
|
3198
|
-
"description": "Retrieve a data source and output as markdown table",
|
|
3199
|
-
"command": "notion-cli db retrieve DATA_SOURCE_ID --markdown"
|
|
2930
|
+
"description": "Show cache info in JSON format",
|
|
2931
|
+
"command": "notion-cli cache:info --json"
|
|
3200
2932
|
},
|
|
3201
2933
|
{
|
|
3202
|
-
"description": "
|
|
3203
|
-
"command": "notion-cli
|
|
2934
|
+
"description": "Show cache statistics",
|
|
2935
|
+
"command": "notion-cli cache:info"
|
|
3204
2936
|
}
|
|
3205
2937
|
],
|
|
3206
2938
|
"flags": {
|
|
3207
|
-
"raw": {
|
|
3208
|
-
"char": "r",
|
|
3209
|
-
"description": "output raw json (recommended for AI assistants - returns full schema)",
|
|
3210
|
-
"name": "raw",
|
|
3211
|
-
"allowNo": false,
|
|
3212
|
-
"type": "boolean"
|
|
3213
|
-
},
|
|
3214
|
-
"columns": {
|
|
3215
|
-
"description": "Only show provided columns (comma-separated)",
|
|
3216
|
-
"exclusive": [
|
|
3217
|
-
"extended"
|
|
3218
|
-
],
|
|
3219
|
-
"name": "columns",
|
|
3220
|
-
"hasDynamicHelp": false,
|
|
3221
|
-
"multiple": false,
|
|
3222
|
-
"type": "option"
|
|
3223
|
-
},
|
|
3224
|
-
"sort": {
|
|
3225
|
-
"description": "Property to sort by (prepend with - for descending)",
|
|
3226
|
-
"name": "sort",
|
|
3227
|
-
"hasDynamicHelp": false,
|
|
3228
|
-
"multiple": false,
|
|
3229
|
-
"type": "option"
|
|
3230
|
-
},
|
|
3231
|
-
"filter": {
|
|
3232
|
-
"description": "Filter property by substring match",
|
|
3233
|
-
"name": "filter",
|
|
3234
|
-
"hasDynamicHelp": false,
|
|
3235
|
-
"multiple": false,
|
|
3236
|
-
"type": "option"
|
|
3237
|
-
},
|
|
3238
|
-
"csv": {
|
|
3239
|
-
"description": "Output in CSV format",
|
|
3240
|
-
"exclusive": [
|
|
3241
|
-
"no-truncate"
|
|
3242
|
-
],
|
|
3243
|
-
"name": "csv",
|
|
3244
|
-
"allowNo": false,
|
|
3245
|
-
"type": "boolean"
|
|
3246
|
-
},
|
|
3247
|
-
"extended": {
|
|
3248
|
-
"char": "x",
|
|
3249
|
-
"description": "Show extra columns",
|
|
3250
|
-
"name": "extended",
|
|
3251
|
-
"allowNo": false,
|
|
3252
|
-
"type": "boolean"
|
|
3253
|
-
},
|
|
3254
|
-
"no-truncate": {
|
|
3255
|
-
"description": "Do not truncate output to fit screen",
|
|
3256
|
-
"exclusive": [
|
|
3257
|
-
"csv"
|
|
3258
|
-
],
|
|
3259
|
-
"name": "no-truncate",
|
|
3260
|
-
"allowNo": false,
|
|
3261
|
-
"type": "boolean"
|
|
3262
|
-
},
|
|
3263
|
-
"no-header": {
|
|
3264
|
-
"description": "Hide table header from output",
|
|
3265
|
-
"name": "no-header",
|
|
3266
|
-
"allowNo": false,
|
|
3267
|
-
"type": "boolean"
|
|
3268
|
-
},
|
|
3269
2939
|
"json": {
|
|
3270
2940
|
"char": "j",
|
|
3271
2941
|
"description": "Output as JSON (recommended for automation)",
|
|
@@ -3314,161 +2984,104 @@
|
|
|
3314
2984
|
"name": "minimal",
|
|
3315
2985
|
"allowNo": false,
|
|
3316
2986
|
"type": "boolean"
|
|
3317
|
-
},
|
|
3318
|
-
"markdown": {
|
|
3319
|
-
"char": "m",
|
|
3320
|
-
"description": "Output as markdown table (GitHub-flavored)",
|
|
3321
|
-
"exclusive": [
|
|
3322
|
-
"compact-json",
|
|
3323
|
-
"pretty"
|
|
3324
|
-
],
|
|
3325
|
-
"name": "markdown",
|
|
3326
|
-
"allowNo": false,
|
|
3327
|
-
"type": "boolean"
|
|
3328
|
-
},
|
|
3329
|
-
"compact-json": {
|
|
3330
|
-
"char": "c",
|
|
3331
|
-
"description": "Output as compact JSON (single-line, ideal for piping)",
|
|
3332
|
-
"exclusive": [
|
|
3333
|
-
"markdown",
|
|
3334
|
-
"pretty"
|
|
3335
|
-
],
|
|
3336
|
-
"name": "compact-json",
|
|
3337
|
-
"allowNo": false,
|
|
3338
|
-
"type": "boolean"
|
|
3339
|
-
},
|
|
3340
|
-
"pretty": {
|
|
3341
|
-
"char": "P",
|
|
3342
|
-
"description": "Output as pretty table with borders",
|
|
3343
|
-
"exclusive": [
|
|
3344
|
-
"markdown",
|
|
3345
|
-
"compact-json"
|
|
3346
|
-
],
|
|
3347
|
-
"name": "pretty",
|
|
3348
|
-
"allowNo": false,
|
|
3349
|
-
"type": "boolean"
|
|
3350
2987
|
}
|
|
3351
2988
|
},
|
|
3352
2989
|
"hasDynamicHelp": false,
|
|
3353
2990
|
"hiddenAliases": [],
|
|
3354
|
-
"id": "
|
|
2991
|
+
"id": "cache:info",
|
|
3355
2992
|
"pluginAlias": "@catafal/notion-cli",
|
|
3356
2993
|
"pluginName": "@catafal/notion-cli",
|
|
3357
2994
|
"pluginType": "core",
|
|
3358
|
-
"strict": true,
|
|
3359
|
-
"enableJsonFlag": false,
|
|
3360
|
-
"isESM": false,
|
|
3361
|
-
"relativePath": [
|
|
3362
|
-
"dist",
|
|
3363
|
-
"commands",
|
|
3364
|
-
"
|
|
3365
|
-
"
|
|
3366
|
-
]
|
|
3367
|
-
},
|
|
3368
|
-
"
|
|
3369
|
-
"aliases": [
|
|
3370
|
-
"
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
"
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
"description": "Extract clean, AI-parseable schema from a Notion data source (table). This command is optimized for AI agents and automation - it returns property names, types, options (for select/multi-select), and configuration in an easy-to-parse format.",
|
|
3382
|
-
"examples": [
|
|
3383
|
-
{
|
|
3384
|
-
"description": "Get full schema in JSON format (recommended for AI agents)",
|
|
3385
|
-
"command": "<%= config.bin %> db schema abc123def456 --output json"
|
|
3386
|
-
},
|
|
3387
|
-
{
|
|
3388
|
-
"description": "Get schema with property payload examples (recommended for AI agents)",
|
|
3389
|
-
"command": "<%= config.bin %> db schema abc123def456 --with-examples --json"
|
|
3390
|
-
},
|
|
3391
|
-
{
|
|
3392
|
-
"description": "Get schema using database URL",
|
|
3393
|
-
"command": "<%= config.bin %> db schema https://notion.so/DATABASE_ID --output json"
|
|
3394
|
-
},
|
|
3395
|
-
{
|
|
3396
|
-
"description": "Get schema as formatted table",
|
|
3397
|
-
"command": "<%= config.bin %> db schema abc123def456"
|
|
3398
|
-
},
|
|
3399
|
-
{
|
|
3400
|
-
"description": "Get schema with examples in human-readable format",
|
|
3401
|
-
"command": "<%= config.bin %> db schema abc123def456 --with-examples"
|
|
3402
|
-
},
|
|
3403
|
-
{
|
|
3404
|
-
"description": "Get schema in YAML format",
|
|
3405
|
-
"command": "<%= config.bin %> db schema abc123def456 --output yaml"
|
|
3406
|
-
},
|
|
3407
|
-
{
|
|
3408
|
-
"description": "Get only specific properties",
|
|
3409
|
-
"command": "<%= config.bin %> db schema abc123def456 --properties Name,Status,Tags --output json"
|
|
3410
|
-
},
|
|
2995
|
+
"strict": true,
|
|
2996
|
+
"enableJsonFlag": false,
|
|
2997
|
+
"isESM": false,
|
|
2998
|
+
"relativePath": [
|
|
2999
|
+
"dist",
|
|
3000
|
+
"commands",
|
|
3001
|
+
"cache",
|
|
3002
|
+
"info.js"
|
|
3003
|
+
]
|
|
3004
|
+
},
|
|
3005
|
+
"daily": {
|
|
3006
|
+
"aliases": [
|
|
3007
|
+
"d"
|
|
3008
|
+
],
|
|
3009
|
+
"args": {
|
|
3010
|
+
"content": {
|
|
3011
|
+
"description": "Text to add to today's entry (appended if entry already exists)",
|
|
3012
|
+
"name": "content",
|
|
3013
|
+
"required": false
|
|
3014
|
+
}
|
|
3015
|
+
},
|
|
3016
|
+
"description": "Create or open today's daily journal entry",
|
|
3017
|
+
"examples": [
|
|
3411
3018
|
{
|
|
3412
|
-
"description": "
|
|
3413
|
-
"command": "
|
|
3019
|
+
"description": "Create today's entry",
|
|
3020
|
+
"command": "$ notion-cli daily"
|
|
3414
3021
|
},
|
|
3415
3022
|
{
|
|
3416
|
-
"description": "
|
|
3417
|
-
"command": "
|
|
3023
|
+
"description": "Create entry with body content",
|
|
3024
|
+
"command": "$ notion-cli daily \"Had a productive standup\""
|
|
3418
3025
|
},
|
|
3419
3026
|
{
|
|
3420
|
-
"description": "
|
|
3421
|
-
"command": "
|
|
3027
|
+
"description": "First-time setup (see `daily setup --help`)",
|
|
3028
|
+
"command": "$ notion-cli daily setup DB_ID"
|
|
3422
3029
|
}
|
|
3423
3030
|
],
|
|
3424
3031
|
"flags": {
|
|
3425
|
-
"
|
|
3426
|
-
"char": "
|
|
3427
|
-
"description": "Output
|
|
3428
|
-
"name": "
|
|
3429
|
-
"
|
|
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,
|
|
3430
3043
|
"hasDynamicHelp": false,
|
|
3431
3044
|
"multiple": false,
|
|
3432
|
-
"options": [
|
|
3433
|
-
"json",
|
|
3434
|
-
"yaml",
|
|
3435
|
-
"table"
|
|
3436
|
-
],
|
|
3437
3045
|
"type": "option"
|
|
3438
3046
|
},
|
|
3439
|
-
"
|
|
3440
|
-
"
|
|
3441
|
-
"
|
|
3442
|
-
"
|
|
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,
|
|
3443
3057
|
"hasDynamicHelp": false,
|
|
3444
3058
|
"multiple": false,
|
|
3445
3059
|
"type": "option"
|
|
3446
3060
|
},
|
|
3447
|
-
"
|
|
3448
|
-
"
|
|
3449
|
-
"
|
|
3450
|
-
"name": "markdown",
|
|
3061
|
+
"no-cache": {
|
|
3062
|
+
"description": "Bypass cache and force fresh API calls",
|
|
3063
|
+
"name": "no-cache",
|
|
3451
3064
|
"allowNo": false,
|
|
3452
3065
|
"type": "boolean"
|
|
3453
3066
|
},
|
|
3454
|
-
"
|
|
3455
|
-
"char": "
|
|
3456
|
-
"description": "
|
|
3457
|
-
"
|
|
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",
|
|
3458
3072
|
"allowNo": false,
|
|
3459
3073
|
"type": "boolean"
|
|
3460
3074
|
},
|
|
3461
|
-
"
|
|
3462
|
-
"
|
|
3463
|
-
"
|
|
3464
|
-
"name": "with-examples",
|
|
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",
|
|
3465
3078
|
"allowNo": false,
|
|
3466
3079
|
"type": "boolean"
|
|
3467
3080
|
}
|
|
3468
3081
|
},
|
|
3469
3082
|
"hasDynamicHelp": false,
|
|
3470
3083
|
"hiddenAliases": [],
|
|
3471
|
-
"id": "
|
|
3084
|
+
"id": "daily",
|
|
3472
3085
|
"pluginAlias": "@catafal/notion-cli",
|
|
3473
3086
|
"pluginName": "@catafal/notion-cli",
|
|
3474
3087
|
"pluginType": "core",
|
|
@@ -3478,110 +3091,131 @@
|
|
|
3478
3091
|
"relativePath": [
|
|
3479
3092
|
"dist",
|
|
3480
3093
|
"commands",
|
|
3481
|
-
"
|
|
3482
|
-
"
|
|
3094
|
+
"daily",
|
|
3095
|
+
"index.js"
|
|
3483
3096
|
]
|
|
3484
3097
|
},
|
|
3485
|
-
"
|
|
3486
|
-
"aliases": [
|
|
3487
|
-
"db:u",
|
|
3488
|
-
"ds:update",
|
|
3489
|
-
"ds:u"
|
|
3490
|
-
],
|
|
3098
|
+
"daily:setup": {
|
|
3099
|
+
"aliases": [],
|
|
3491
3100
|
"args": {
|
|
3492
|
-
"
|
|
3493
|
-
"description": "
|
|
3494
|
-
"name": "
|
|
3495
|
-
"required":
|
|
3101
|
+
"target": {
|
|
3102
|
+
"description": "Existing database ID or URL (manual mode)",
|
|
3103
|
+
"name": "target",
|
|
3104
|
+
"required": false
|
|
3496
3105
|
}
|
|
3497
3106
|
},
|
|
3498
|
-
"description": "
|
|
3107
|
+
"description": "Configure the daily journal command",
|
|
3499
3108
|
"examples": [
|
|
3500
3109
|
{
|
|
3501
|
-
"description": "
|
|
3502
|
-
"command": "$ notion-cli
|
|
3503
|
-
},
|
|
3504
|
-
{
|
|
3505
|
-
"description": "Update a data source via URL",
|
|
3506
|
-
"command": "$ notion-cli db update https://notion.so/DATABASE_ID -t 'My Data Source'"
|
|
3110
|
+
"description": "Point to an existing database (manual)",
|
|
3111
|
+
"command": "$ notion-cli daily setup DB_ID_OR_URL"
|
|
3507
3112
|
},
|
|
3508
3113
|
{
|
|
3509
|
-
"description": "
|
|
3510
|
-
"command": "$ notion-cli
|
|
3114
|
+
"description": "Auto-create a daily journal database",
|
|
3115
|
+
"command": "$ notion-cli daily setup --auto PAGE_ID_OR_URL"
|
|
3511
3116
|
}
|
|
3512
3117
|
],
|
|
3513
3118
|
"flags": {
|
|
3514
|
-
"
|
|
3515
|
-
"
|
|
3516
|
-
"
|
|
3517
|
-
"name": "title",
|
|
3518
|
-
"required": true,
|
|
3119
|
+
"auto": {
|
|
3120
|
+
"description": "Auto-create database under this parent page (pass page ID or URL)",
|
|
3121
|
+
"name": "auto",
|
|
3519
3122
|
"hasDynamicHelp": false,
|
|
3520
3123
|
"multiple": false,
|
|
3521
3124
|
"type": "option"
|
|
3522
3125
|
},
|
|
3523
|
-
"
|
|
3524
|
-
"char": "
|
|
3525
|
-
"description": "
|
|
3526
|
-
"name": "
|
|
3126
|
+
"json": {
|
|
3127
|
+
"char": "j",
|
|
3128
|
+
"description": "Output as JSON (recommended for automation)",
|
|
3129
|
+
"name": "json",
|
|
3527
3130
|
"allowNo": false,
|
|
3528
3131
|
"type": "boolean"
|
|
3529
3132
|
},
|
|
3530
|
-
"
|
|
3531
|
-
"description": "
|
|
3532
|
-
"
|
|
3533
|
-
|
|
3534
|
-
],
|
|
3535
|
-
"name": "columns",
|
|
3133
|
+
"page-size": {
|
|
3134
|
+
"description": "Items per page (1-100, default: 100 for automation)",
|
|
3135
|
+
"name": "page-size",
|
|
3136
|
+
"default": 100,
|
|
3536
3137
|
"hasDynamicHelp": false,
|
|
3537
3138
|
"multiple": false,
|
|
3538
3139
|
"type": "option"
|
|
3539
3140
|
},
|
|
3540
|
-
"
|
|
3541
|
-
"description": "
|
|
3542
|
-
"name": "
|
|
3543
|
-
"
|
|
3544
|
-
"
|
|
3545
|
-
"type": "option"
|
|
3141
|
+
"retry": {
|
|
3142
|
+
"description": "Auto-retry on rate limit (respects Retry-After header)",
|
|
3143
|
+
"name": "retry",
|
|
3144
|
+
"allowNo": false,
|
|
3145
|
+
"type": "boolean"
|
|
3546
3146
|
},
|
|
3547
|
-
"
|
|
3548
|
-
"description": "
|
|
3549
|
-
"name": "
|
|
3147
|
+
"timeout": {
|
|
3148
|
+
"description": "Request timeout in milliseconds",
|
|
3149
|
+
"name": "timeout",
|
|
3150
|
+
"default": 30000,
|
|
3550
3151
|
"hasDynamicHelp": false,
|
|
3551
3152
|
"multiple": false,
|
|
3552
3153
|
"type": "option"
|
|
3553
3154
|
},
|
|
3554
|
-
"
|
|
3555
|
-
"description": "
|
|
3556
|
-
"
|
|
3557
|
-
"no-truncate"
|
|
3558
|
-
],
|
|
3559
|
-
"name": "csv",
|
|
3155
|
+
"no-cache": {
|
|
3156
|
+
"description": "Bypass cache and force fresh API calls",
|
|
3157
|
+
"name": "no-cache",
|
|
3560
3158
|
"allowNo": false,
|
|
3561
3159
|
"type": "boolean"
|
|
3562
3160
|
},
|
|
3563
|
-
"
|
|
3564
|
-
"char": "
|
|
3565
|
-
"description": "
|
|
3566
|
-
"
|
|
3161
|
+
"verbose": {
|
|
3162
|
+
"char": "v",
|
|
3163
|
+
"description": "Enable verbose logging to stderr (retry events, cache stats) - never pollutes stdout",
|
|
3164
|
+
"env": "NOTION_CLI_VERBOSE",
|
|
3165
|
+
"name": "verbose",
|
|
3567
3166
|
"allowNo": false,
|
|
3568
3167
|
"type": "boolean"
|
|
3569
3168
|
},
|
|
3570
|
-
"
|
|
3571
|
-
"description": "
|
|
3572
|
-
"
|
|
3573
|
-
"csv"
|
|
3574
|
-
],
|
|
3575
|
-
"name": "no-truncate",
|
|
3169
|
+
"minimal": {
|
|
3170
|
+
"description": "Strip unnecessary metadata (created_by, last_edited_by, object fields, request_id, etc.) - reduces response size by ~40%",
|
|
3171
|
+
"name": "minimal",
|
|
3576
3172
|
"allowNo": false,
|
|
3577
3173
|
"type": "boolean"
|
|
3174
|
+
}
|
|
3175
|
+
},
|
|
3176
|
+
"hasDynamicHelp": false,
|
|
3177
|
+
"hiddenAliases": [],
|
|
3178
|
+
"id": "daily:setup",
|
|
3179
|
+
"pluginAlias": "@catafal/notion-cli",
|
|
3180
|
+
"pluginName": "@catafal/notion-cli",
|
|
3181
|
+
"pluginType": "core",
|
|
3182
|
+
"strict": true,
|
|
3183
|
+
"enableJsonFlag": false,
|
|
3184
|
+
"isESM": false,
|
|
3185
|
+
"relativePath": [
|
|
3186
|
+
"dist",
|
|
3187
|
+
"commands",
|
|
3188
|
+
"daily",
|
|
3189
|
+
"setup.js"
|
|
3190
|
+
]
|
|
3191
|
+
},
|
|
3192
|
+
"config:set-token": {
|
|
3193
|
+
"aliases": [
|
|
3194
|
+
"config:token"
|
|
3195
|
+
],
|
|
3196
|
+
"args": {
|
|
3197
|
+
"token": {
|
|
3198
|
+
"description": "Notion integration token (starts with secret_ or ntn_)",
|
|
3199
|
+
"name": "token",
|
|
3200
|
+
"required": false
|
|
3201
|
+
}
|
|
3202
|
+
},
|
|
3203
|
+
"description": "Set NOTION_TOKEN in your shell configuration file",
|
|
3204
|
+
"examples": [
|
|
3205
|
+
{
|
|
3206
|
+
"description": "Set Notion token interactively",
|
|
3207
|
+
"command": "notion-cli config set-token"
|
|
3578
3208
|
},
|
|
3579
|
-
|
|
3580
|
-
"description": "
|
|
3581
|
-
"
|
|
3582
|
-
"allowNo": false,
|
|
3583
|
-
"type": "boolean"
|
|
3209
|
+
{
|
|
3210
|
+
"description": "Set Notion token directly",
|
|
3211
|
+
"command": "notion-cli config set-token ntn_abc123..."
|
|
3584
3212
|
},
|
|
3213
|
+
{
|
|
3214
|
+
"description": "Set token with JSON output",
|
|
3215
|
+
"command": "notion-cli config set-token ntn_abc123... --json"
|
|
3216
|
+
}
|
|
3217
|
+
],
|
|
3218
|
+
"flags": {
|
|
3585
3219
|
"json": {
|
|
3586
3220
|
"char": "j",
|
|
3587
3221
|
"description": "Output as JSON (recommended for automation)",
|
|
@@ -3634,7 +3268,7 @@
|
|
|
3634
3268
|
},
|
|
3635
3269
|
"hasDynamicHelp": false,
|
|
3636
3270
|
"hiddenAliases": [],
|
|
3637
|
-
"id": "
|
|
3271
|
+
"id": "config:set-token",
|
|
3638
3272
|
"pluginAlias": "@catafal/notion-cli",
|
|
3639
3273
|
"pluginName": "@catafal/notion-cli",
|
|
3640
3274
|
"pluginType": "core",
|
|
@@ -3644,23 +3278,53 @@
|
|
|
3644
3278
|
"relativePath": [
|
|
3645
3279
|
"dist",
|
|
3646
3280
|
"commands",
|
|
3647
|
-
"
|
|
3648
|
-
"
|
|
3281
|
+
"config",
|
|
3282
|
+
"set-token.js"
|
|
3649
3283
|
]
|
|
3650
3284
|
},
|
|
3651
|
-
"
|
|
3285
|
+
"db:create": {
|
|
3652
3286
|
"aliases": [
|
|
3653
|
-
"
|
|
3287
|
+
"db:c"
|
|
3654
3288
|
],
|
|
3655
|
-
"args": {
|
|
3656
|
-
|
|
3289
|
+
"args": {
|
|
3290
|
+
"page_id": {
|
|
3291
|
+
"description": "Parent page ID or URL where the database will be created",
|
|
3292
|
+
"name": "page_id",
|
|
3293
|
+
"required": true
|
|
3294
|
+
}
|
|
3295
|
+
},
|
|
3296
|
+
"description": "Create a database with an initial data source (table)",
|
|
3657
3297
|
"examples": [
|
|
3658
3298
|
{
|
|
3659
|
-
"description": "
|
|
3660
|
-
"command": "$ notion-cli
|
|
3299
|
+
"description": "Create a database with an initial data source",
|
|
3300
|
+
"command": "$ notion-cli db create PAGE_ID -t 'My Database'"
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
"description": "Create a database using page URL",
|
|
3304
|
+
"command": "$ notion-cli db create https://notion.so/PAGE_ID -t 'My Database'"
|
|
3305
|
+
},
|
|
3306
|
+
{
|
|
3307
|
+
"description": "Create a database with an initial data source and output raw json",
|
|
3308
|
+
"command": "$ notion-cli db create PAGE_ID -t 'My Database' -r"
|
|
3661
3309
|
}
|
|
3662
3310
|
],
|
|
3663
3311
|
"flags": {
|
|
3312
|
+
"title": {
|
|
3313
|
+
"char": "t",
|
|
3314
|
+
"description": "Title for the database (and initial data source)",
|
|
3315
|
+
"name": "title",
|
|
3316
|
+
"required": true,
|
|
3317
|
+
"hasDynamicHelp": false,
|
|
3318
|
+
"multiple": false,
|
|
3319
|
+
"type": "option"
|
|
3320
|
+
},
|
|
3321
|
+
"raw": {
|
|
3322
|
+
"char": "r",
|
|
3323
|
+
"description": "output raw json",
|
|
3324
|
+
"name": "raw",
|
|
3325
|
+
"allowNo": false,
|
|
3326
|
+
"type": "boolean"
|
|
3327
|
+
},
|
|
3664
3328
|
"columns": {
|
|
3665
3329
|
"description": "Only show provided columns (comma-separated)",
|
|
3666
3330
|
"exclusive": [
|
|
@@ -3768,7 +3432,7 @@
|
|
|
3768
3432
|
},
|
|
3769
3433
|
"hasDynamicHelp": false,
|
|
3770
3434
|
"hiddenAliases": [],
|
|
3771
|
-
"id": "
|
|
3435
|
+
"id": "db:create",
|
|
3772
3436
|
"pluginAlias": "@catafal/notion-cli",
|
|
3773
3437
|
"pluginName": "@catafal/notion-cli",
|
|
3774
3438
|
"pluginType": "core",
|
|
@@ -3778,36 +3442,85 @@
|
|
|
3778
3442
|
"relativePath": [
|
|
3779
3443
|
"dist",
|
|
3780
3444
|
"commands",
|
|
3781
|
-
"
|
|
3782
|
-
"
|
|
3445
|
+
"db",
|
|
3446
|
+
"create.js"
|
|
3783
3447
|
]
|
|
3784
3448
|
},
|
|
3785
|
-
"
|
|
3449
|
+
"db:query": {
|
|
3786
3450
|
"aliases": [
|
|
3787
|
-
"
|
|
3451
|
+
"db:q"
|
|
3788
3452
|
],
|
|
3789
3453
|
"args": {
|
|
3790
|
-
"
|
|
3791
|
-
"description": "
|
|
3792
|
-
"name": "
|
|
3454
|
+
"database_id": {
|
|
3455
|
+
"description": "Database or data source ID or URL (required for automation)",
|
|
3456
|
+
"name": "database_id",
|
|
3793
3457
|
"required": true
|
|
3794
3458
|
}
|
|
3795
3459
|
},
|
|
3796
|
-
"description": "
|
|
3460
|
+
"description": "Query a database",
|
|
3797
3461
|
"examples": [
|
|
3798
3462
|
{
|
|
3799
|
-
"description": "
|
|
3800
|
-
"command": "$ notion-cli
|
|
3463
|
+
"description": "Query a database with full data (recommended for AI assistants)",
|
|
3464
|
+
"command": "$ notion-cli db query DATABASE_ID --raw"
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
"description": "Query all records as JSON",
|
|
3468
|
+
"command": "$ notion-cli db query DATABASE_ID --json"
|
|
3469
|
+
},
|
|
3470
|
+
{
|
|
3471
|
+
"description": "Filter with JSON object (recommended for AI agents)",
|
|
3472
|
+
"command": "$ notion-cli db query DATABASE_ID --filter '{\"property\": \"Status\", \"select\": {\"equals\": \"Done\"}}' --json"
|
|
3473
|
+
},
|
|
3474
|
+
{
|
|
3475
|
+
"description": "Simple text search across properties",
|
|
3476
|
+
"command": "$ notion-cli db query DATABASE_ID --search \"urgent\" --json"
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
"description": "Load complex filter from file",
|
|
3480
|
+
"command": "$ notion-cli db query DATABASE_ID --file-filter ./filter.json --json"
|
|
3481
|
+
},
|
|
3482
|
+
{
|
|
3483
|
+
"description": "Query with AND filter",
|
|
3484
|
+
"command": "$ notion-cli db query DATABASE_ID --filter '{\"and\": [{\"property\": \"Status\", \"select\": {\"equals\": \"Done\"}}, {\"property\": \"Priority\", \"number\": {\"greater_than\": 5}}]}' --json"
|
|
3485
|
+
},
|
|
3486
|
+
{
|
|
3487
|
+
"description": "Query using database URL",
|
|
3488
|
+
"command": "$ notion-cli db query https://notion.so/DATABASE_ID --json"
|
|
3489
|
+
},
|
|
3490
|
+
{
|
|
3491
|
+
"description": "Query with sorting",
|
|
3492
|
+
"command": "$ notion-cli db query DATABASE_ID --sort-property Name --sort-direction desc"
|
|
3493
|
+
},
|
|
3494
|
+
{
|
|
3495
|
+
"description": "Query with pagination",
|
|
3496
|
+
"command": "$ notion-cli db query DATABASE_ID --page-size 50"
|
|
3497
|
+
},
|
|
3498
|
+
{
|
|
3499
|
+
"description": "Get all pages (bypass pagination)",
|
|
3500
|
+
"command": "$ notion-cli db query DATABASE_ID --page-all"
|
|
3501
|
+
},
|
|
3502
|
+
{
|
|
3503
|
+
"description": "Output as CSV",
|
|
3504
|
+
"command": "$ notion-cli db query DATABASE_ID --csv"
|
|
3505
|
+
},
|
|
3506
|
+
{
|
|
3507
|
+
"description": "Output as markdown table",
|
|
3508
|
+
"command": "$ notion-cli db query DATABASE_ID --markdown"
|
|
3509
|
+
},
|
|
3510
|
+
{
|
|
3511
|
+
"description": "Output as compact JSON",
|
|
3512
|
+
"command": "$ notion-cli db query DATABASE_ID --compact-json"
|
|
3513
|
+
},
|
|
3514
|
+
{
|
|
3515
|
+
"description": "Output as pretty table",
|
|
3516
|
+
"command": "$ notion-cli db query DATABASE_ID --pretty"
|
|
3517
|
+
},
|
|
3518
|
+
{
|
|
3519
|
+
"description": "Select specific properties (60-80% token reduction)",
|
|
3520
|
+
"command": "$ notion-cli db query DATABASE_ID --select \"title,status,priority\" --json"
|
|
3801
3521
|
}
|
|
3802
3522
|
],
|
|
3803
3523
|
"flags": {
|
|
3804
|
-
"json": {
|
|
3805
|
-
"char": "j",
|
|
3806
|
-
"description": "Output as JSON (recommended for automation)",
|
|
3807
|
-
"name": "json",
|
|
3808
|
-
"allowNo": false,
|
|
3809
|
-
"type": "boolean"
|
|
3810
|
-
},
|
|
3811
3524
|
"page-size": {
|
|
3812
3525
|
"description": "Items per page (1-100, default: 100 for automation)",
|
|
3813
3526
|
"name": "page-size",
|
|
@@ -3816,101 +3529,98 @@
|
|
|
3816
3529
|
"multiple": false,
|
|
3817
3530
|
"type": "option"
|
|
3818
3531
|
},
|
|
3819
|
-
"
|
|
3820
|
-
"
|
|
3821
|
-
"
|
|
3532
|
+
"page-all": {
|
|
3533
|
+
"char": "A",
|
|
3534
|
+
"description": "Get all pages (bypass pagination)",
|
|
3535
|
+
"name": "page-all",
|
|
3822
3536
|
"allowNo": false,
|
|
3823
3537
|
"type": "boolean"
|
|
3824
3538
|
},
|
|
3825
|
-
"
|
|
3826
|
-
"description": "
|
|
3827
|
-
"name": "
|
|
3828
|
-
"default": 30000,
|
|
3539
|
+
"sort-property": {
|
|
3540
|
+
"description": "The property to sort results by",
|
|
3541
|
+
"name": "sort-property",
|
|
3829
3542
|
"hasDynamicHelp": false,
|
|
3830
3543
|
"multiple": false,
|
|
3831
3544
|
"type": "option"
|
|
3832
3545
|
},
|
|
3833
|
-
"
|
|
3834
|
-
"description": "
|
|
3835
|
-
"name": "
|
|
3836
|
-
"
|
|
3837
|
-
"
|
|
3546
|
+
"sort-direction": {
|
|
3547
|
+
"description": "The direction to sort results",
|
|
3548
|
+
"name": "sort-direction",
|
|
3549
|
+
"default": "asc",
|
|
3550
|
+
"hasDynamicHelp": false,
|
|
3551
|
+
"multiple": false,
|
|
3552
|
+
"options": [
|
|
3553
|
+
"asc",
|
|
3554
|
+
"desc"
|
|
3555
|
+
],
|
|
3556
|
+
"type": "option"
|
|
3838
3557
|
},
|
|
3839
|
-
"
|
|
3840
|
-
"char": "
|
|
3841
|
-
"description": "
|
|
3842
|
-
"
|
|
3843
|
-
"name": "verbose",
|
|
3558
|
+
"raw": {
|
|
3559
|
+
"char": "r",
|
|
3560
|
+
"description": "Output raw JSON (recommended for AI assistants - returns all page data)",
|
|
3561
|
+
"name": "raw",
|
|
3844
3562
|
"allowNo": false,
|
|
3845
3563
|
"type": "boolean"
|
|
3846
3564
|
},
|
|
3847
|
-
"
|
|
3848
|
-
"description": "
|
|
3849
|
-
"
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
"id": "bookmark:remove",
|
|
3857
|
-
"pluginAlias": "@catafal/notion-cli",
|
|
3858
|
-
"pluginName": "@catafal/notion-cli",
|
|
3859
|
-
"pluginType": "core",
|
|
3860
|
-
"strict": true,
|
|
3861
|
-
"enableJsonFlag": false,
|
|
3862
|
-
"isESM": false,
|
|
3863
|
-
"relativePath": [
|
|
3864
|
-
"dist",
|
|
3865
|
-
"commands",
|
|
3866
|
-
"bookmark",
|
|
3867
|
-
"remove.js"
|
|
3868
|
-
]
|
|
3869
|
-
},
|
|
3870
|
-
"bookmark:set": {
|
|
3871
|
-
"aliases": [
|
|
3872
|
-
"bm:set"
|
|
3873
|
-
],
|
|
3874
|
-
"args": {
|
|
3875
|
-
"name": {
|
|
3876
|
-
"description": "Bookmark name (e.g. \"inbox\", \"tasks\")",
|
|
3877
|
-
"name": "name",
|
|
3878
|
-
"required": true
|
|
3565
|
+
"columns": {
|
|
3566
|
+
"description": "Only show provided columns (comma-separated)",
|
|
3567
|
+
"exclusive": [
|
|
3568
|
+
"extended"
|
|
3569
|
+
],
|
|
3570
|
+
"name": "columns",
|
|
3571
|
+
"hasDynamicHelp": false,
|
|
3572
|
+
"multiple": false,
|
|
3573
|
+
"type": "option"
|
|
3879
3574
|
},
|
|
3880
|
-
"
|
|
3881
|
-
"description": "
|
|
3882
|
-
"name": "
|
|
3883
|
-
"
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
"description": "Save a named shortcut to a Notion page or database",
|
|
3887
|
-
"examples": [
|
|
3888
|
-
{
|
|
3889
|
-
"description": "Bookmark a database as \"inbox\" and set it as default",
|
|
3890
|
-
"command": "$ notion-cli bookmark set inbox DB_ID_OR_URL --default"
|
|
3575
|
+
"sort": {
|
|
3576
|
+
"description": "Property to sort by (prepend with - for descending)",
|
|
3577
|
+
"name": "sort",
|
|
3578
|
+
"hasDynamicHelp": false,
|
|
3579
|
+
"multiple": false,
|
|
3580
|
+
"type": "option"
|
|
3891
3581
|
},
|
|
3892
|
-
{
|
|
3893
|
-
"
|
|
3894
|
-
"
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
"name": "
|
|
3902
|
-
"default": "database",
|
|
3582
|
+
"filter": {
|
|
3583
|
+
"char": "f",
|
|
3584
|
+
"description": "Filter as JSON object (Notion filter API format)",
|
|
3585
|
+
"exclusive": [
|
|
3586
|
+
"search",
|
|
3587
|
+
"file-filter",
|
|
3588
|
+
"rawFilter",
|
|
3589
|
+
"fileFilter"
|
|
3590
|
+
],
|
|
3591
|
+
"name": "filter",
|
|
3903
3592
|
"hasDynamicHelp": false,
|
|
3904
3593
|
"multiple": false,
|
|
3905
|
-
"
|
|
3906
|
-
|
|
3907
|
-
|
|
3594
|
+
"type": "option"
|
|
3595
|
+
},
|
|
3596
|
+
"csv": {
|
|
3597
|
+
"description": "Output in CSV format",
|
|
3598
|
+
"exclusive": [
|
|
3599
|
+
"no-truncate"
|
|
3600
|
+
],
|
|
3601
|
+
"name": "csv",
|
|
3602
|
+
"allowNo": false,
|
|
3603
|
+
"type": "boolean"
|
|
3604
|
+
},
|
|
3605
|
+
"extended": {
|
|
3606
|
+
"char": "x",
|
|
3607
|
+
"description": "Show extra columns",
|
|
3608
|
+
"name": "extended",
|
|
3609
|
+
"allowNo": false,
|
|
3610
|
+
"type": "boolean"
|
|
3611
|
+
},
|
|
3612
|
+
"no-truncate": {
|
|
3613
|
+
"description": "Do not truncate output to fit screen",
|
|
3614
|
+
"exclusive": [
|
|
3615
|
+
"csv"
|
|
3908
3616
|
],
|
|
3909
|
-
"
|
|
3617
|
+
"name": "no-truncate",
|
|
3618
|
+
"allowNo": false,
|
|
3619
|
+
"type": "boolean"
|
|
3910
3620
|
},
|
|
3911
|
-
"
|
|
3912
|
-
"description": "
|
|
3913
|
-
"name": "
|
|
3621
|
+
"no-header": {
|
|
3622
|
+
"description": "Hide table header from output",
|
|
3623
|
+
"name": "no-header",
|
|
3914
3624
|
"allowNo": false,
|
|
3915
3625
|
"type": "boolean"
|
|
3916
3626
|
},
|
|
@@ -3921,14 +3631,6 @@
|
|
|
3921
3631
|
"allowNo": false,
|
|
3922
3632
|
"type": "boolean"
|
|
3923
3633
|
},
|
|
3924
|
-
"page-size": {
|
|
3925
|
-
"description": "Items per page (1-100, default: 100 for automation)",
|
|
3926
|
-
"name": "page-size",
|
|
3927
|
-
"default": 100,
|
|
3928
|
-
"hasDynamicHelp": false,
|
|
3929
|
-
"multiple": false,
|
|
3930
|
-
"type": "option"
|
|
3931
|
-
},
|
|
3932
3634
|
"retry": {
|
|
3933
3635
|
"description": "Auto-retry on rate limit (respects Retry-After header)",
|
|
3934
3636
|
"name": "retry",
|
|
@@ -3962,11 +3664,108 @@
|
|
|
3962
3664
|
"name": "minimal",
|
|
3963
3665
|
"allowNo": false,
|
|
3964
3666
|
"type": "boolean"
|
|
3667
|
+
},
|
|
3668
|
+
"markdown": {
|
|
3669
|
+
"char": "m",
|
|
3670
|
+
"description": "Output as markdown table (GitHub-flavored)",
|
|
3671
|
+
"exclusive": [
|
|
3672
|
+
"compact-json",
|
|
3673
|
+
"pretty"
|
|
3674
|
+
],
|
|
3675
|
+
"name": "markdown",
|
|
3676
|
+
"allowNo": false,
|
|
3677
|
+
"type": "boolean"
|
|
3678
|
+
},
|
|
3679
|
+
"compact-json": {
|
|
3680
|
+
"char": "c",
|
|
3681
|
+
"description": "Output as compact JSON (single-line, ideal for piping)",
|
|
3682
|
+
"exclusive": [
|
|
3683
|
+
"markdown",
|
|
3684
|
+
"pretty"
|
|
3685
|
+
],
|
|
3686
|
+
"name": "compact-json",
|
|
3687
|
+
"allowNo": false,
|
|
3688
|
+
"type": "boolean"
|
|
3689
|
+
},
|
|
3690
|
+
"pretty": {
|
|
3691
|
+
"char": "P",
|
|
3692
|
+
"description": "Output as pretty table with borders",
|
|
3693
|
+
"exclusive": [
|
|
3694
|
+
"markdown",
|
|
3695
|
+
"compact-json"
|
|
3696
|
+
],
|
|
3697
|
+
"name": "pretty",
|
|
3698
|
+
"allowNo": false,
|
|
3699
|
+
"type": "boolean"
|
|
3700
|
+
},
|
|
3701
|
+
"file-filter": {
|
|
3702
|
+
"char": "F",
|
|
3703
|
+
"description": "Load filter from JSON file",
|
|
3704
|
+
"exclusive": [
|
|
3705
|
+
"filter",
|
|
3706
|
+
"search",
|
|
3707
|
+
"rawFilter",
|
|
3708
|
+
"fileFilter"
|
|
3709
|
+
],
|
|
3710
|
+
"name": "file-filter",
|
|
3711
|
+
"hasDynamicHelp": false,
|
|
3712
|
+
"multiple": false,
|
|
3713
|
+
"type": "option"
|
|
3714
|
+
},
|
|
3715
|
+
"search": {
|
|
3716
|
+
"char": "s",
|
|
3717
|
+
"description": "Simple text search (searches across title and common text properties)",
|
|
3718
|
+
"exclusive": [
|
|
3719
|
+
"filter",
|
|
3720
|
+
"file-filter",
|
|
3721
|
+
"rawFilter",
|
|
3722
|
+
"fileFilter"
|
|
3723
|
+
],
|
|
3724
|
+
"name": "search",
|
|
3725
|
+
"hasDynamicHelp": false,
|
|
3726
|
+
"multiple": false,
|
|
3727
|
+
"type": "option"
|
|
3728
|
+
},
|
|
3729
|
+
"select": {
|
|
3730
|
+
"description": "Select specific properties to return (comma-separated). Reduces token usage by 60-80%.",
|
|
3731
|
+
"name": "select",
|
|
3732
|
+
"hasDynamicHelp": false,
|
|
3733
|
+
"multiple": false,
|
|
3734
|
+
"type": "option"
|
|
3735
|
+
},
|
|
3736
|
+
"rawFilter": {
|
|
3737
|
+
"char": "a",
|
|
3738
|
+
"description": "DEPRECATED: Use --filter instead. JSON stringified filter string",
|
|
3739
|
+
"exclusive": [
|
|
3740
|
+
"filter",
|
|
3741
|
+
"search",
|
|
3742
|
+
"file-filter",
|
|
3743
|
+
"fileFilter"
|
|
3744
|
+
],
|
|
3745
|
+
"hidden": true,
|
|
3746
|
+
"name": "rawFilter",
|
|
3747
|
+
"hasDynamicHelp": false,
|
|
3748
|
+
"multiple": false,
|
|
3749
|
+
"type": "option"
|
|
3750
|
+
},
|
|
3751
|
+
"fileFilter": {
|
|
3752
|
+
"description": "DEPRECATED: Use --file-filter instead. JSON filter file path",
|
|
3753
|
+
"exclusive": [
|
|
3754
|
+
"filter",
|
|
3755
|
+
"search",
|
|
3756
|
+
"file-filter",
|
|
3757
|
+
"rawFilter"
|
|
3758
|
+
],
|
|
3759
|
+
"hidden": true,
|
|
3760
|
+
"name": "fileFilter",
|
|
3761
|
+
"hasDynamicHelp": false,
|
|
3762
|
+
"multiple": false,
|
|
3763
|
+
"type": "option"
|
|
3965
3764
|
}
|
|
3966
3765
|
},
|
|
3967
3766
|
"hasDynamicHelp": false,
|
|
3968
3767
|
"hiddenAliases": [],
|
|
3969
|
-
"id": "
|
|
3768
|
+
"id": "db:query",
|
|
3970
3769
|
"pluginAlias": "@catafal/notion-cli",
|
|
3971
3770
|
"pluginName": "@catafal/notion-cli",
|
|
3972
3771
|
"pluginType": "core",
|
|
@@ -3976,37 +3775,109 @@
|
|
|
3976
3775
|
"relativePath": [
|
|
3977
3776
|
"dist",
|
|
3978
3777
|
"commands",
|
|
3979
|
-
"
|
|
3980
|
-
"
|
|
3778
|
+
"db",
|
|
3779
|
+
"query.js"
|
|
3981
3780
|
]
|
|
3982
3781
|
},
|
|
3983
|
-
"
|
|
3782
|
+
"db:retrieve": {
|
|
3984
3783
|
"aliases": [
|
|
3985
|
-
"
|
|
3784
|
+
"db:r",
|
|
3785
|
+
"ds:retrieve",
|
|
3786
|
+
"ds:r"
|
|
3986
3787
|
],
|
|
3987
3788
|
"args": {
|
|
3988
|
-
"
|
|
3989
|
-
"description": "
|
|
3990
|
-
"name": "
|
|
3991
|
-
"required":
|
|
3789
|
+
"database_id": {
|
|
3790
|
+
"description": "Data source ID or URL (the ID of the table whose schema you want to retrieve)",
|
|
3791
|
+
"name": "database_id",
|
|
3792
|
+
"required": true
|
|
3992
3793
|
}
|
|
3993
3794
|
},
|
|
3994
|
-
"description": "
|
|
3795
|
+
"description": "Retrieve a data source (table) schema and properties",
|
|
3995
3796
|
"examples": [
|
|
3996
3797
|
{
|
|
3997
|
-
"description": "
|
|
3998
|
-
"command": "notion-cli
|
|
3798
|
+
"description": "Retrieve a data source with full schema (recommended for AI assistants)",
|
|
3799
|
+
"command": "notion-cli db retrieve DATA_SOURCE_ID -r"
|
|
3999
3800
|
},
|
|
4000
3801
|
{
|
|
4001
|
-
"description": "
|
|
4002
|
-
"command": "notion-cli
|
|
3802
|
+
"description": "Retrieve a data source schema via data_source_id",
|
|
3803
|
+
"command": "notion-cli db retrieve DATA_SOURCE_ID"
|
|
4003
3804
|
},
|
|
4004
3805
|
{
|
|
4005
|
-
"description": "
|
|
4006
|
-
"command": "notion-cli
|
|
3806
|
+
"description": "Retrieve a data source via URL",
|
|
3807
|
+
"command": "notion-cli db retrieve https://notion.so/DATABASE_ID"
|
|
3808
|
+
},
|
|
3809
|
+
{
|
|
3810
|
+
"description": "Retrieve a data source and output as markdown table",
|
|
3811
|
+
"command": "notion-cli db retrieve DATA_SOURCE_ID --markdown"
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
"description": "Retrieve a data source and output as compact JSON",
|
|
3815
|
+
"command": "notion-cli db retrieve DATA_SOURCE_ID --compact-json"
|
|
4007
3816
|
}
|
|
4008
3817
|
],
|
|
4009
3818
|
"flags": {
|
|
3819
|
+
"raw": {
|
|
3820
|
+
"char": "r",
|
|
3821
|
+
"description": "output raw json (recommended for AI assistants - returns full schema)",
|
|
3822
|
+
"name": "raw",
|
|
3823
|
+
"allowNo": false,
|
|
3824
|
+
"type": "boolean"
|
|
3825
|
+
},
|
|
3826
|
+
"columns": {
|
|
3827
|
+
"description": "Only show provided columns (comma-separated)",
|
|
3828
|
+
"exclusive": [
|
|
3829
|
+
"extended"
|
|
3830
|
+
],
|
|
3831
|
+
"name": "columns",
|
|
3832
|
+
"hasDynamicHelp": false,
|
|
3833
|
+
"multiple": false,
|
|
3834
|
+
"type": "option"
|
|
3835
|
+
},
|
|
3836
|
+
"sort": {
|
|
3837
|
+
"description": "Property to sort by (prepend with - for descending)",
|
|
3838
|
+
"name": "sort",
|
|
3839
|
+
"hasDynamicHelp": false,
|
|
3840
|
+
"multiple": false,
|
|
3841
|
+
"type": "option"
|
|
3842
|
+
},
|
|
3843
|
+
"filter": {
|
|
3844
|
+
"description": "Filter property by substring match",
|
|
3845
|
+
"name": "filter",
|
|
3846
|
+
"hasDynamicHelp": false,
|
|
3847
|
+
"multiple": false,
|
|
3848
|
+
"type": "option"
|
|
3849
|
+
},
|
|
3850
|
+
"csv": {
|
|
3851
|
+
"description": "Output in CSV format",
|
|
3852
|
+
"exclusive": [
|
|
3853
|
+
"no-truncate"
|
|
3854
|
+
],
|
|
3855
|
+
"name": "csv",
|
|
3856
|
+
"allowNo": false,
|
|
3857
|
+
"type": "boolean"
|
|
3858
|
+
},
|
|
3859
|
+
"extended": {
|
|
3860
|
+
"char": "x",
|
|
3861
|
+
"description": "Show extra columns",
|
|
3862
|
+
"name": "extended",
|
|
3863
|
+
"allowNo": false,
|
|
3864
|
+
"type": "boolean"
|
|
3865
|
+
},
|
|
3866
|
+
"no-truncate": {
|
|
3867
|
+
"description": "Do not truncate output to fit screen",
|
|
3868
|
+
"exclusive": [
|
|
3869
|
+
"csv"
|
|
3870
|
+
],
|
|
3871
|
+
"name": "no-truncate",
|
|
3872
|
+
"allowNo": false,
|
|
3873
|
+
"type": "boolean"
|
|
3874
|
+
},
|
|
3875
|
+
"no-header": {
|
|
3876
|
+
"description": "Hide table header from output",
|
|
3877
|
+
"name": "no-header",
|
|
3878
|
+
"allowNo": false,
|
|
3879
|
+
"type": "boolean"
|
|
3880
|
+
},
|
|
4010
3881
|
"json": {
|
|
4011
3882
|
"char": "j",
|
|
4012
3883
|
"description": "Output as JSON (recommended for automation)",
|
|
@@ -4042,24 +3913,57 @@
|
|
|
4042
3913
|
"allowNo": false,
|
|
4043
3914
|
"type": "boolean"
|
|
4044
3915
|
},
|
|
4045
|
-
"verbose": {
|
|
4046
|
-
"char": "v",
|
|
4047
|
-
"description": "Enable verbose logging to stderr (retry events, cache stats) - never pollutes stdout",
|
|
4048
|
-
"env": "NOTION_CLI_VERBOSE",
|
|
4049
|
-
"name": "verbose",
|
|
3916
|
+
"verbose": {
|
|
3917
|
+
"char": "v",
|
|
3918
|
+
"description": "Enable verbose logging to stderr (retry events, cache stats) - never pollutes stdout",
|
|
3919
|
+
"env": "NOTION_CLI_VERBOSE",
|
|
3920
|
+
"name": "verbose",
|
|
3921
|
+
"allowNo": false,
|
|
3922
|
+
"type": "boolean"
|
|
3923
|
+
},
|
|
3924
|
+
"minimal": {
|
|
3925
|
+
"description": "Strip unnecessary metadata (created_by, last_edited_by, object fields, request_id, etc.) - reduces response size by ~40%",
|
|
3926
|
+
"name": "minimal",
|
|
3927
|
+
"allowNo": false,
|
|
3928
|
+
"type": "boolean"
|
|
3929
|
+
},
|
|
3930
|
+
"markdown": {
|
|
3931
|
+
"char": "m",
|
|
3932
|
+
"description": "Output as markdown table (GitHub-flavored)",
|
|
3933
|
+
"exclusive": [
|
|
3934
|
+
"compact-json",
|
|
3935
|
+
"pretty"
|
|
3936
|
+
],
|
|
3937
|
+
"name": "markdown",
|
|
3938
|
+
"allowNo": false,
|
|
3939
|
+
"type": "boolean"
|
|
3940
|
+
},
|
|
3941
|
+
"compact-json": {
|
|
3942
|
+
"char": "c",
|
|
3943
|
+
"description": "Output as compact JSON (single-line, ideal for piping)",
|
|
3944
|
+
"exclusive": [
|
|
3945
|
+
"markdown",
|
|
3946
|
+
"pretty"
|
|
3947
|
+
],
|
|
3948
|
+
"name": "compact-json",
|
|
4050
3949
|
"allowNo": false,
|
|
4051
3950
|
"type": "boolean"
|
|
4052
3951
|
},
|
|
4053
|
-
"
|
|
4054
|
-
"
|
|
4055
|
-
"
|
|
3952
|
+
"pretty": {
|
|
3953
|
+
"char": "P",
|
|
3954
|
+
"description": "Output as pretty table with borders",
|
|
3955
|
+
"exclusive": [
|
|
3956
|
+
"markdown",
|
|
3957
|
+
"compact-json"
|
|
3958
|
+
],
|
|
3959
|
+
"name": "pretty",
|
|
4056
3960
|
"allowNo": false,
|
|
4057
3961
|
"type": "boolean"
|
|
4058
3962
|
}
|
|
4059
3963
|
},
|
|
4060
3964
|
"hasDynamicHelp": false,
|
|
4061
3965
|
"hiddenAliases": [],
|
|
4062
|
-
"id": "
|
|
3966
|
+
"id": "db:retrieve",
|
|
4063
3967
|
"pluginAlias": "@catafal/notion-cli",
|
|
4064
3968
|
"pluginName": "@catafal/notion-cli",
|
|
4065
3969
|
"pluginType": "core",
|
|
@@ -4069,90 +3973,114 @@
|
|
|
4069
3973
|
"relativePath": [
|
|
4070
3974
|
"dist",
|
|
4071
3975
|
"commands",
|
|
4072
|
-
"
|
|
4073
|
-
"
|
|
3976
|
+
"db",
|
|
3977
|
+
"retrieve.js"
|
|
4074
3978
|
]
|
|
4075
3979
|
},
|
|
4076
|
-
"
|
|
3980
|
+
"db:schema": {
|
|
4077
3981
|
"aliases": [
|
|
4078
|
-
"
|
|
3982
|
+
"db:s",
|
|
3983
|
+
"ds:schema",
|
|
3984
|
+
"ds:s"
|
|
4079
3985
|
],
|
|
4080
3986
|
"args": {
|
|
4081
|
-
"
|
|
4082
|
-
"description": "
|
|
4083
|
-
"name": "
|
|
4084
|
-
"required":
|
|
3987
|
+
"data_source_id": {
|
|
3988
|
+
"description": "Data source ID or URL (the table whose schema you want to extract)",
|
|
3989
|
+
"name": "data_source_id",
|
|
3990
|
+
"required": true
|
|
4085
3991
|
}
|
|
4086
3992
|
},
|
|
4087
|
-
"description": "
|
|
3993
|
+
"description": "Extract clean, AI-parseable schema from a Notion data source (table). This command is optimized for AI agents and automation - it returns property names, types, options (for select/multi-select), and configuration in an easy-to-parse format.",
|
|
4088
3994
|
"examples": [
|
|
4089
3995
|
{
|
|
4090
|
-
"description": "
|
|
4091
|
-
"command": "
|
|
3996
|
+
"description": "Get full schema in JSON format (recommended for AI agents)",
|
|
3997
|
+
"command": "<%= config.bin %> db schema abc123def456 --output json"
|
|
4092
3998
|
},
|
|
4093
3999
|
{
|
|
4094
|
-
"description": "
|
|
4095
|
-
"command": "
|
|
4000
|
+
"description": "Get schema with property payload examples (recommended for AI agents)",
|
|
4001
|
+
"command": "<%= config.bin %> db schema abc123def456 --with-examples --json"
|
|
4096
4002
|
},
|
|
4097
4003
|
{
|
|
4098
|
-
"description": "
|
|
4099
|
-
"command": "
|
|
4004
|
+
"description": "Get schema using database URL",
|
|
4005
|
+
"command": "<%= config.bin %> db schema https://notion.so/DATABASE_ID --output json"
|
|
4006
|
+
},
|
|
4007
|
+
{
|
|
4008
|
+
"description": "Get schema as formatted table",
|
|
4009
|
+
"command": "<%= config.bin %> db schema abc123def456"
|
|
4010
|
+
},
|
|
4011
|
+
{
|
|
4012
|
+
"description": "Get schema with examples in human-readable format",
|
|
4013
|
+
"command": "<%= config.bin %> db schema abc123def456 --with-examples"
|
|
4014
|
+
},
|
|
4015
|
+
{
|
|
4016
|
+
"description": "Get schema in YAML format",
|
|
4017
|
+
"command": "<%= config.bin %> db schema abc123def456 --output yaml"
|
|
4018
|
+
},
|
|
4019
|
+
{
|
|
4020
|
+
"description": "Get only specific properties",
|
|
4021
|
+
"command": "<%= config.bin %> db schema abc123def456 --properties Name,Status,Tags --output json"
|
|
4022
|
+
},
|
|
4023
|
+
{
|
|
4024
|
+
"description": "Get schema as markdown documentation",
|
|
4025
|
+
"command": "<%= config.bin %> db schema abc123def456 --markdown"
|
|
4026
|
+
},
|
|
4027
|
+
{
|
|
4028
|
+
"description": "Parse schema with jq (extract property names)",
|
|
4029
|
+
"command": "<%= config.bin %> db schema abc123def456 --output json | jq '.data.properties[].name'"
|
|
4030
|
+
},
|
|
4031
|
+
{
|
|
4032
|
+
"description": "Find all select/multi-select properties and their options",
|
|
4033
|
+
"command": "<%= config.bin %> db schema abc123def456 --output json | jq '.data.properties[] | select(.options) | {name, options}'"
|
|
4100
4034
|
}
|
|
4101
4035
|
],
|
|
4102
4036
|
"flags": {
|
|
4103
|
-
"
|
|
4104
|
-
"char": "
|
|
4105
|
-
"description": "Output
|
|
4106
|
-
"name": "
|
|
4107
|
-
"
|
|
4108
|
-
"type": "boolean"
|
|
4109
|
-
},
|
|
4110
|
-
"page-size": {
|
|
4111
|
-
"description": "Items per page (1-100, default: 100 for automation)",
|
|
4112
|
-
"name": "page-size",
|
|
4113
|
-
"default": 100,
|
|
4037
|
+
"output": {
|
|
4038
|
+
"char": "o",
|
|
4039
|
+
"description": "Output format",
|
|
4040
|
+
"name": "output",
|
|
4041
|
+
"default": "table",
|
|
4114
4042
|
"hasDynamicHelp": false,
|
|
4115
4043
|
"multiple": false,
|
|
4044
|
+
"options": [
|
|
4045
|
+
"json",
|
|
4046
|
+
"yaml",
|
|
4047
|
+
"table"
|
|
4048
|
+
],
|
|
4116
4049
|
"type": "option"
|
|
4117
4050
|
},
|
|
4118
|
-
"
|
|
4119
|
-
"
|
|
4120
|
-
"
|
|
4121
|
-
"
|
|
4122
|
-
"type": "boolean"
|
|
4123
|
-
},
|
|
4124
|
-
"timeout": {
|
|
4125
|
-
"description": "Request timeout in milliseconds",
|
|
4126
|
-
"name": "timeout",
|
|
4127
|
-
"default": 30000,
|
|
4051
|
+
"properties": {
|
|
4052
|
+
"char": "p",
|
|
4053
|
+
"description": "Comma-separated list of properties to include (default: all)",
|
|
4054
|
+
"name": "properties",
|
|
4128
4055
|
"hasDynamicHelp": false,
|
|
4129
4056
|
"multiple": false,
|
|
4130
4057
|
"type": "option"
|
|
4131
4058
|
},
|
|
4132
|
-
"
|
|
4133
|
-
"
|
|
4134
|
-
"
|
|
4059
|
+
"markdown": {
|
|
4060
|
+
"char": "m",
|
|
4061
|
+
"description": "Output as markdown documentation",
|
|
4062
|
+
"name": "markdown",
|
|
4135
4063
|
"allowNo": false,
|
|
4136
4064
|
"type": "boolean"
|
|
4137
4065
|
},
|
|
4138
|
-
"
|
|
4139
|
-
"char": "
|
|
4140
|
-
"description": "
|
|
4141
|
-
"
|
|
4142
|
-
"name": "verbose",
|
|
4066
|
+
"json": {
|
|
4067
|
+
"char": "j",
|
|
4068
|
+
"description": "Output as JSON (shorthand for --output json)",
|
|
4069
|
+
"name": "json",
|
|
4143
4070
|
"allowNo": false,
|
|
4144
4071
|
"type": "boolean"
|
|
4145
4072
|
},
|
|
4146
|
-
"
|
|
4147
|
-
"
|
|
4148
|
-
"
|
|
4073
|
+
"with-examples": {
|
|
4074
|
+
"char": "e",
|
|
4075
|
+
"description": "Include property payload examples for create/update operations",
|
|
4076
|
+
"name": "with-examples",
|
|
4149
4077
|
"allowNo": false,
|
|
4150
4078
|
"type": "boolean"
|
|
4151
4079
|
}
|
|
4152
4080
|
},
|
|
4153
4081
|
"hasDynamicHelp": false,
|
|
4154
4082
|
"hiddenAliases": [],
|
|
4155
|
-
"id": "
|
|
4083
|
+
"id": "db:schema",
|
|
4156
4084
|
"pluginAlias": "@catafal/notion-cli",
|
|
4157
4085
|
"pluginName": "@catafal/notion-cli",
|
|
4158
4086
|
"pluginType": "core",
|
|
@@ -4162,38 +4090,110 @@
|
|
|
4162
4090
|
"relativePath": [
|
|
4163
4091
|
"dist",
|
|
4164
4092
|
"commands",
|
|
4165
|
-
"
|
|
4166
|
-
"
|
|
4093
|
+
"db",
|
|
4094
|
+
"schema.js"
|
|
4167
4095
|
]
|
|
4168
4096
|
},
|
|
4169
|
-
"
|
|
4170
|
-
"aliases": [
|
|
4097
|
+
"db:update": {
|
|
4098
|
+
"aliases": [
|
|
4099
|
+
"db:u",
|
|
4100
|
+
"ds:update",
|
|
4101
|
+
"ds:u"
|
|
4102
|
+
],
|
|
4171
4103
|
"args": {
|
|
4172
|
-
"
|
|
4173
|
-
"description": "
|
|
4174
|
-
"name": "
|
|
4175
|
-
"required":
|
|
4104
|
+
"database_id": {
|
|
4105
|
+
"description": "Data source ID or URL (the ID of the table you want to update)",
|
|
4106
|
+
"name": "database_id",
|
|
4107
|
+
"required": true
|
|
4176
4108
|
}
|
|
4177
4109
|
},
|
|
4178
|
-
"description": "
|
|
4110
|
+
"description": "Update a data source (table) title and properties",
|
|
4179
4111
|
"examples": [
|
|
4180
4112
|
{
|
|
4181
|
-
"description": "
|
|
4182
|
-
"command": "$ notion-cli
|
|
4113
|
+
"description": "Update a data source with a specific data_source_id and title",
|
|
4114
|
+
"command": "$ notion-cli db update DATA_SOURCE_ID -t 'My Data Source'"
|
|
4183
4115
|
},
|
|
4184
4116
|
{
|
|
4185
|
-
"description": "
|
|
4186
|
-
"command": "$ notion-cli
|
|
4117
|
+
"description": "Update a data source via URL",
|
|
4118
|
+
"command": "$ notion-cli db update https://notion.so/DATABASE_ID -t 'My Data Source'"
|
|
4119
|
+
},
|
|
4120
|
+
{
|
|
4121
|
+
"description": "Update a data source with a specific data_source_id and output raw json",
|
|
4122
|
+
"command": "$ notion-cli db update DATA_SOURCE_ID -t 'My Table' -r"
|
|
4187
4123
|
}
|
|
4188
4124
|
],
|
|
4189
4125
|
"flags": {
|
|
4190
|
-
"
|
|
4191
|
-
"
|
|
4192
|
-
"
|
|
4126
|
+
"title": {
|
|
4127
|
+
"char": "t",
|
|
4128
|
+
"description": "New database title",
|
|
4129
|
+
"name": "title",
|
|
4130
|
+
"required": true,
|
|
4131
|
+
"hasDynamicHelp": false,
|
|
4132
|
+
"multiple": false,
|
|
4133
|
+
"type": "option"
|
|
4134
|
+
},
|
|
4135
|
+
"raw": {
|
|
4136
|
+
"char": "r",
|
|
4137
|
+
"description": "output raw json",
|
|
4138
|
+
"name": "raw",
|
|
4139
|
+
"allowNo": false,
|
|
4140
|
+
"type": "boolean"
|
|
4141
|
+
},
|
|
4142
|
+
"columns": {
|
|
4143
|
+
"description": "Only show provided columns (comma-separated)",
|
|
4144
|
+
"exclusive": [
|
|
4145
|
+
"extended"
|
|
4146
|
+
],
|
|
4147
|
+
"name": "columns",
|
|
4148
|
+
"hasDynamicHelp": false,
|
|
4149
|
+
"multiple": false,
|
|
4150
|
+
"type": "option"
|
|
4151
|
+
},
|
|
4152
|
+
"sort": {
|
|
4153
|
+
"description": "Property to sort by (prepend with - for descending)",
|
|
4154
|
+
"name": "sort",
|
|
4155
|
+
"hasDynamicHelp": false,
|
|
4156
|
+
"multiple": false,
|
|
4157
|
+
"type": "option"
|
|
4158
|
+
},
|
|
4159
|
+
"filter": {
|
|
4160
|
+
"description": "Filter property by substring match",
|
|
4161
|
+
"name": "filter",
|
|
4193
4162
|
"hasDynamicHelp": false,
|
|
4194
4163
|
"multiple": false,
|
|
4195
4164
|
"type": "option"
|
|
4196
4165
|
},
|
|
4166
|
+
"csv": {
|
|
4167
|
+
"description": "Output in CSV format",
|
|
4168
|
+
"exclusive": [
|
|
4169
|
+
"no-truncate"
|
|
4170
|
+
],
|
|
4171
|
+
"name": "csv",
|
|
4172
|
+
"allowNo": false,
|
|
4173
|
+
"type": "boolean"
|
|
4174
|
+
},
|
|
4175
|
+
"extended": {
|
|
4176
|
+
"char": "x",
|
|
4177
|
+
"description": "Show extra columns",
|
|
4178
|
+
"name": "extended",
|
|
4179
|
+
"allowNo": false,
|
|
4180
|
+
"type": "boolean"
|
|
4181
|
+
},
|
|
4182
|
+
"no-truncate": {
|
|
4183
|
+
"description": "Do not truncate output to fit screen",
|
|
4184
|
+
"exclusive": [
|
|
4185
|
+
"csv"
|
|
4186
|
+
],
|
|
4187
|
+
"name": "no-truncate",
|
|
4188
|
+
"allowNo": false,
|
|
4189
|
+
"type": "boolean"
|
|
4190
|
+
},
|
|
4191
|
+
"no-header": {
|
|
4192
|
+
"description": "Hide table header from output",
|
|
4193
|
+
"name": "no-header",
|
|
4194
|
+
"allowNo": false,
|
|
4195
|
+
"type": "boolean"
|
|
4196
|
+
},
|
|
4197
4197
|
"json": {
|
|
4198
4198
|
"char": "j",
|
|
4199
4199
|
"description": "Output as JSON (recommended for automation)",
|
|
@@ -4246,7 +4246,7 @@
|
|
|
4246
4246
|
},
|
|
4247
4247
|
"hasDynamicHelp": false,
|
|
4248
4248
|
"hiddenAliases": [],
|
|
4249
|
-
"id": "
|
|
4249
|
+
"id": "db:update",
|
|
4250
4250
|
"pluginAlias": "@catafal/notion-cli",
|
|
4251
4251
|
"pluginName": "@catafal/notion-cli",
|
|
4252
4252
|
"pluginType": "core",
|
|
@@ -4256,8 +4256,8 @@
|
|
|
4256
4256
|
"relativePath": [
|
|
4257
4257
|
"dist",
|
|
4258
4258
|
"commands",
|
|
4259
|
-
"
|
|
4260
|
-
"
|
|
4259
|
+
"db",
|
|
4260
|
+
"update.js"
|
|
4261
4261
|
]
|
|
4262
4262
|
},
|
|
4263
4263
|
"page:create": {
|
|
@@ -6467,5 +6467,5 @@
|
|
|
6467
6467
|
]
|
|
6468
6468
|
}
|
|
6469
6469
|
},
|
|
6470
|
-
"version": "5.9.
|
|
6470
|
+
"version": "5.9.3"
|
|
6471
6471
|
}
|