@jahia/jahia-cli 0.2.0 → 0.3.1
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/commands/init.js +4 -4
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/jahia/provision.d.ts +37 -2
- package/dist/commands/jahia/provision.d.ts.map +1 -1
- package/dist/commands/jahia/provision.js +241 -53
- package/dist/commands/jahia/provision.js.map +1 -1
- package/dist/commands/tests/artifacts.d.ts +25 -0
- package/dist/commands/tests/artifacts.d.ts.map +1 -0
- package/dist/commands/tests/artifacts.js +112 -0
- package/dist/commands/tests/artifacts.js.map +1 -0
- package/dist/commands/tests/build.d.ts +30 -0
- package/dist/commands/tests/build.d.ts.map +1 -0
- package/dist/commands/tests/build.js +90 -0
- package/dist/commands/tests/build.js.map +1 -0
- package/dist/commands/tests/run.d.ts +28 -0
- package/dist/commands/tests/run.d.ts.map +1 -0
- package/dist/commands/tests/run.js +166 -0
- package/dist/commands/tests/run.js.map +1 -0
- package/dist/commands/workflow/init.d.ts.map +1 -1
- package/dist/commands/workflow/init.js +15 -14
- package/dist/commands/workflow/init.js.map +1 -1
- package/dist/commands/workflow/run.d.ts +3 -1
- package/dist/commands/workflow/run.d.ts.map +1 -1
- package/dist/commands/workflow/run.js +62 -14
- package/dist/commands/workflow/run.js.map +1 -1
- package/dist/lib/artifacts/collect-all.d.ts +17 -0
- package/dist/lib/artifacts/collect-all.d.ts.map +1 -0
- package/dist/lib/artifacts/collect-all.js +107 -0
- package/dist/lib/artifacts/collect-all.js.map +1 -0
- package/dist/lib/artifacts/copy-container-artifacts.d.ts +13 -0
- package/dist/lib/artifacts/copy-container-artifacts.d.ts.map +1 -0
- package/dist/lib/artifacts/copy-container-artifacts.js +48 -0
- package/dist/lib/artifacts/copy-container-artifacts.js.map +1 -0
- package/dist/lib/artifacts/fetch-container-logs.d.ts +17 -0
- package/dist/lib/artifacts/fetch-container-logs.d.ts.map +1 -0
- package/dist/lib/artifacts/fetch-container-logs.js +36 -0
- package/dist/lib/artifacts/fetch-container-logs.js.map +1 -0
- package/dist/lib/artifacts/index.d.ts +6 -0
- package/dist/lib/artifacts/index.d.ts.map +1 -0
- package/dist/lib/artifacts/index.js +5 -0
- package/dist/lib/artifacts/index.js.map +1 -0
- package/dist/lib/artifacts/query-vlogs.d.ts +14 -0
- package/dist/lib/artifacts/query-vlogs.d.ts.map +1 -0
- package/dist/lib/artifacts/query-vlogs.js +33 -0
- package/dist/lib/artifacts/query-vlogs.js.map +1 -0
- package/dist/lib/artifacts/types.d.ts +28 -0
- package/dist/lib/artifacts/types.d.ts.map +1 -0
- package/dist/lib/artifacts/types.js +2 -0
- package/dist/lib/artifacts/types.js.map +1 -0
- package/dist/lib/components/cypress.d.ts +16 -0
- package/dist/lib/components/cypress.d.ts.map +1 -0
- package/dist/lib/components/cypress.js +35 -0
- package/dist/lib/components/cypress.js.map +1 -0
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/components/index.js +3 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/jahia.d.ts.map +1 -1
- package/dist/lib/components/jahia.js +1 -0
- package/dist/lib/components/jahia.js.map +1 -1
- package/dist/lib/components/smtp-server.d.ts.map +1 -1
- package/dist/lib/components/smtp-server.js +1 -0
- package/dist/lib/components/smtp-server.js.map +1 -1
- package/dist/lib/components/types.d.ts +12 -0
- package/dist/lib/components/types.d.ts.map +1 -1
- package/dist/lib/config/config-to-yaml-with-comments.d.ts.map +1 -1
- package/dist/lib/config/config-to-yaml-with-comments.js +28 -3
- package/dist/lib/config/config-to-yaml-with-comments.js.map +1 -1
- package/dist/lib/config/config-to-yaml.d.ts.map +1 -1
- package/dist/lib/config/config-to-yaml.js +13 -1
- package/dist/lib/config/config-to-yaml.js.map +1 -1
- package/dist/lib/config/parser.d.ts +17 -4
- package/dist/lib/config/parser.d.ts.map +1 -1
- package/dist/lib/config/parser.js +101 -12
- package/dist/lib/config/parser.js.map +1 -1
- package/dist/lib/config/types.d.ts +57 -3
- package/dist/lib/config/types.d.ts.map +1 -1
- package/dist/lib/providers/docker/container.d.ts +2 -0
- package/dist/lib/providers/docker/container.d.ts.map +1 -1
- package/dist/lib/providers/docker/container.js +5 -1
- package/dist/lib/providers/docker/container.js.map +1 -1
- package/dist/lib/provisioning/filter-files.d.ts +7 -0
- package/dist/lib/provisioning/filter-files.d.ts.map +1 -0
- package/dist/lib/provisioning/filter-files.js +14 -0
- package/dist/lib/provisioning/filter-files.js.map +1 -0
- package/dist/lib/provisioning/submit-file-action.d.ts +29 -0
- package/dist/lib/provisioning/submit-file-action.d.ts.map +1 -0
- package/dist/lib/provisioning/submit-file-action.js +75 -0
- package/dist/lib/provisioning/submit-file-action.js.map +1 -0
- package/dist/lib/provisioning/types.d.ts +11 -0
- package/dist/lib/provisioning/types.d.ts.map +1 -1
- package/dist/lib/tests/build-image.d.ts +33 -0
- package/dist/lib/tests/build-image.d.ts.map +1 -0
- package/dist/lib/tests/build-image.js +59 -0
- package/dist/lib/tests/build-image.js.map +1 -0
- package/dist/lib/workflow/build-sample-workflow.d.ts +5 -4
- package/dist/lib/workflow/build-sample-workflow.d.ts.map +1 -1
- package/dist/lib/workflow/build-sample-workflow.js +35 -31
- package/dist/lib/workflow/build-sample-workflow.js.map +1 -1
- package/dist/lib/workflow/executor.d.ts +3 -1
- package/dist/lib/workflow/executor.d.ts.map +1 -1
- package/dist/lib/workflow/executor.js +29 -0
- package/dist/lib/workflow/executor.js.map +1 -1
- package/dist/lib/workflow/format-workflow-sources.d.ts +17 -0
- package/dist/lib/workflow/format-workflow-sources.d.ts.map +1 -0
- package/dist/lib/workflow/format-workflow-sources.js +85 -0
- package/dist/lib/workflow/format-workflow-sources.js.map +1 -0
- package/dist/lib/workflow/load-global-workflows.d.ts +24 -0
- package/dist/lib/workflow/load-global-workflows.d.ts.map +1 -0
- package/dist/lib/workflow/load-global-workflows.js +49 -0
- package/dist/lib/workflow/load-global-workflows.js.map +1 -0
- package/dist/lib/workflow/merge-workflow-into-config.d.ts +4 -4
- package/dist/lib/workflow/merge-workflow-into-config.d.ts.map +1 -1
- package/dist/lib/workflow/merge-workflow-into-config.js +4 -4
- package/dist/lib/workflow/merge-workflow-into-config.js.map +1 -1
- package/dist/lib/workflow/merge-workflow-sources.d.ts +27 -0
- package/dist/lib/workflow/merge-workflow-sources.d.ts.map +1 -0
- package/dist/lib/workflow/merge-workflow-sources.js +55 -0
- package/dist/lib/workflow/merge-workflow-sources.js.map +1 -0
- package/dist/lib/workflow/resolve-workflow.d.ts +20 -0
- package/dist/lib/workflow/resolve-workflow.d.ts.map +1 -0
- package/dist/lib/workflow/resolve-workflow.js +38 -0
- package/dist/lib/workflow/resolve-workflow.js.map +1 -0
- package/dist/lib/workflow/resolve-workflows-file-path.d.ts +13 -0
- package/dist/lib/workflow/resolve-workflows-file-path.d.ts.map +1 -0
- package/dist/lib/workflow/resolve-workflows-file-path.js +22 -0
- package/dist/lib/workflow/resolve-workflows-file-path.js.map +1 -0
- package/oclif.manifest.json +318 -108
- package/package.json +4 -2
package/oclif.manifest.json
CHANGED
|
@@ -553,6 +553,103 @@
|
|
|
553
553
|
"stop.js"
|
|
554
554
|
]
|
|
555
555
|
},
|
|
556
|
+
"tests:artifacts": {
|
|
557
|
+
"aliases": [],
|
|
558
|
+
"args": {},
|
|
559
|
+
"description": "Collect test artifacts (container logs and diagnostic files) from the active environment. Fetches logs from VictoriaLogs (with docker logs fallback) and copies container artifact paths defined in component definitions or config overrides.",
|
|
560
|
+
"examples": [
|
|
561
|
+
"<%= config.bin %> tests artifacts",
|
|
562
|
+
"<%= config.bin %> tests artifacts --output ./ci-results/",
|
|
563
|
+
"<%= config.bin %> tests artifacts --state /ci/workspace/state.json --json"
|
|
564
|
+
],
|
|
565
|
+
"flags": {
|
|
566
|
+
"state": {
|
|
567
|
+
"description": "Path to the state JSON file. Overrides JAHIA_CLI_STATE env var. Defaults to ~/.jahia-cli/state.json",
|
|
568
|
+
"env": "JAHIA_CLI_STATE",
|
|
569
|
+
"name": "state",
|
|
570
|
+
"hasDynamicHelp": false,
|
|
571
|
+
"multiple": false,
|
|
572
|
+
"type": "option"
|
|
573
|
+
},
|
|
574
|
+
"output": {
|
|
575
|
+
"char": "o",
|
|
576
|
+
"description": "Output directory for collected artifacts (default: ./results/)",
|
|
577
|
+
"name": "output",
|
|
578
|
+
"hasDynamicHelp": false,
|
|
579
|
+
"multiple": false,
|
|
580
|
+
"type": "option"
|
|
581
|
+
},
|
|
582
|
+
"json": {
|
|
583
|
+
"description": "Output result as structured JSON (for AI agents and scripting)",
|
|
584
|
+
"name": "json",
|
|
585
|
+
"allowNo": false,
|
|
586
|
+
"type": "boolean"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"hasDynamicHelp": false,
|
|
590
|
+
"hiddenAliases": [],
|
|
591
|
+
"id": "tests:artifacts",
|
|
592
|
+
"pluginAlias": "@jahia/jahia-cli",
|
|
593
|
+
"pluginName": "@jahia/jahia-cli",
|
|
594
|
+
"pluginType": "core",
|
|
595
|
+
"strict": true,
|
|
596
|
+
"enableJsonFlag": false,
|
|
597
|
+
"isESM": true,
|
|
598
|
+
"relativePath": [
|
|
599
|
+
"dist",
|
|
600
|
+
"commands",
|
|
601
|
+
"tests",
|
|
602
|
+
"artifacts.js"
|
|
603
|
+
]
|
|
604
|
+
},
|
|
605
|
+
"tests:build": {
|
|
606
|
+
"aliases": [],
|
|
607
|
+
"args": {},
|
|
608
|
+
"description": "Build the test Docker image using docker buildx. All build parameters (dockerfile, image, tag, platform, buildArgs) are read from the config file under tests.container. The image stays local (no push) and can be run with \"tests run\".",
|
|
609
|
+
"examples": [
|
|
610
|
+
"<%= config.bin %> tests build -c config.yml",
|
|
611
|
+
"<%= config.bin %> tests build -c config.yml --no-cache",
|
|
612
|
+
"<%= config.bin %> tests build -c config.yml --json"
|
|
613
|
+
],
|
|
614
|
+
"flags": {
|
|
615
|
+
"config": {
|
|
616
|
+
"char": "c",
|
|
617
|
+
"description": "Path to jahia-cli config file",
|
|
618
|
+
"name": "config",
|
|
619
|
+
"required": true,
|
|
620
|
+
"hasDynamicHelp": false,
|
|
621
|
+
"multiple": false,
|
|
622
|
+
"type": "option"
|
|
623
|
+
},
|
|
624
|
+
"no-cache": {
|
|
625
|
+
"description": "Build without using cache",
|
|
626
|
+
"name": "no-cache",
|
|
627
|
+
"allowNo": false,
|
|
628
|
+
"type": "boolean"
|
|
629
|
+
},
|
|
630
|
+
"json": {
|
|
631
|
+
"description": "Output result as structured JSON",
|
|
632
|
+
"name": "json",
|
|
633
|
+
"allowNo": false,
|
|
634
|
+
"type": "boolean"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"hasDynamicHelp": false,
|
|
638
|
+
"hiddenAliases": [],
|
|
639
|
+
"id": "tests:build",
|
|
640
|
+
"pluginAlias": "@jahia/jahia-cli",
|
|
641
|
+
"pluginName": "@jahia/jahia-cli",
|
|
642
|
+
"pluginType": "core",
|
|
643
|
+
"strict": true,
|
|
644
|
+
"enableJsonFlag": false,
|
|
645
|
+
"isESM": true,
|
|
646
|
+
"relativePath": [
|
|
647
|
+
"dist",
|
|
648
|
+
"commands",
|
|
649
|
+
"tests",
|
|
650
|
+
"build.js"
|
|
651
|
+
]
|
|
652
|
+
},
|
|
556
653
|
"tests:init": {
|
|
557
654
|
"aliases": [],
|
|
558
655
|
"args": {},
|
|
@@ -603,6 +700,181 @@
|
|
|
603
700
|
"init.js"
|
|
604
701
|
]
|
|
605
702
|
},
|
|
703
|
+
"tests:run": {
|
|
704
|
+
"aliases": [],
|
|
705
|
+
"args": {},
|
|
706
|
+
"description": "Run the test Docker image against an active environment. The container attaches to the environment network, streams output in real-time, and the CLI exits with the container exit code. Container is kept after completion for debugging.",
|
|
707
|
+
"examples": [
|
|
708
|
+
"<%= config.bin %> tests run -c config.yml",
|
|
709
|
+
"<%= config.bin %> tests run -c config.yml --env CYPRESS_SPEC=cypress/e2e/login.cy.ts",
|
|
710
|
+
"<%= config.bin %> tests run -c config.yml --state /ci/workspace/state.json --json"
|
|
711
|
+
],
|
|
712
|
+
"flags": {
|
|
713
|
+
"config": {
|
|
714
|
+
"char": "c",
|
|
715
|
+
"description": "Path to jahia-cli config file",
|
|
716
|
+
"name": "config",
|
|
717
|
+
"required": true,
|
|
718
|
+
"hasDynamicHelp": false,
|
|
719
|
+
"multiple": false,
|
|
720
|
+
"type": "option"
|
|
721
|
+
},
|
|
722
|
+
"state": {
|
|
723
|
+
"description": "Path to the state JSON file. Overrides JAHIA_CLI_STATE env var. Defaults to ~/.jahia-cli/state.json",
|
|
724
|
+
"env": "JAHIA_CLI_STATE",
|
|
725
|
+
"name": "state",
|
|
726
|
+
"hasDynamicHelp": false,
|
|
727
|
+
"multiple": false,
|
|
728
|
+
"type": "option"
|
|
729
|
+
},
|
|
730
|
+
"env": {
|
|
731
|
+
"char": "e",
|
|
732
|
+
"description": "Additional env var for test container (KEY=VALUE, repeatable). Supports ${VAR:-default}.",
|
|
733
|
+
"name": "env",
|
|
734
|
+
"hasDynamicHelp": false,
|
|
735
|
+
"multiple": true,
|
|
736
|
+
"type": "option"
|
|
737
|
+
},
|
|
738
|
+
"json": {
|
|
739
|
+
"description": "Output result as structured JSON",
|
|
740
|
+
"name": "json",
|
|
741
|
+
"allowNo": false,
|
|
742
|
+
"type": "boolean"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
"hasDynamicHelp": false,
|
|
746
|
+
"hiddenAliases": [],
|
|
747
|
+
"id": "tests:run",
|
|
748
|
+
"pluginAlias": "@jahia/jahia-cli",
|
|
749
|
+
"pluginName": "@jahia/jahia-cli",
|
|
750
|
+
"pluginType": "core",
|
|
751
|
+
"strict": true,
|
|
752
|
+
"enableJsonFlag": false,
|
|
753
|
+
"isESM": true,
|
|
754
|
+
"relativePath": [
|
|
755
|
+
"dist",
|
|
756
|
+
"commands",
|
|
757
|
+
"tests",
|
|
758
|
+
"run.js"
|
|
759
|
+
]
|
|
760
|
+
},
|
|
761
|
+
"workflow:init": {
|
|
762
|
+
"aliases": [],
|
|
763
|
+
"args": {},
|
|
764
|
+
"description": "Add sample workflows section to a configuration file. Generates a named \"main\" workflow with representative steps (init, create, alive, test, cleanup) to help get started. Preserves existing environment and tests sections.",
|
|
765
|
+
"examples": [
|
|
766
|
+
"<%= config.bin %> workflow init",
|
|
767
|
+
"<%= config.bin %> workflow init --config ./my-config.yml",
|
|
768
|
+
"<%= config.bin %> workflow init --force",
|
|
769
|
+
"<%= config.bin %> workflow init --json"
|
|
770
|
+
],
|
|
771
|
+
"flags": {
|
|
772
|
+
"config": {
|
|
773
|
+
"char": "c",
|
|
774
|
+
"description": "Path to the YAML configuration file",
|
|
775
|
+
"name": "config",
|
|
776
|
+
"default": "jahia-cli.config.yml",
|
|
777
|
+
"hasDynamicHelp": false,
|
|
778
|
+
"multiple": false,
|
|
779
|
+
"type": "option"
|
|
780
|
+
},
|
|
781
|
+
"force": {
|
|
782
|
+
"char": "f",
|
|
783
|
+
"description": "Overwrite existing workflows section if already present",
|
|
784
|
+
"name": "force",
|
|
785
|
+
"allowNo": false,
|
|
786
|
+
"type": "boolean"
|
|
787
|
+
},
|
|
788
|
+
"json": {
|
|
789
|
+
"description": "Output result as structured JSON (for AI agents and scripting)",
|
|
790
|
+
"name": "json",
|
|
791
|
+
"allowNo": false,
|
|
792
|
+
"type": "boolean"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
"hasDynamicHelp": false,
|
|
796
|
+
"hiddenAliases": [],
|
|
797
|
+
"id": "workflow:init",
|
|
798
|
+
"pluginAlias": "@jahia/jahia-cli",
|
|
799
|
+
"pluginName": "@jahia/jahia-cli",
|
|
800
|
+
"pluginType": "core",
|
|
801
|
+
"strict": true,
|
|
802
|
+
"enableJsonFlag": false,
|
|
803
|
+
"isESM": true,
|
|
804
|
+
"relativePath": [
|
|
805
|
+
"dist",
|
|
806
|
+
"commands",
|
|
807
|
+
"workflow",
|
|
808
|
+
"init.js"
|
|
809
|
+
]
|
|
810
|
+
},
|
|
811
|
+
"workflow:run": {
|
|
812
|
+
"aliases": [],
|
|
813
|
+
"args": {},
|
|
814
|
+
"description": "Execute a named workflow defined in a configuration file. Supports loading shared workflows from a global workflows file (via --workflows-file flag or workflowsFile config key). Local workflows override global ones with the same name. Runs steps sequentially — shell commands via execa, jahia-cli commands via subprocess. Stops on first failure. Use --name to select a workflow, or omit to run the default.",
|
|
815
|
+
"examples": [
|
|
816
|
+
"<%= config.bin %> workflow run --config jahia-cli.config.yml",
|
|
817
|
+
"<%= config.bin %> workflow run --config jahia-cli.config.yml --name setup",
|
|
818
|
+
"<%= config.bin %> workflow run --config jahia-cli.config.yml --workflows-file shared.yml",
|
|
819
|
+
"<%= config.bin %> workflow run --config ./my-config.yml --json"
|
|
820
|
+
],
|
|
821
|
+
"flags": {
|
|
822
|
+
"config": {
|
|
823
|
+
"char": "c",
|
|
824
|
+
"description": "Path to the YAML configuration file",
|
|
825
|
+
"name": "config",
|
|
826
|
+
"required": true,
|
|
827
|
+
"hasDynamicHelp": false,
|
|
828
|
+
"multiple": false,
|
|
829
|
+
"type": "option"
|
|
830
|
+
},
|
|
831
|
+
"name": {
|
|
832
|
+
"char": "n",
|
|
833
|
+
"description": "Name of the workflow to run (runs default workflow if omitted)",
|
|
834
|
+
"name": "name",
|
|
835
|
+
"hasDynamicHelp": false,
|
|
836
|
+
"multiple": false,
|
|
837
|
+
"type": "option"
|
|
838
|
+
},
|
|
839
|
+
"workflows-file": {
|
|
840
|
+
"char": "w",
|
|
841
|
+
"description": "Path to a global workflows YAML file. Merged with local config workflows (local takes precedence). Resolved relative to CWD. Overrides the workflowsFile config key.",
|
|
842
|
+
"name": "workflows-file",
|
|
843
|
+
"hasDynamicHelp": false,
|
|
844
|
+
"multiple": false,
|
|
845
|
+
"type": "option"
|
|
846
|
+
},
|
|
847
|
+
"json": {
|
|
848
|
+
"description": "Output result as structured JSON (for AI agents and scripting)",
|
|
849
|
+
"name": "json",
|
|
850
|
+
"allowNo": false,
|
|
851
|
+
"type": "boolean"
|
|
852
|
+
},
|
|
853
|
+
"state": {
|
|
854
|
+
"char": "s",
|
|
855
|
+
"description": "Path to the state file (auto-passed to jahia-cli subcommands)",
|
|
856
|
+
"name": "state",
|
|
857
|
+
"hasDynamicHelp": false,
|
|
858
|
+
"multiple": false,
|
|
859
|
+
"type": "option"
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
"hasDynamicHelp": false,
|
|
863
|
+
"hiddenAliases": [],
|
|
864
|
+
"id": "workflow:run",
|
|
865
|
+
"pluginAlias": "@jahia/jahia-cli",
|
|
866
|
+
"pluginName": "@jahia/jahia-cli",
|
|
867
|
+
"pluginType": "core",
|
|
868
|
+
"strict": true,
|
|
869
|
+
"enableJsonFlag": false,
|
|
870
|
+
"isESM": true,
|
|
871
|
+
"relativePath": [
|
|
872
|
+
"dist",
|
|
873
|
+
"commands",
|
|
874
|
+
"workflow",
|
|
875
|
+
"run.js"
|
|
876
|
+
]
|
|
877
|
+
},
|
|
606
878
|
"jahia:alive": {
|
|
607
879
|
"aliases": [],
|
|
608
880
|
"args": {},
|
|
@@ -707,14 +979,15 @@
|
|
|
707
979
|
"jahia:provision": {
|
|
708
980
|
"aliases": [],
|
|
709
981
|
"args": {},
|
|
710
|
-
"description": "Execute
|
|
982
|
+
"description": "Execute provisioning operations against a running Jahia instance. Three modes are available (exactly one per invocation):\n --manifest: Submit a YAML provisioning manifest with optional file attachments.\n --modules: Upload module files (JARs) from a directory, one at a time.\n --scripts: Execute provisioning scripts from a directory, one at a time.\nUse --filter to limit which files are processed (glob pattern, matched against filename).",
|
|
711
983
|
"examples": [
|
|
712
984
|
"<%= config.bin %> jahia provision --manifest ./provisioning/setup.yaml",
|
|
713
|
-
"<%= config.bin %> jahia provision --manifest https://raw.githubusercontent.com/org/repo/main/provisioning.yaml",
|
|
714
|
-
"<%= config.bin %> jahia provision --manifest ./setup.yaml --file ./modules/mymodule.jar",
|
|
715
985
|
"<%= config.bin %> jahia provision --manifest ./setup.yaml --assets ./artifacts",
|
|
716
|
-
"<%= config.bin %> jahia provision --manifest ./setup.yaml --
|
|
717
|
-
"<%= config.bin %> jahia provision --
|
|
986
|
+
"<%= config.bin %> jahia provision --manifest ./setup.yaml --assets ./artifacts --filter \"*.jar\"",
|
|
987
|
+
"<%= config.bin %> jahia provision --modules ./modules/",
|
|
988
|
+
"<%= config.bin %> jahia provision --modules ./modules/ --filter \"*-SNAPSHOT.jar\"",
|
|
989
|
+
"<%= config.bin %> jahia provision --scripts ./scripts/",
|
|
990
|
+
"<%= config.bin %> jahia provision --scripts ./scripts/ --filter \"*.groovy\""
|
|
718
991
|
],
|
|
719
992
|
"flags": {
|
|
720
993
|
"state": {
|
|
@@ -728,8 +1001,44 @@
|
|
|
728
1001
|
"manifest": {
|
|
729
1002
|
"char": "m",
|
|
730
1003
|
"description": "Path to a local YAML file or a public URL of the provisioning manifest",
|
|
1004
|
+
"exclusive": [
|
|
1005
|
+
"modules",
|
|
1006
|
+
"scripts"
|
|
1007
|
+
],
|
|
731
1008
|
"name": "manifest",
|
|
732
|
-
"
|
|
1009
|
+
"hasDynamicHelp": false,
|
|
1010
|
+
"multiple": false,
|
|
1011
|
+
"type": "option"
|
|
1012
|
+
},
|
|
1013
|
+
"modules": {
|
|
1014
|
+
"description": "Path to a directory of module files to install (one at a time via installOrUpgradeBundle)",
|
|
1015
|
+
"exclusive": [
|
|
1016
|
+
"manifest",
|
|
1017
|
+
"scripts",
|
|
1018
|
+
"assets",
|
|
1019
|
+
"file"
|
|
1020
|
+
],
|
|
1021
|
+
"name": "modules",
|
|
1022
|
+
"hasDynamicHelp": false,
|
|
1023
|
+
"multiple": false,
|
|
1024
|
+
"type": "option"
|
|
1025
|
+
},
|
|
1026
|
+
"scripts": {
|
|
1027
|
+
"description": "Path to a directory of provisioning scripts to execute (one at a time via executeScript)",
|
|
1028
|
+
"exclusive": [
|
|
1029
|
+
"manifest",
|
|
1030
|
+
"modules",
|
|
1031
|
+
"assets",
|
|
1032
|
+
"file"
|
|
1033
|
+
],
|
|
1034
|
+
"name": "scripts",
|
|
1035
|
+
"hasDynamicHelp": false,
|
|
1036
|
+
"multiple": false,
|
|
1037
|
+
"type": "option"
|
|
1038
|
+
},
|
|
1039
|
+
"filter": {
|
|
1040
|
+
"description": "Glob pattern to filter files in --assets, --modules, or --scripts directories (default: all files). Example: \"*-SNAPSHOT.jar\"",
|
|
1041
|
+
"name": "filter",
|
|
733
1042
|
"hasDynamicHelp": false,
|
|
734
1043
|
"multiple": false,
|
|
735
1044
|
"type": "option"
|
|
@@ -759,7 +1068,7 @@
|
|
|
759
1068
|
},
|
|
760
1069
|
"file": {
|
|
761
1070
|
"char": "f",
|
|
762
|
-
"description": "File attachment to include (can be specified multiple times)",
|
|
1071
|
+
"description": "File attachment to include with --manifest (can be specified multiple times)",
|
|
763
1072
|
"name": "file",
|
|
764
1073
|
"hasDynamicHelp": false,
|
|
765
1074
|
"multiple": true,
|
|
@@ -767,7 +1076,7 @@
|
|
|
767
1076
|
},
|
|
768
1077
|
"assets": {
|
|
769
1078
|
"char": "a",
|
|
770
|
-
"description": "Directory whose files are attached to the provisioning request
|
|
1079
|
+
"description": "Directory whose files are attached to the --manifest provisioning request",
|
|
771
1080
|
"name": "assets",
|
|
772
1081
|
"hasDynamicHelp": false,
|
|
773
1082
|
"multiple": false,
|
|
@@ -795,106 +1104,7 @@
|
|
|
795
1104
|
"jahia",
|
|
796
1105
|
"provision.js"
|
|
797
1106
|
]
|
|
798
|
-
},
|
|
799
|
-
"workflow:init": {
|
|
800
|
-
"aliases": [],
|
|
801
|
-
"args": {},
|
|
802
|
-
"description": "Add a sample workflow section to a configuration file. Generates ~5 representative steps (init, create, alive, test, cleanup) to help get started. Preserves existing environment and tests sections.",
|
|
803
|
-
"examples": [
|
|
804
|
-
"<%= config.bin %> workflow init",
|
|
805
|
-
"<%= config.bin %> workflow init --config ./my-config.yml",
|
|
806
|
-
"<%= config.bin %> workflow init --force",
|
|
807
|
-
"<%= config.bin %> workflow init --json"
|
|
808
|
-
],
|
|
809
|
-
"flags": {
|
|
810
|
-
"config": {
|
|
811
|
-
"char": "c",
|
|
812
|
-
"description": "Path to the YAML configuration file",
|
|
813
|
-
"name": "config",
|
|
814
|
-
"default": "jahia-cli.config.yml",
|
|
815
|
-
"hasDynamicHelp": false,
|
|
816
|
-
"multiple": false,
|
|
817
|
-
"type": "option"
|
|
818
|
-
},
|
|
819
|
-
"force": {
|
|
820
|
-
"char": "f",
|
|
821
|
-
"description": "Overwrite existing workflow section if already present",
|
|
822
|
-
"name": "force",
|
|
823
|
-
"allowNo": false,
|
|
824
|
-
"type": "boolean"
|
|
825
|
-
},
|
|
826
|
-
"json": {
|
|
827
|
-
"description": "Output result as structured JSON (for AI agents and scripting)",
|
|
828
|
-
"name": "json",
|
|
829
|
-
"allowNo": false,
|
|
830
|
-
"type": "boolean"
|
|
831
|
-
}
|
|
832
|
-
},
|
|
833
|
-
"hasDynamicHelp": false,
|
|
834
|
-
"hiddenAliases": [],
|
|
835
|
-
"id": "workflow:init",
|
|
836
|
-
"pluginAlias": "@jahia/jahia-cli",
|
|
837
|
-
"pluginName": "@jahia/jahia-cli",
|
|
838
|
-
"pluginType": "core",
|
|
839
|
-
"strict": true,
|
|
840
|
-
"enableJsonFlag": false,
|
|
841
|
-
"isESM": true,
|
|
842
|
-
"relativePath": [
|
|
843
|
-
"dist",
|
|
844
|
-
"commands",
|
|
845
|
-
"workflow",
|
|
846
|
-
"init.js"
|
|
847
|
-
]
|
|
848
|
-
},
|
|
849
|
-
"workflow:run": {
|
|
850
|
-
"aliases": [],
|
|
851
|
-
"args": {},
|
|
852
|
-
"description": "Execute a workflow defined in a configuration file. Runs steps sequentially — shell commands via execa, jahia-cli commands via subprocess. Stops on first failure.",
|
|
853
|
-
"examples": [
|
|
854
|
-
"<%= config.bin %> workflow run --config jahia-cli.config.yml",
|
|
855
|
-
"<%= config.bin %> workflow run --config ./my-config.yml --json"
|
|
856
|
-
],
|
|
857
|
-
"flags": {
|
|
858
|
-
"config": {
|
|
859
|
-
"char": "c",
|
|
860
|
-
"description": "Path to the YAML configuration file",
|
|
861
|
-
"name": "config",
|
|
862
|
-
"required": true,
|
|
863
|
-
"hasDynamicHelp": false,
|
|
864
|
-
"multiple": false,
|
|
865
|
-
"type": "option"
|
|
866
|
-
},
|
|
867
|
-
"json": {
|
|
868
|
-
"description": "Output result as structured JSON (for AI agents and scripting)",
|
|
869
|
-
"name": "json",
|
|
870
|
-
"allowNo": false,
|
|
871
|
-
"type": "boolean"
|
|
872
|
-
},
|
|
873
|
-
"state": {
|
|
874
|
-
"char": "s",
|
|
875
|
-
"description": "Path to the state file (auto-passed to jahia-cli subcommands)",
|
|
876
|
-
"name": "state",
|
|
877
|
-
"hasDynamicHelp": false,
|
|
878
|
-
"multiple": false,
|
|
879
|
-
"type": "option"
|
|
880
|
-
}
|
|
881
|
-
},
|
|
882
|
-
"hasDynamicHelp": false,
|
|
883
|
-
"hiddenAliases": [],
|
|
884
|
-
"id": "workflow:run",
|
|
885
|
-
"pluginAlias": "@jahia/jahia-cli",
|
|
886
|
-
"pluginName": "@jahia/jahia-cli",
|
|
887
|
-
"pluginType": "core",
|
|
888
|
-
"strict": true,
|
|
889
|
-
"enableJsonFlag": false,
|
|
890
|
-
"isESM": true,
|
|
891
|
-
"relativePath": [
|
|
892
|
-
"dist",
|
|
893
|
-
"commands",
|
|
894
|
-
"workflow",
|
|
895
|
-
"run.js"
|
|
896
|
-
]
|
|
897
1107
|
}
|
|
898
1108
|
},
|
|
899
|
-
"version": "0.
|
|
1109
|
+
"version": "0.3.1"
|
|
900
1110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jahia/jahia-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "A CLI to accelerate developing and testing Jahia in the Agentic era",
|
|
5
5
|
"author": "Jahia",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,13 +40,15 @@
|
|
|
40
40
|
"@inquirer/prompts": "^7.10.1",
|
|
41
41
|
"@oclif/core": "^4",
|
|
42
42
|
"execa": "^9.6.1",
|
|
43
|
-
"js-yaml": "^4.1.1"
|
|
43
|
+
"js-yaml": "^4.1.1",
|
|
44
|
+
"picomatch": "^4.0.4"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@eslint/js": "^9.39.4",
|
|
47
48
|
"@oclif/test": "^4",
|
|
48
49
|
"@types/js-yaml": "^4.0.9",
|
|
49
50
|
"@types/node": "^22",
|
|
51
|
+
"@types/picomatch": "^4.0.3",
|
|
50
52
|
"@typescript-eslint/eslint-plugin": "^8",
|
|
51
53
|
"@typescript-eslint/parser": "^8",
|
|
52
54
|
"@vitest/coverage-v8": "^3.2.4",
|