@dokploy/cli 0.29.14 → 0.30.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.
@@ -339,6 +339,7 @@ export function registerGeneratedCommands(program) {
339
339
  .option('--description <value>', 'description')
340
340
  .requiredOption('--environmentId <value>', 'environmentId')
341
341
  .option('--serverId <value>', 'serverId')
342
+ .option('--sourceType <value>', 'sourceType (github, docker, git, gitlab, bitbucket, gitea, drop)')
342
343
  .option('--json', 'Output raw JSON')
343
344
  .action(async (opts) => {
344
345
  const jsonOutput = opts.json;
@@ -946,6 +947,8 @@ export function registerGeneratedCommands(program) {
946
947
  .option('--bitbucketId <value>', 'bitbucketId')
947
948
  .option('--buildServerId <value>', 'buildServerId')
948
949
  .option('--buildRegistryId <value>', 'buildRegistryId')
950
+ .option('--networkIds <value>', 'networkIds')
951
+ .option('--detachDokployNetwork', 'detachDokployNetwork')
949
952
  .option('--json', 'Output raw JSON')
950
953
  .action(async (opts) => {
951
954
  const jsonOutput = opts.json;
@@ -978,6 +981,8 @@ export function registerGeneratedCommands(program) {
978
981
  opts["isStaticSpa"] = opts["isStaticSpa"] === true || opts["isStaticSpa"] === "true";
979
982
  if (opts["createEnvFile"] != null)
980
983
  opts["createEnvFile"] = opts["createEnvFile"] === true || opts["createEnvFile"] === "true";
984
+ if (opts["detachDokployNetwork"] != null)
985
+ opts["detachDokployNetwork"] = opts["detachDokployNetwork"] === true || opts["detachDokployNetwork"] === "true";
981
986
  const data = await apiPost("application.update", opts);
982
987
  if (jsonOutput) {
983
988
  console.log(JSON.stringify(data, null, 2));
@@ -1618,6 +1623,7 @@ export function registerGeneratedCommands(program) {
1618
1623
  .option('--appName <value>', 'appName')
1619
1624
  .option('--serverId <value>', 'serverId')
1620
1625
  .option('--composeFile <value>', 'composeFile')
1626
+ .option('--sourceType <value>', 'sourceType (git, github, gitlab, bitbucket, gitea, raw)')
1621
1627
  .option('--json', 'Output raw JSON')
1622
1628
  .action(async (opts) => {
1623
1629
  const jsonOutput = opts.json;
@@ -1996,10 +2002,13 @@ export function registerGeneratedCommands(program) {
1996
2002
  .description('compose saveEnvironment')
1997
2003
  .requiredOption('--composeId <value>', 'composeId')
1998
2004
  .requiredOption('--env <value>', 'env')
2005
+ .option('--createEnvFile', 'createEnvFile')
1999
2006
  .option('--json', 'Output raw JSON')
2000
2007
  .action(async (opts) => {
2001
2008
  const jsonOutput = opts.json;
2002
2009
  delete opts.json;
2010
+ if (opts["createEnvFile"] != null)
2011
+ opts["createEnvFile"] = opts["createEnvFile"] === true || opts["createEnvFile"] === "true";
2003
2012
  const data = await apiPost("compose.saveEnvironment", opts);
2004
2013
  if (jsonOutput) {
2005
2014
  console.log(JSON.stringify(data, null, 2));
@@ -2115,6 +2124,7 @@ export function registerGeneratedCommands(program) {
2115
2124
  .option('--customGitBranch <value>', 'customGitBranch')
2116
2125
  .option('--customGitSSHKeyId <value>', 'customGitSSHKeyId')
2117
2126
  .option('--command <value>', 'command')
2127
+ .option('--createEnvFile', 'createEnvFile')
2118
2128
  .option('--enableSubmodules', 'enableSubmodules')
2119
2129
  .option('--composePath <value>', 'composePath')
2120
2130
  .option('--suffix <value>', 'suffix')
@@ -2123,6 +2133,7 @@ export function registerGeneratedCommands(program) {
2123
2133
  .option('--isolatedDeploymentsVolume', 'isolatedDeploymentsVolume')
2124
2134
  .option('--triggerType <value>', 'triggerType (push, tag)')
2125
2135
  .option('--composeStatus <value>', 'composeStatus (idle, running, done, error)')
2136
+ .option('--icon <value>', 'icon')
2126
2137
  .option('--environmentId <value>', 'environmentId')
2127
2138
  .option('--createdAt <value>', 'createdAt')
2128
2139
  .option('--watchPaths <value>', 'watchPaths')
@@ -2130,6 +2141,7 @@ export function registerGeneratedCommands(program) {
2130
2141
  .option('--gitlabId <value>', 'gitlabId')
2131
2142
  .option('--bitbucketId <value>', 'bitbucketId')
2132
2143
  .option('--giteaId <value>', 'giteaId')
2144
+ .option('--serviceNetworks <value>', 'serviceNetworks')
2133
2145
  .option('--json', 'Output raw JSON')
2134
2146
  .action(async (opts) => {
2135
2147
  const jsonOutput = opts.json;
@@ -2138,6 +2150,8 @@ export function registerGeneratedCommands(program) {
2138
2150
  opts["autoDeploy"] = opts["autoDeploy"] === true || opts["autoDeploy"] === "true";
2139
2151
  if (opts["gitlabProjectId"] != null)
2140
2152
  opts["gitlabProjectId"] = Number(opts["gitlabProjectId"]);
2153
+ if (opts["createEnvFile"] != null)
2154
+ opts["createEnvFile"] = opts["createEnvFile"] === true || opts["createEnvFile"] === "true";
2141
2155
  if (opts["enableSubmodules"] != null)
2142
2156
  opts["enableSubmodules"] = opts["enableSubmodules"] === true || opts["enableSubmodules"] === "true";
2143
2157
  if (opts["randomize"] != null)
@@ -2512,7 +2526,553 @@ export function registerGeneratedCommands(program) {
2512
2526
  .action(async (opts) => {
2513
2527
  const jsonOutput = opts.json;
2514
2528
  delete opts.json;
2515
- const data = await apiPost("destination.update", opts);
2529
+ const data = await apiPost("destination.update", opts);
2530
+ if (jsonOutput) {
2531
+ console.log(JSON.stringify(data, null, 2));
2532
+ }
2533
+ else {
2534
+ printOutput(data);
2535
+ }
2536
+ });
2537
+ const g_dnsProvider = program.command('dns-provider').description('dns-provider commands');
2538
+ g_dnsProvider
2539
+ .command('all')
2540
+ .description('dnsProvider all')
2541
+ .option('--json', 'Output raw JSON')
2542
+ .action(async (opts) => {
2543
+ const jsonOutput = opts.json;
2544
+ delete opts.json;
2545
+ const data = await apiGet("dnsProvider.all", opts);
2546
+ if (jsonOutput) {
2547
+ console.log(JSON.stringify(data, null, 2));
2548
+ }
2549
+ else {
2550
+ printOutput(data);
2551
+ }
2552
+ });
2553
+ g_dnsProvider
2554
+ .command('create')
2555
+ .description('dnsProvider create')
2556
+ .requiredOption('--name <value>', 'name')
2557
+ .requiredOption('--config <value>', 'config')
2558
+ .option('--json', 'Output raw JSON')
2559
+ .action(async (opts) => {
2560
+ const jsonOutput = opts.json;
2561
+ delete opts.json;
2562
+ const data = await apiPost("dnsProvider.create", opts);
2563
+ if (jsonOutput) {
2564
+ console.log(JSON.stringify(data, null, 2));
2565
+ }
2566
+ else {
2567
+ printOutput(data);
2568
+ }
2569
+ });
2570
+ g_dnsProvider
2571
+ .command('create-record')
2572
+ .description('dnsProvider createRecord')
2573
+ .requiredOption('--type <value>', 'type (A, CNAME)')
2574
+ .requiredOption('--name <value>', 'name')
2575
+ .requiredOption('--content <value>', 'content')
2576
+ .option('--ttl <value>', 'ttl')
2577
+ .requiredOption('--dnsProviderId <value>', 'dnsProviderId')
2578
+ .requiredOption('--zoneId <value>', 'zoneId')
2579
+ .option('--json', 'Output raw JSON')
2580
+ .action(async (opts) => {
2581
+ const jsonOutput = opts.json;
2582
+ delete opts.json;
2583
+ if (opts["ttl"] != null)
2584
+ opts["ttl"] = Number(opts["ttl"]);
2585
+ const data = await apiPost("dnsProvider.createRecord", opts);
2586
+ if (jsonOutput) {
2587
+ console.log(JSON.stringify(data, null, 2));
2588
+ }
2589
+ else {
2590
+ printOutput(data);
2591
+ }
2592
+ });
2593
+ g_dnsProvider
2594
+ .command('delete-record')
2595
+ .description('dnsProvider deleteRecord')
2596
+ .requiredOption('--dnsProviderId <value>', 'dnsProviderId')
2597
+ .requiredOption('--zoneId <value>', 'zoneId')
2598
+ .requiredOption('--recordId <value>', 'recordId')
2599
+ .option('--json', 'Output raw JSON')
2600
+ .action(async (opts) => {
2601
+ const jsonOutput = opts.json;
2602
+ delete opts.json;
2603
+ const data = await apiPost("dnsProvider.deleteRecord", opts);
2604
+ if (jsonOutput) {
2605
+ console.log(JSON.stringify(data, null, 2));
2606
+ }
2607
+ else {
2608
+ printOutput(data);
2609
+ }
2610
+ });
2611
+ g_dnsProvider
2612
+ .command('list-records')
2613
+ .description('dnsProvider listRecords')
2614
+ .requiredOption('--dnsProviderId <value>', 'dnsProviderId')
2615
+ .requiredOption('--zoneId <value>', 'zoneId')
2616
+ .option('--json', 'Output raw JSON')
2617
+ .action(async (opts) => {
2618
+ const jsonOutput = opts.json;
2619
+ delete opts.json;
2620
+ const data = await apiGet("dnsProvider.listRecords", opts);
2621
+ if (jsonOutput) {
2622
+ console.log(JSON.stringify(data, null, 2));
2623
+ }
2624
+ else {
2625
+ printOutput(data);
2626
+ }
2627
+ });
2628
+ g_dnsProvider
2629
+ .command('list-zones')
2630
+ .description('dnsProvider listZones')
2631
+ .requiredOption('--dnsProviderId <value>', 'dnsProviderId')
2632
+ .option('--json', 'Output raw JSON')
2633
+ .action(async (opts) => {
2634
+ const jsonOutput = opts.json;
2635
+ delete opts.json;
2636
+ const data = await apiGet("dnsProvider.listZones", opts);
2637
+ if (jsonOutput) {
2638
+ console.log(JSON.stringify(data, null, 2));
2639
+ }
2640
+ else {
2641
+ printOutput(data);
2642
+ }
2643
+ });
2644
+ g_dnsProvider
2645
+ .command('one')
2646
+ .description('dnsProvider one')
2647
+ .requiredOption('--dnsProviderId <value>', 'dnsProviderId')
2648
+ .option('--json', 'Output raw JSON')
2649
+ .action(async (opts) => {
2650
+ const jsonOutput = opts.json;
2651
+ delete opts.json;
2652
+ const data = await apiGet("dnsProvider.one", opts);
2653
+ if (jsonOutput) {
2654
+ console.log(JSON.stringify(data, null, 2));
2655
+ }
2656
+ else {
2657
+ printOutput(data);
2658
+ }
2659
+ });
2660
+ g_dnsProvider
2661
+ .command('remove')
2662
+ .description('dnsProvider remove')
2663
+ .requiredOption('--dnsProviderId <value>', 'dnsProviderId')
2664
+ .option('--json', 'Output raw JSON')
2665
+ .action(async (opts) => {
2666
+ const jsonOutput = opts.json;
2667
+ delete opts.json;
2668
+ const data = await apiPost("dnsProvider.remove", opts);
2669
+ if (jsonOutput) {
2670
+ console.log(JSON.stringify(data, null, 2));
2671
+ }
2672
+ else {
2673
+ printOutput(data);
2674
+ }
2675
+ });
2676
+ g_dnsProvider
2677
+ .command('test-connection')
2678
+ .description('dnsProvider testConnection')
2679
+ .option('--dnsProviderId <value>', 'dnsProviderId')
2680
+ .option('--config <value>', 'config')
2681
+ .option('--json', 'Output raw JSON')
2682
+ .action(async (opts) => {
2683
+ const jsonOutput = opts.json;
2684
+ delete opts.json;
2685
+ const data = await apiPost("dnsProvider.testConnection", opts);
2686
+ if (jsonOutput) {
2687
+ console.log(JSON.stringify(data, null, 2));
2688
+ }
2689
+ else {
2690
+ printOutput(data);
2691
+ }
2692
+ });
2693
+ g_dnsProvider
2694
+ .command('update')
2695
+ .description('dnsProvider update')
2696
+ .requiredOption('--dnsProviderId <value>', 'dnsProviderId')
2697
+ .requiredOption('--name <value>', 'name')
2698
+ .requiredOption('--config <value>', 'config')
2699
+ .option('--json', 'Output raw JSON')
2700
+ .action(async (opts) => {
2701
+ const jsonOutput = opts.json;
2702
+ delete opts.json;
2703
+ const data = await apiPost("dnsProvider.update", opts);
2704
+ if (jsonOutput) {
2705
+ console.log(JSON.stringify(data, null, 2));
2706
+ }
2707
+ else {
2708
+ printOutput(data);
2709
+ }
2710
+ });
2711
+ g_dnsProvider
2712
+ .command('update-record')
2713
+ .description('dnsProvider updateRecord')
2714
+ .requiredOption('--type <value>', 'type (A, CNAME)')
2715
+ .requiredOption('--name <value>', 'name')
2716
+ .requiredOption('--content <value>', 'content')
2717
+ .option('--ttl <value>', 'ttl')
2718
+ .requiredOption('--dnsProviderId <value>', 'dnsProviderId')
2719
+ .requiredOption('--zoneId <value>', 'zoneId')
2720
+ .requiredOption('--recordId <value>', 'recordId')
2721
+ .option('--json', 'Output raw JSON')
2722
+ .action(async (opts) => {
2723
+ const jsonOutput = opts.json;
2724
+ delete opts.json;
2725
+ if (opts["ttl"] != null)
2726
+ opts["ttl"] = Number(opts["ttl"]);
2727
+ const data = await apiPost("dnsProvider.updateRecord", opts);
2728
+ if (jsonOutput) {
2729
+ console.log(JSON.stringify(data, null, 2));
2730
+ }
2731
+ else {
2732
+ printOutput(data);
2733
+ }
2734
+ });
2735
+ const g_docker = program.command('docker').description('docker commands');
2736
+ g_docker
2737
+ .command('delete-container-file')
2738
+ .description('docker deleteContainerFile')
2739
+ .requiredOption('--containerId <value>', 'containerId')
2740
+ .requiredOption('--path <value>', 'path')
2741
+ .option('--serverId <value>', 'serverId')
2742
+ .option('--json', 'Output raw JSON')
2743
+ .action(async (opts) => {
2744
+ const jsonOutput = opts.json;
2745
+ delete opts.json;
2746
+ const data = await apiPost("docker.deleteContainerFile", opts);
2747
+ if (jsonOutput) {
2748
+ console.log(JSON.stringify(data, null, 2));
2749
+ }
2750
+ else {
2751
+ printOutput(data);
2752
+ }
2753
+ });
2754
+ g_docker
2755
+ .command('get-config')
2756
+ .description('docker getConfig')
2757
+ .requiredOption('--containerId <value>', 'containerId')
2758
+ .option('--serverId <value>', 'serverId')
2759
+ .option('--json', 'Output raw JSON')
2760
+ .action(async (opts) => {
2761
+ const jsonOutput = opts.json;
2762
+ delete opts.json;
2763
+ const data = await apiGet("docker.getConfig", opts);
2764
+ if (jsonOutput) {
2765
+ console.log(JSON.stringify(data, null, 2));
2766
+ }
2767
+ else {
2768
+ printOutput(data);
2769
+ }
2770
+ });
2771
+ g_docker
2772
+ .command('get-containers')
2773
+ .description('docker getContainers')
2774
+ .option('--serverId <value>', 'serverId')
2775
+ .option('--json', 'Output raw JSON')
2776
+ .action(async (opts) => {
2777
+ const jsonOutput = opts.json;
2778
+ delete opts.json;
2779
+ const data = await apiGet("docker.getContainers", opts);
2780
+ if (jsonOutput) {
2781
+ console.log(JSON.stringify(data, null, 2));
2782
+ }
2783
+ else {
2784
+ printOutput(data);
2785
+ }
2786
+ });
2787
+ g_docker
2788
+ .command('get-containers-by-app-label')
2789
+ .description('docker getContainersByAppLabel')
2790
+ .requiredOption('--appName <value>', 'appName')
2791
+ .option('--serverId <value>', 'serverId')
2792
+ .requiredOption('--type <value>', 'type (standalone, swarm)')
2793
+ .option('--json', 'Output raw JSON')
2794
+ .action(async (opts) => {
2795
+ const jsonOutput = opts.json;
2796
+ delete opts.json;
2797
+ const data = await apiGet("docker.getContainersByAppLabel", opts);
2798
+ if (jsonOutput) {
2799
+ console.log(JSON.stringify(data, null, 2));
2800
+ }
2801
+ else {
2802
+ printOutput(data);
2803
+ }
2804
+ });
2805
+ g_docker
2806
+ .command('get-containers-by-app-name-match')
2807
+ .description('docker getContainersByAppNameMatch')
2808
+ .option('--appType <value>', 'appType (stack, docker-compose)')
2809
+ .requiredOption('--appName <value>', 'appName')
2810
+ .option('--serverId <value>', 'serverId')
2811
+ .option('--json', 'Output raw JSON')
2812
+ .action(async (opts) => {
2813
+ const jsonOutput = opts.json;
2814
+ delete opts.json;
2815
+ const data = await apiGet("docker.getContainersByAppNameMatch", opts);
2816
+ if (jsonOutput) {
2817
+ console.log(JSON.stringify(data, null, 2));
2818
+ }
2819
+ else {
2820
+ printOutput(data);
2821
+ }
2822
+ });
2823
+ g_docker
2824
+ .command('get-events')
2825
+ .description('docker getEvents')
2826
+ .option('--serverId <value>', 'serverId')
2827
+ .option('--minutes <value>', 'minutes')
2828
+ .option('--json', 'Output raw JSON')
2829
+ .action(async (opts) => {
2830
+ const jsonOutput = opts.json;
2831
+ delete opts.json;
2832
+ if (opts["minutes"] != null)
2833
+ opts["minutes"] = Number(opts["minutes"]);
2834
+ const data = await apiGet("docker.getEvents", opts);
2835
+ if (jsonOutput) {
2836
+ console.log(JSON.stringify(data, null, 2));
2837
+ }
2838
+ else {
2839
+ printOutput(data);
2840
+ }
2841
+ });
2842
+ g_docker
2843
+ .command('get-server-health')
2844
+ .description('docker getServerHealth')
2845
+ .option('--serverId <value>', 'serverId')
2846
+ .option('--sinceHours <value>', 'sinceHours')
2847
+ .option('--json', 'Output raw JSON')
2848
+ .action(async (opts) => {
2849
+ const jsonOutput = opts.json;
2850
+ delete opts.json;
2851
+ if (opts["sinceHours"] != null)
2852
+ opts["sinceHours"] = Number(opts["sinceHours"]);
2853
+ const data = await apiGet("docker.getServerHealth", opts);
2854
+ if (jsonOutput) {
2855
+ console.log(JSON.stringify(data, null, 2));
2856
+ }
2857
+ else {
2858
+ printOutput(data);
2859
+ }
2860
+ });
2861
+ g_docker
2862
+ .command('get-service-containers-by-app-name')
2863
+ .description('docker getServiceContainersByAppName')
2864
+ .requiredOption('--appName <value>', 'appName')
2865
+ .option('--serverId <value>', 'serverId')
2866
+ .option('--json', 'Output raw JSON')
2867
+ .action(async (opts) => {
2868
+ const jsonOutput = opts.json;
2869
+ delete opts.json;
2870
+ const data = await apiGet("docker.getServiceContainersByAppName", opts);
2871
+ if (jsonOutput) {
2872
+ console.log(JSON.stringify(data, null, 2));
2873
+ }
2874
+ else {
2875
+ printOutput(data);
2876
+ }
2877
+ });
2878
+ g_docker
2879
+ .command('get-stack-containers-by-app-name')
2880
+ .description('docker getStackContainersByAppName')
2881
+ .requiredOption('--appName <value>', 'appName')
2882
+ .option('--serverId <value>', 'serverId')
2883
+ .option('--json', 'Output raw JSON')
2884
+ .action(async (opts) => {
2885
+ const jsonOutput = opts.json;
2886
+ delete opts.json;
2887
+ const data = await apiGet("docker.getStackContainersByAppName", opts);
2888
+ if (jsonOutput) {
2889
+ console.log(JSON.stringify(data, null, 2));
2890
+ }
2891
+ else {
2892
+ printOutput(data);
2893
+ }
2894
+ });
2895
+ g_docker
2896
+ .command('kill-container')
2897
+ .description('docker killContainer')
2898
+ .requiredOption('--containerId <value>', 'containerId')
2899
+ .option('--serverId <value>', 'serverId')
2900
+ .option('--json', 'Output raw JSON')
2901
+ .action(async (opts) => {
2902
+ const jsonOutput = opts.json;
2903
+ delete opts.json;
2904
+ const data = await apiPost("docker.killContainer", opts);
2905
+ if (jsonOutput) {
2906
+ console.log(JSON.stringify(data, null, 2));
2907
+ }
2908
+ else {
2909
+ printOutput(data);
2910
+ }
2911
+ });
2912
+ g_docker
2913
+ .command('list-container-files')
2914
+ .description('docker listContainerFiles')
2915
+ .requiredOption('--containerId <value>', 'containerId')
2916
+ .requiredOption('--path <value>', 'path')
2917
+ .option('--serverId <value>', 'serverId')
2918
+ .option('--json', 'Output raw JSON')
2919
+ .action(async (opts) => {
2920
+ const jsonOutput = opts.json;
2921
+ delete opts.json;
2922
+ const data = await apiGet("docker.listContainerFiles", opts);
2923
+ if (jsonOutput) {
2924
+ console.log(JSON.stringify(data, null, 2));
2925
+ }
2926
+ else {
2927
+ printOutput(data);
2928
+ }
2929
+ });
2930
+ g_docker
2931
+ .command('read-container-file')
2932
+ .description('docker readContainerFile')
2933
+ .requiredOption('--containerId <value>', 'containerId')
2934
+ .requiredOption('--path <value>', 'path')
2935
+ .option('--serverId <value>', 'serverId')
2936
+ .option('--json', 'Output raw JSON')
2937
+ .action(async (opts) => {
2938
+ const jsonOutput = opts.json;
2939
+ delete opts.json;
2940
+ const data = await apiGet("docker.readContainerFile", opts);
2941
+ if (jsonOutput) {
2942
+ console.log(JSON.stringify(data, null, 2));
2943
+ }
2944
+ else {
2945
+ printOutput(data);
2946
+ }
2947
+ });
2948
+ g_docker
2949
+ .command('remove-container')
2950
+ .description('docker removeContainer')
2951
+ .requiredOption('--containerId <value>', 'containerId')
2952
+ .option('--serverId <value>', 'serverId')
2953
+ .option('--json', 'Output raw JSON')
2954
+ .action(async (opts) => {
2955
+ const jsonOutput = opts.json;
2956
+ delete opts.json;
2957
+ const data = await apiPost("docker.removeContainer", opts);
2958
+ if (jsonOutput) {
2959
+ console.log(JSON.stringify(data, null, 2));
2960
+ }
2961
+ else {
2962
+ printOutput(data);
2963
+ }
2964
+ });
2965
+ g_docker
2966
+ .command('restart-container')
2967
+ .description('docker restartContainer')
2968
+ .requiredOption('--containerId <value>', 'containerId')
2969
+ .option('--serverId <value>', 'serverId')
2970
+ .option('--json', 'Output raw JSON')
2971
+ .action(async (opts) => {
2972
+ const jsonOutput = opts.json;
2973
+ delete opts.json;
2974
+ const data = await apiPost("docker.restartContainer", opts);
2975
+ if (jsonOutput) {
2976
+ console.log(JSON.stringify(data, null, 2));
2977
+ }
2978
+ else {
2979
+ printOutput(data);
2980
+ }
2981
+ });
2982
+ g_docker
2983
+ .command('start-container')
2984
+ .description('docker startContainer')
2985
+ .requiredOption('--containerId <value>', 'containerId')
2986
+ .option('--serverId <value>', 'serverId')
2987
+ .option('--json', 'Output raw JSON')
2988
+ .action(async (opts) => {
2989
+ const jsonOutput = opts.json;
2990
+ delete opts.json;
2991
+ const data = await apiPost("docker.startContainer", opts);
2992
+ if (jsonOutput) {
2993
+ console.log(JSON.stringify(data, null, 2));
2994
+ }
2995
+ else {
2996
+ printOutput(data);
2997
+ }
2998
+ });
2999
+ g_docker
3000
+ .command('stop-container')
3001
+ .description('docker stopContainer')
3002
+ .requiredOption('--containerId <value>', 'containerId')
3003
+ .option('--serverId <value>', 'serverId')
3004
+ .option('--json', 'Output raw JSON')
3005
+ .action(async (opts) => {
3006
+ const jsonOutput = opts.json;
3007
+ delete opts.json;
3008
+ const data = await apiPost("docker.stopContainer", opts);
3009
+ if (jsonOutput) {
3010
+ console.log(JSON.stringify(data, null, 2));
3011
+ }
3012
+ else {
3013
+ printOutput(data);
3014
+ }
3015
+ });
3016
+ g_docker
3017
+ .command('upload-file-to-container')
3018
+ .description('docker uploadFileToContainer')
3019
+ .option('--json', 'Output raw JSON')
3020
+ .action(async (opts) => {
3021
+ const jsonOutput = opts.json;
3022
+ delete opts.json;
3023
+ const data = await apiPost("docker.uploadFileToContainer", opts);
3024
+ if (jsonOutput) {
3025
+ console.log(JSON.stringify(data, null, 2));
3026
+ }
3027
+ else {
3028
+ printOutput(data);
3029
+ }
3030
+ });
3031
+ g_docker
3032
+ .command('write-container-file')
3033
+ .description('docker writeContainerFile')
3034
+ .requiredOption('--containerId <value>', 'containerId')
3035
+ .requiredOption('--path <value>', 'path')
3036
+ .requiredOption('--content <value>', 'content')
3037
+ .option('--serverId <value>', 'serverId')
3038
+ .option('--json', 'Output raw JSON')
3039
+ .action(async (opts) => {
3040
+ const jsonOutput = opts.json;
3041
+ delete opts.json;
3042
+ const data = await apiPost("docker.writeContainerFile", opts);
3043
+ if (jsonOutput) {
3044
+ console.log(JSON.stringify(data, null, 2));
3045
+ }
3046
+ else {
3047
+ printOutput(data);
3048
+ }
3049
+ });
3050
+ const g_dockerDiskUsage = program.command('docker-disk-usage').description('docker-disk-usage commands');
3051
+ g_dockerDiskUsage
3052
+ .command('get-build-cache')
3053
+ .description('dockerDiskUsage getBuildCache')
3054
+ .option('--serverId <value>', 'serverId')
3055
+ .option('--json', 'Output raw JSON')
3056
+ .action(async (opts) => {
3057
+ const jsonOutput = opts.json;
3058
+ delete opts.json;
3059
+ const data = await apiGet("dockerDiskUsage.getBuildCache", opts);
3060
+ if (jsonOutput) {
3061
+ console.log(JSON.stringify(data, null, 2));
3062
+ }
3063
+ else {
3064
+ printOutput(data);
3065
+ }
3066
+ });
3067
+ g_dockerDiskUsage
3068
+ .command('get-disk-usage')
3069
+ .description('dockerDiskUsage getDiskUsage')
3070
+ .option('--serverId <value>', 'serverId')
3071
+ .option('--json', 'Output raw JSON')
3072
+ .action(async (opts) => {
3073
+ const jsonOutput = opts.json;
3074
+ delete opts.json;
3075
+ const data = await apiGet("dockerDiskUsage.getDiskUsage", opts);
2516
3076
  if (jsonOutput) {
2517
3077
  console.log(JSON.stringify(data, null, 2));
2518
3078
  }
@@ -2520,17 +3080,15 @@ export function registerGeneratedCommands(program) {
2520
3080
  printOutput(data);
2521
3081
  }
2522
3082
  });
2523
- const g_docker = program.command('docker').description('docker commands');
2524
- g_docker
2525
- .command('get-config')
2526
- .description('docker getConfig')
2527
- .requiredOption('--containerId <value>', 'containerId')
3083
+ g_dockerDiskUsage
3084
+ .command('prune-build-cache')
3085
+ .description('dockerDiskUsage pruneBuildCache')
2528
3086
  .option('--serverId <value>', 'serverId')
2529
3087
  .option('--json', 'Output raw JSON')
2530
3088
  .action(async (opts) => {
2531
3089
  const jsonOutput = opts.json;
2532
3090
  delete opts.json;
2533
- const data = await apiGet("docker.getConfig", opts);
3091
+ const data = await apiPost("dockerDiskUsage.pruneBuildCache", opts);
2534
3092
  if (jsonOutput) {
2535
3093
  console.log(JSON.stringify(data, null, 2));
2536
3094
  }
@@ -2538,15 +3096,17 @@ export function registerGeneratedCommands(program) {
2538
3096
  printOutput(data);
2539
3097
  }
2540
3098
  });
2541
- g_docker
2542
- .command('get-containers')
2543
- .description('docker getContainers')
3099
+ const g_dockerImage = program.command('docker-image').description('docker-image commands');
3100
+ g_dockerImage
3101
+ .command('get-image-config')
3102
+ .description('dockerImage getImageConfig')
3103
+ .requiredOption('--imageRef <value>', 'imageRef')
2544
3104
  .option('--serverId <value>', 'serverId')
2545
3105
  .option('--json', 'Output raw JSON')
2546
3106
  .action(async (opts) => {
2547
3107
  const jsonOutput = opts.json;
2548
3108
  delete opts.json;
2549
- const data = await apiGet("docker.getContainers", opts);
3109
+ const data = await apiGet("dockerImage.getImageConfig", opts);
2550
3110
  if (jsonOutput) {
2551
3111
  console.log(JSON.stringify(data, null, 2));
2552
3112
  }
@@ -2554,17 +3114,15 @@ export function registerGeneratedCommands(program) {
2554
3114
  printOutput(data);
2555
3115
  }
2556
3116
  });
2557
- g_docker
2558
- .command('get-containers-by-app-label')
2559
- .description('docker getContainersByAppLabel')
2560
- .requiredOption('--appName <value>', 'appName')
3117
+ g_dockerImage
3118
+ .command('get-images')
3119
+ .description('dockerImage getImages')
2561
3120
  .option('--serverId <value>', 'serverId')
2562
- .requiredOption('--type <value>', 'type (standalone, swarm)')
2563
3121
  .option('--json', 'Output raw JSON')
2564
3122
  .action(async (opts) => {
2565
3123
  const jsonOutput = opts.json;
2566
3124
  delete opts.json;
2567
- const data = await apiGet("docker.getContainersByAppLabel", opts);
3125
+ const data = await apiGet("dockerImage.getImages", opts);
2568
3126
  if (jsonOutput) {
2569
3127
  console.log(JSON.stringify(data, null, 2));
2570
3128
  }
@@ -2572,17 +3130,21 @@ export function registerGeneratedCommands(program) {
2572
3130
  printOutput(data);
2573
3131
  }
2574
3132
  });
2575
- g_docker
2576
- .command('get-containers-by-app-name-match')
2577
- .description('docker getContainersByAppNameMatch')
2578
- .option('--appType <value>', 'appType (stack, docker-compose)')
2579
- .requiredOption('--appName <value>', 'appName')
3133
+ g_dockerImage
3134
+ .command('remove-image')
3135
+ .description('dockerImage removeImage')
3136
+ .requiredOption('--repository <value>', 'repository')
3137
+ .requiredOption('--tag <value>', 'tag')
3138
+ .requiredOption('--id <value>', 'id')
3139
+ .option('--force', 'force')
2580
3140
  .option('--serverId <value>', 'serverId')
2581
3141
  .option('--json', 'Output raw JSON')
2582
3142
  .action(async (opts) => {
2583
3143
  const jsonOutput = opts.json;
2584
3144
  delete opts.json;
2585
- const data = await apiGet("docker.getContainersByAppNameMatch", opts);
3145
+ if (opts["force"] != null)
3146
+ opts["force"] = opts["force"] === true || opts["force"] === "true";
3147
+ const data = await apiPost("dockerImage.removeImage", opts);
2586
3148
  if (jsonOutput) {
2587
3149
  console.log(JSON.stringify(data, null, 2));
2588
3150
  }
@@ -2590,16 +3152,18 @@ export function registerGeneratedCommands(program) {
2590
3152
  printOutput(data);
2591
3153
  }
2592
3154
  });
2593
- g_docker
2594
- .command('get-service-containers-by-app-name')
2595
- .description('docker getServiceContainersByAppName')
2596
- .requiredOption('--appName <value>', 'appName')
3155
+ const g_dockerVolume = program.command('docker-volume').description('docker-volume commands');
3156
+ g_dockerVolume
3157
+ .command('delete-volume-file')
3158
+ .description('dockerVolume deleteVolumeFile')
3159
+ .requiredOption('--volumeName <value>', 'volumeName')
3160
+ .requiredOption('--path <value>', 'path')
2597
3161
  .option('--serverId <value>', 'serverId')
2598
3162
  .option('--json', 'Output raw JSON')
2599
3163
  .action(async (opts) => {
2600
3164
  const jsonOutput = opts.json;
2601
3165
  delete opts.json;
2602
- const data = await apiGet("docker.getServiceContainersByAppName", opts);
3166
+ const data = await apiPost("dockerVolume.deleteVolumeFile", opts);
2603
3167
  if (jsonOutput) {
2604
3168
  console.log(JSON.stringify(data, null, 2));
2605
3169
  }
@@ -2607,16 +3171,16 @@ export function registerGeneratedCommands(program) {
2607
3171
  printOutput(data);
2608
3172
  }
2609
3173
  });
2610
- g_docker
2611
- .command('get-stack-containers-by-app-name')
2612
- .description('docker getStackContainersByAppName')
2613
- .requiredOption('--appName <value>', 'appName')
3174
+ g_dockerVolume
3175
+ .command('get-volume-config')
3176
+ .description('dockerVolume getVolumeConfig')
3177
+ .requiredOption('--volumeName <value>', 'volumeName')
2614
3178
  .option('--serverId <value>', 'serverId')
2615
3179
  .option('--json', 'Output raw JSON')
2616
3180
  .action(async (opts) => {
2617
3181
  const jsonOutput = opts.json;
2618
3182
  delete opts.json;
2619
- const data = await apiGet("docker.getStackContainersByAppName", opts);
3183
+ const data = await apiGet("dockerVolume.getVolumeConfig", opts);
2620
3184
  if (jsonOutput) {
2621
3185
  console.log(JSON.stringify(data, null, 2));
2622
3186
  }
@@ -2624,16 +3188,15 @@ export function registerGeneratedCommands(program) {
2624
3188
  printOutput(data);
2625
3189
  }
2626
3190
  });
2627
- g_docker
2628
- .command('kill-container')
2629
- .description('docker killContainer')
2630
- .requiredOption('--containerId <value>', 'containerId')
3191
+ g_dockerVolume
3192
+ .command('get-volumes')
3193
+ .description('dockerVolume getVolumes')
2631
3194
  .option('--serverId <value>', 'serverId')
2632
3195
  .option('--json', 'Output raw JSON')
2633
3196
  .action(async (opts) => {
2634
3197
  const jsonOutput = opts.json;
2635
3198
  delete opts.json;
2636
- const data = await apiPost("docker.killContainer", opts);
3199
+ const data = await apiGet("dockerVolume.getVolumes", opts);
2637
3200
  if (jsonOutput) {
2638
3201
  console.log(JSON.stringify(data, null, 2));
2639
3202
  }
@@ -2641,16 +3204,15 @@ export function registerGeneratedCommands(program) {
2641
3204
  printOutput(data);
2642
3205
  }
2643
3206
  });
2644
- g_docker
2645
- .command('remove-container')
2646
- .description('docker removeContainer')
2647
- .requiredOption('--containerId <value>', 'containerId')
3207
+ g_dockerVolume
3208
+ .command('get-volumes-size')
3209
+ .description('dockerVolume getVolumesSize')
2648
3210
  .option('--serverId <value>', 'serverId')
2649
3211
  .option('--json', 'Output raw JSON')
2650
3212
  .action(async (opts) => {
2651
3213
  const jsonOutput = opts.json;
2652
3214
  delete opts.json;
2653
- const data = await apiPost("docker.removeContainer", opts);
3215
+ const data = await apiGet("dockerVolume.getVolumesSize", opts);
2654
3216
  if (jsonOutput) {
2655
3217
  console.log(JSON.stringify(data, null, 2));
2656
3218
  }
@@ -2658,16 +3220,17 @@ export function registerGeneratedCommands(program) {
2658
3220
  printOutput(data);
2659
3221
  }
2660
3222
  });
2661
- g_docker
2662
- .command('restart-container')
2663
- .description('docker restartContainer')
2664
- .requiredOption('--containerId <value>', 'containerId')
3223
+ g_dockerVolume
3224
+ .command('list-volume-files')
3225
+ .description('dockerVolume listVolumeFiles')
3226
+ .requiredOption('--volumeName <value>', 'volumeName')
3227
+ .requiredOption('--path <value>', 'path')
2665
3228
  .option('--serverId <value>', 'serverId')
2666
3229
  .option('--json', 'Output raw JSON')
2667
3230
  .action(async (opts) => {
2668
3231
  const jsonOutput = opts.json;
2669
3232
  delete opts.json;
2670
- const data = await apiPost("docker.restartContainer", opts);
3233
+ const data = await apiGet("dockerVolume.listVolumeFiles", opts);
2671
3234
  if (jsonOutput) {
2672
3235
  console.log(JSON.stringify(data, null, 2));
2673
3236
  }
@@ -2675,16 +3238,17 @@ export function registerGeneratedCommands(program) {
2675
3238
  printOutput(data);
2676
3239
  }
2677
3240
  });
2678
- g_docker
2679
- .command('start-container')
2680
- .description('docker startContainer')
2681
- .requiredOption('--containerId <value>', 'containerId')
3241
+ g_dockerVolume
3242
+ .command('read-volume-file')
3243
+ .description('dockerVolume readVolumeFile')
3244
+ .requiredOption('--volumeName <value>', 'volumeName')
3245
+ .requiredOption('--path <value>', 'path')
2682
3246
  .option('--serverId <value>', 'serverId')
2683
3247
  .option('--json', 'Output raw JSON')
2684
3248
  .action(async (opts) => {
2685
3249
  const jsonOutput = opts.json;
2686
3250
  delete opts.json;
2687
- const data = await apiPost("docker.startContainer", opts);
3251
+ const data = await apiGet("dockerVolume.readVolumeFile", opts);
2688
3252
  if (jsonOutput) {
2689
3253
  console.log(JSON.stringify(data, null, 2));
2690
3254
  }
@@ -2692,16 +3256,16 @@ export function registerGeneratedCommands(program) {
2692
3256
  printOutput(data);
2693
3257
  }
2694
3258
  });
2695
- g_docker
2696
- .command('stop-container')
2697
- .description('docker stopContainer')
2698
- .requiredOption('--containerId <value>', 'containerId')
3259
+ g_dockerVolume
3260
+ .command('remove-volume')
3261
+ .description('dockerVolume removeVolume')
3262
+ .requiredOption('--volumeName <value>', 'volumeName')
2699
3263
  .option('--serverId <value>', 'serverId')
2700
3264
  .option('--json', 'Output raw JSON')
2701
3265
  .action(async (opts) => {
2702
3266
  const jsonOutput = opts.json;
2703
3267
  delete opts.json;
2704
- const data = await apiPost("docker.stopContainer", opts);
3268
+ const data = await apiPost("dockerVolume.removeVolume", opts);
2705
3269
  if (jsonOutput) {
2706
3270
  console.log(JSON.stringify(data, null, 2));
2707
3271
  }
@@ -2709,14 +3273,18 @@ export function registerGeneratedCommands(program) {
2709
3273
  printOutput(data);
2710
3274
  }
2711
3275
  });
2712
- g_docker
2713
- .command('upload-file-to-container')
2714
- .description('docker uploadFileToContainer')
3276
+ g_dockerVolume
3277
+ .command('write-volume-file')
3278
+ .description('dockerVolume writeVolumeFile')
3279
+ .requiredOption('--volumeName <value>', 'volumeName')
3280
+ .requiredOption('--path <value>', 'path')
3281
+ .requiredOption('--content <value>', 'content')
3282
+ .option('--serverId <value>', 'serverId')
2715
3283
  .option('--json', 'Output raw JSON')
2716
3284
  .action(async (opts) => {
2717
3285
  const jsonOutput = opts.json;
2718
3286
  delete opts.json;
2719
- const data = await apiPost("docker.uploadFileToContainer", opts);
3287
+ const data = await apiPost("dockerVolume.writeVolumeFile", opts);
2720
3288
  if (jsonOutput) {
2721
3289
  console.log(JSON.stringify(data, null, 2));
2722
3290
  }
@@ -2861,6 +3429,22 @@ export function registerGeneratedCommands(program) {
2861
3429
  printOutput(data);
2862
3430
  }
2863
3431
  });
3432
+ g_domain
3433
+ .command('toggle-enable')
3434
+ .description('domain toggleEnable')
3435
+ .requiredOption('--domainId <value>', 'domainId')
3436
+ .option('--json', 'Output raw JSON')
3437
+ .action(async (opts) => {
3438
+ const jsonOutput = opts.json;
3439
+ delete opts.json;
3440
+ const data = await apiPost("domain.toggleEnable", opts);
3441
+ if (jsonOutput) {
3442
+ console.log(JSON.stringify(data, null, 2));
3443
+ }
3444
+ else {
3445
+ printOutput(data);
3446
+ }
3447
+ });
2864
3448
  g_domain
2865
3449
  .command('update')
2866
3450
  .description('domain update')
@@ -2877,6 +3461,7 @@ export function registerGeneratedCommands(program) {
2877
3461
  .option('--stripPath', 'stripPath')
2878
3462
  .option('--middlewares <value>', 'middlewares')
2879
3463
  .option('--forwardAuthEnabled', 'forwardAuthEnabled')
3464
+ .option('--enabled', 'enabled')
2880
3465
  .requiredOption('--domainId <value>', 'domainId')
2881
3466
  .option('--json', 'Output raw JSON')
2882
3467
  .action(async (opts) => {
@@ -2890,6 +3475,8 @@ export function registerGeneratedCommands(program) {
2890
3475
  opts["stripPath"] = opts["stripPath"] === true || opts["stripPath"] === "true";
2891
3476
  if (opts["forwardAuthEnabled"] != null)
2892
3477
  opts["forwardAuthEnabled"] = opts["forwardAuthEnabled"] === true || opts["forwardAuthEnabled"] === "true";
3478
+ if (opts["enabled"] != null)
3479
+ opts["enabled"] = opts["enabled"] === true || opts["enabled"] === "true";
2893
3480
  const data = await apiPost("domain.update", opts);
2894
3481
  if (jsonOutput) {
2895
3482
  console.log(JSON.stringify(data, null, 2));
@@ -3952,6 +4539,8 @@ export function registerGeneratedCommands(program) {
3952
4539
  .option('--stopGracePeriodSwarm <value>', 'stopGracePeriodSwarm')
3953
4540
  .option('--endpointSpecSwarm <value>', 'endpointSpecSwarm')
3954
4541
  .option('--replicas <value>', 'replicas')
4542
+ .option('--networkIds <value>', 'networkIds')
4543
+ .option('--detachDokployNetwork', 'detachDokployNetwork')
3955
4544
  .option('--createdAt <value>', 'createdAt')
3956
4545
  .option('--environmentId <value>', 'environmentId')
3957
4546
  .option('--json', 'Output raw JSON')
@@ -3968,6 +4557,8 @@ export function registerGeneratedCommands(program) {
3968
4557
  opts["externalAdminPort"] = Number(opts["externalAdminPort"]);
3969
4558
  if (opts["replicas"] != null)
3970
4559
  opts["replicas"] = Number(opts["replicas"]);
4560
+ if (opts["detachDokployNetwork"] != null)
4561
+ opts["detachDokployNetwork"] = opts["detachDokployNetwork"] === true || opts["detachDokployNetwork"] === "true";
3971
4562
  const data = await apiPost("libsql.update", opts);
3972
4563
  if (jsonOutput) {
3973
4564
  console.log(JSON.stringify(data, null, 2));
@@ -4381,6 +4972,8 @@ export function registerGeneratedCommands(program) {
4381
4972
  .option('--replicas <value>', 'replicas')
4382
4973
  .option('--createdAt <value>', 'createdAt')
4383
4974
  .option('--environmentId <value>', 'environmentId')
4975
+ .option('--networkIds <value>', 'networkIds')
4976
+ .option('--detachDokployNetwork', 'detachDokployNetwork')
4384
4977
  .option('--json', 'Output raw JSON')
4385
4978
  .action(async (opts) => {
4386
4979
  const jsonOutput = opts.json;
@@ -4389,6 +4982,8 @@ export function registerGeneratedCommands(program) {
4389
4982
  opts["externalPort"] = Number(opts["externalPort"]);
4390
4983
  if (opts["replicas"] != null)
4391
4984
  opts["replicas"] = Number(opts["replicas"]);
4985
+ if (opts["detachDokployNetwork"] != null)
4986
+ opts["detachDokployNetwork"] = opts["detachDokployNetwork"] === true || opts["detachDokployNetwork"] === "true";
4392
4987
  const data = await apiPost("mariadb.update", opts);
4393
4988
  if (jsonOutput) {
4394
4989
  console.log(JSON.stringify(data, null, 2));
@@ -4706,6 +5301,8 @@ export function registerGeneratedCommands(program) {
4706
5301
  .option('--createdAt <value>', 'createdAt')
4707
5302
  .option('--environmentId <value>', 'environmentId')
4708
5303
  .option('--replicaSets', 'replicaSets')
5304
+ .option('--networkIds <value>', 'networkIds')
5305
+ .option('--detachDokployNetwork', 'detachDokployNetwork')
4709
5306
  .option('--json', 'Output raw JSON')
4710
5307
  .action(async (opts) => {
4711
5308
  const jsonOutput = opts.json;
@@ -4716,6 +5313,8 @@ export function registerGeneratedCommands(program) {
4716
5313
  opts["replicas"] = Number(opts["replicas"]);
4717
5314
  if (opts["replicaSets"] != null)
4718
5315
  opts["replicaSets"] = opts["replicaSets"] === true || opts["replicaSets"] === "true";
5316
+ if (opts["detachDokployNetwork"] != null)
5317
+ opts["detachDokployNetwork"] = opts["detachDokployNetwork"] === true || opts["detachDokployNetwork"] === "true";
4719
5318
  const data = await apiPost("mongo.update", opts);
4720
5319
  if (jsonOutput) {
4721
5320
  console.log(JSON.stringify(data, null, 2));
@@ -5050,9 +5649,205 @@ export function registerGeneratedCommands(program) {
5050
5649
  .action(async (opts) => {
5051
5650
  const jsonOutput = opts.json;
5052
5651
  delete opts.json;
5053
- if (opts["externalPort"] != null)
5054
- opts["externalPort"] = Number(opts["externalPort"]);
5055
- const data = await apiPost("mysql.saveExternalPort", opts);
5652
+ if (opts["externalPort"] != null)
5653
+ opts["externalPort"] = Number(opts["externalPort"]);
5654
+ const data = await apiPost("mysql.saveExternalPort", opts);
5655
+ if (jsonOutput) {
5656
+ console.log(JSON.stringify(data, null, 2));
5657
+ }
5658
+ else {
5659
+ printOutput(data);
5660
+ }
5661
+ });
5662
+ g_mysql
5663
+ .command('search')
5664
+ .description('mysql search')
5665
+ .option('--q <value>', 'q')
5666
+ .option('--name <value>', 'name')
5667
+ .option('--appName <value>', 'appName')
5668
+ .option('--description <value>', 'description')
5669
+ .option('--projectId <value>', 'projectId')
5670
+ .option('--environmentId <value>', 'environmentId')
5671
+ .option('--limit <value>', 'limit')
5672
+ .option('--offset <value>', 'offset')
5673
+ .option('--json', 'Output raw JSON')
5674
+ .action(async (opts) => {
5675
+ const jsonOutput = opts.json;
5676
+ delete opts.json;
5677
+ if (opts["limit"] != null)
5678
+ opts["limit"] = Number(opts["limit"]);
5679
+ if (opts["offset"] != null)
5680
+ opts["offset"] = Number(opts["offset"]);
5681
+ const data = await apiGet("mysql.search", opts);
5682
+ if (jsonOutput) {
5683
+ console.log(JSON.stringify(data, null, 2));
5684
+ }
5685
+ else {
5686
+ printOutput(data);
5687
+ }
5688
+ });
5689
+ g_mysql
5690
+ .command('start')
5691
+ .description('mysql start')
5692
+ .requiredOption('--mysqlId <value>', 'mysqlId')
5693
+ .option('--json', 'Output raw JSON')
5694
+ .action(async (opts) => {
5695
+ const jsonOutput = opts.json;
5696
+ delete opts.json;
5697
+ const data = await apiPost("mysql.start", opts);
5698
+ if (jsonOutput) {
5699
+ console.log(JSON.stringify(data, null, 2));
5700
+ }
5701
+ else {
5702
+ printOutput(data);
5703
+ }
5704
+ });
5705
+ g_mysql
5706
+ .command('stop')
5707
+ .description('mysql stop')
5708
+ .requiredOption('--mysqlId <value>', 'mysqlId')
5709
+ .option('--json', 'Output raw JSON')
5710
+ .action(async (opts) => {
5711
+ const jsonOutput = opts.json;
5712
+ delete opts.json;
5713
+ const data = await apiPost("mysql.stop", opts);
5714
+ if (jsonOutput) {
5715
+ console.log(JSON.stringify(data, null, 2));
5716
+ }
5717
+ else {
5718
+ printOutput(data);
5719
+ }
5720
+ });
5721
+ g_mysql
5722
+ .command('update')
5723
+ .description('mysql update')
5724
+ .requiredOption('--mysqlId <value>', 'mysqlId')
5725
+ .option('--name <value>', 'name')
5726
+ .option('--appName <value>', 'appName')
5727
+ .option('--description <value>', 'description')
5728
+ .option('--databaseName <value>', 'databaseName')
5729
+ .option('--databaseUser <value>', 'databaseUser')
5730
+ .option('--databasePassword <value>', 'databasePassword')
5731
+ .option('--databaseRootPassword <value>', 'databaseRootPassword')
5732
+ .option('--dockerImage <value>', 'dockerImage')
5733
+ .option('--command <value>', 'command')
5734
+ .option('--args <value>', 'args')
5735
+ .option('--env <value>', 'env')
5736
+ .option('--memoryReservation <value>', 'memoryReservation')
5737
+ .option('--memoryLimit <value>', 'memoryLimit')
5738
+ .option('--cpuReservation <value>', 'cpuReservation')
5739
+ .option('--cpuLimit <value>', 'cpuLimit')
5740
+ .option('--externalPort <value>', 'externalPort')
5741
+ .option('--applicationStatus <value>', 'applicationStatus (idle, running, done, error)')
5742
+ .option('--healthCheckSwarm <value>', 'healthCheckSwarm')
5743
+ .option('--restartPolicySwarm <value>', 'restartPolicySwarm')
5744
+ .option('--placementSwarm <value>', 'placementSwarm')
5745
+ .option('--updateConfigSwarm <value>', 'updateConfigSwarm')
5746
+ .option('--rollbackConfigSwarm <value>', 'rollbackConfigSwarm')
5747
+ .option('--modeSwarm <value>', 'modeSwarm')
5748
+ .option('--labelsSwarm <value>', 'labelsSwarm')
5749
+ .option('--networkSwarm <value>', 'networkSwarm')
5750
+ .option('--stopGracePeriodSwarm <value>', 'stopGracePeriodSwarm')
5751
+ .option('--endpointSpecSwarm <value>', 'endpointSpecSwarm')
5752
+ .option('--ulimitsSwarm <value>', 'ulimitsSwarm')
5753
+ .option('--replicas <value>', 'replicas')
5754
+ .option('--createdAt <value>', 'createdAt')
5755
+ .option('--environmentId <value>', 'environmentId')
5756
+ .option('--networkIds <value>', 'networkIds')
5757
+ .option('--detachDokployNetwork', 'detachDokployNetwork')
5758
+ .option('--json', 'Output raw JSON')
5759
+ .action(async (opts) => {
5760
+ const jsonOutput = opts.json;
5761
+ delete opts.json;
5762
+ if (opts["externalPort"] != null)
5763
+ opts["externalPort"] = Number(opts["externalPort"]);
5764
+ if (opts["replicas"] != null)
5765
+ opts["replicas"] = Number(opts["replicas"]);
5766
+ if (opts["detachDokployNetwork"] != null)
5767
+ opts["detachDokployNetwork"] = opts["detachDokployNetwork"] === true || opts["detachDokployNetwork"] === "true";
5768
+ const data = await apiPost("mysql.update", opts);
5769
+ if (jsonOutput) {
5770
+ console.log(JSON.stringify(data, null, 2));
5771
+ }
5772
+ else {
5773
+ printOutput(data);
5774
+ }
5775
+ });
5776
+ const g_network = program.command('network').description('network commands');
5777
+ g_network
5778
+ .command('all')
5779
+ .description('network all')
5780
+ .option('--serverId <value>', 'serverId')
5781
+ .option('--json', 'Output raw JSON')
5782
+ .action(async (opts) => {
5783
+ const jsonOutput = opts.json;
5784
+ delete opts.json;
5785
+ const data = await apiGet("network.all", opts);
5786
+ if (jsonOutput) {
5787
+ console.log(JSON.stringify(data, null, 2));
5788
+ }
5789
+ else {
5790
+ printOutput(data);
5791
+ }
5792
+ });
5793
+ g_network
5794
+ .command('create')
5795
+ .description('network create')
5796
+ .requiredOption('--name <value>', 'name')
5797
+ .option('--driver <value>', 'driver (bridge, overlay)')
5798
+ .option('--internal', 'internal')
5799
+ .option('--attachable', 'attachable')
5800
+ .option('--enableIPv4', 'enableIPv4')
5801
+ .option('--enableIPv6', 'enableIPv6')
5802
+ .option('--mtu <value>', 'mtu')
5803
+ .option('--ipam <value>', 'ipam')
5804
+ .option('--serverId <value>', 'serverId')
5805
+ .option('--json', 'Output raw JSON')
5806
+ .action(async (opts) => {
5807
+ const jsonOutput = opts.json;
5808
+ delete opts.json;
5809
+ if (opts["internal"] != null)
5810
+ opts["internal"] = opts["internal"] === true || opts["internal"] === "true";
5811
+ if (opts["attachable"] != null)
5812
+ opts["attachable"] = opts["attachable"] === true || opts["attachable"] === "true";
5813
+ if (opts["enableIPv4"] != null)
5814
+ opts["enableIPv4"] = opts["enableIPv4"] === true || opts["enableIPv4"] === "true";
5815
+ if (opts["enableIPv6"] != null)
5816
+ opts["enableIPv6"] = opts["enableIPv6"] === true || opts["enableIPv6"] === "true";
5817
+ const data = await apiPost("network.create", opts);
5818
+ if (jsonOutput) {
5819
+ console.log(JSON.stringify(data, null, 2));
5820
+ }
5821
+ else {
5822
+ printOutput(data);
5823
+ }
5824
+ });
5825
+ g_network
5826
+ .command('import')
5827
+ .description('network import')
5828
+ .option('--serverId <value>', 'serverId')
5829
+ .requiredOption('--names <value>', 'names')
5830
+ .option('--json', 'Output raw JSON')
5831
+ .action(async (opts) => {
5832
+ const jsonOutput = opts.json;
5833
+ delete opts.json;
5834
+ const data = await apiPost("network.import", opts);
5835
+ if (jsonOutput) {
5836
+ console.log(JSON.stringify(data, null, 2));
5837
+ }
5838
+ else {
5839
+ printOutput(data);
5840
+ }
5841
+ });
5842
+ g_network
5843
+ .command('inspect')
5844
+ .description('network inspect')
5845
+ .requiredOption('--networkId <value>', 'networkId')
5846
+ .option('--json', 'Output raw JSON')
5847
+ .action(async (opts) => {
5848
+ const jsonOutput = opts.json;
5849
+ delete opts.json;
5850
+ const data = await apiGet("network.inspect", opts);
5056
5851
  if (jsonOutput) {
5057
5852
  console.log(JSON.stringify(data, null, 2));
5058
5853
  }
@@ -5060,26 +5855,15 @@ export function registerGeneratedCommands(program) {
5060
5855
  printOutput(data);
5061
5856
  }
5062
5857
  });
5063
- g_mysql
5064
- .command('search')
5065
- .description('mysql search')
5066
- .option('--q <value>', 'q')
5067
- .option('--name <value>', 'name')
5068
- .option('--appName <value>', 'appName')
5069
- .option('--description <value>', 'description')
5070
- .option('--projectId <value>', 'projectId')
5071
- .option('--environmentId <value>', 'environmentId')
5072
- .option('--limit <value>', 'limit')
5073
- .option('--offset <value>', 'offset')
5858
+ g_network
5859
+ .command('networks-to-sync')
5860
+ .description('network networksToSync')
5861
+ .option('--serverId <value>', 'serverId')
5074
5862
  .option('--json', 'Output raw JSON')
5075
5863
  .action(async (opts) => {
5076
5864
  const jsonOutput = opts.json;
5077
5865
  delete opts.json;
5078
- if (opts["limit"] != null)
5079
- opts["limit"] = Number(opts["limit"]);
5080
- if (opts["offset"] != null)
5081
- opts["offset"] = Number(opts["offset"]);
5082
- const data = await apiGet("mysql.search", opts);
5866
+ const data = await apiGet("network.networksToSync", opts);
5083
5867
  if (jsonOutput) {
5084
5868
  console.log(JSON.stringify(data, null, 2));
5085
5869
  }
@@ -5087,15 +5871,15 @@ export function registerGeneratedCommands(program) {
5087
5871
  printOutput(data);
5088
5872
  }
5089
5873
  });
5090
- g_mysql
5091
- .command('start')
5092
- .description('mysql start')
5093
- .requiredOption('--mysqlId <value>', 'mysqlId')
5874
+ g_network
5875
+ .command('one')
5876
+ .description('network one')
5877
+ .requiredOption('--networkId <value>', 'networkId')
5094
5878
  .option('--json', 'Output raw JSON')
5095
5879
  .action(async (opts) => {
5096
5880
  const jsonOutput = opts.json;
5097
5881
  delete opts.json;
5098
- const data = await apiPost("mysql.start", opts);
5882
+ const data = await apiGet("network.one", opts);
5099
5883
  if (jsonOutput) {
5100
5884
  console.log(JSON.stringify(data, null, 2));
5101
5885
  }
@@ -5103,15 +5887,15 @@ export function registerGeneratedCommands(program) {
5103
5887
  printOutput(data);
5104
5888
  }
5105
5889
  });
5106
- g_mysql
5107
- .command('stop')
5108
- .description('mysql stop')
5109
- .requiredOption('--mysqlId <value>', 'mysqlId')
5890
+ g_network
5891
+ .command('recreate')
5892
+ .description('network recreate')
5893
+ .requiredOption('--networkId <value>', 'networkId')
5110
5894
  .option('--json', 'Output raw JSON')
5111
5895
  .action(async (opts) => {
5112
5896
  const jsonOutput = opts.json;
5113
5897
  delete opts.json;
5114
- const data = await apiPost("mysql.stop", opts);
5898
+ const data = await apiPost("network.recreate", opts);
5115
5899
  if (jsonOutput) {
5116
5900
  console.log(JSON.stringify(data, null, 2));
5117
5901
  }
@@ -5119,50 +5903,15 @@ export function registerGeneratedCommands(program) {
5119
5903
  printOutput(data);
5120
5904
  }
5121
5905
  });
5122
- g_mysql
5123
- .command('update')
5124
- .description('mysql update')
5125
- .requiredOption('--mysqlId <value>', 'mysqlId')
5126
- .option('--name <value>', 'name')
5127
- .option('--appName <value>', 'appName')
5128
- .option('--description <value>', 'description')
5129
- .option('--databaseName <value>', 'databaseName')
5130
- .option('--databaseUser <value>', 'databaseUser')
5131
- .option('--databasePassword <value>', 'databasePassword')
5132
- .option('--databaseRootPassword <value>', 'databaseRootPassword')
5133
- .option('--dockerImage <value>', 'dockerImage')
5134
- .option('--command <value>', 'command')
5135
- .option('--args <value>', 'args')
5136
- .option('--env <value>', 'env')
5137
- .option('--memoryReservation <value>', 'memoryReservation')
5138
- .option('--memoryLimit <value>', 'memoryLimit')
5139
- .option('--cpuReservation <value>', 'cpuReservation')
5140
- .option('--cpuLimit <value>', 'cpuLimit')
5141
- .option('--externalPort <value>', 'externalPort')
5142
- .option('--applicationStatus <value>', 'applicationStatus (idle, running, done, error)')
5143
- .option('--healthCheckSwarm <value>', 'healthCheckSwarm')
5144
- .option('--restartPolicySwarm <value>', 'restartPolicySwarm')
5145
- .option('--placementSwarm <value>', 'placementSwarm')
5146
- .option('--updateConfigSwarm <value>', 'updateConfigSwarm')
5147
- .option('--rollbackConfigSwarm <value>', 'rollbackConfigSwarm')
5148
- .option('--modeSwarm <value>', 'modeSwarm')
5149
- .option('--labelsSwarm <value>', 'labelsSwarm')
5150
- .option('--networkSwarm <value>', 'networkSwarm')
5151
- .option('--stopGracePeriodSwarm <value>', 'stopGracePeriodSwarm')
5152
- .option('--endpointSpecSwarm <value>', 'endpointSpecSwarm')
5153
- .option('--ulimitsSwarm <value>', 'ulimitsSwarm')
5154
- .option('--replicas <value>', 'replicas')
5155
- .option('--createdAt <value>', 'createdAt')
5156
- .option('--environmentId <value>', 'environmentId')
5906
+ g_network
5907
+ .command('remove')
5908
+ .description('network remove')
5909
+ .requiredOption('--networkId <value>', 'networkId')
5157
5910
  .option('--json', 'Output raw JSON')
5158
5911
  .action(async (opts) => {
5159
5912
  const jsonOutput = opts.json;
5160
5913
  delete opts.json;
5161
- if (opts["externalPort"] != null)
5162
- opts["externalPort"] = Number(opts["externalPort"]);
5163
- if (opts["replicas"] != null)
5164
- opts["replicas"] = Number(opts["replicas"]);
5165
- const data = await apiPost("mysql.update", opts);
5914
+ const data = await apiPost("network.remove", opts);
5166
5915
  if (jsonOutput) {
5167
5916
  console.log(JSON.stringify(data, null, 2));
5168
5917
  }
@@ -6729,6 +7478,7 @@ export function registerGeneratedCommands(program) {
6729
7478
  .requiredOption('--organizationId <value>', 'organizationId')
6730
7479
  .requiredOption('--name <value>', 'name')
6731
7480
  .option('--logo <value>', 'logo')
7481
+ .option('--defaultRole <value>', 'defaultRole')
6732
7482
  .option('--json', 'Output raw JSON')
6733
7483
  .action(async (opts) => {
6734
7484
  const jsonOutput = opts.json;
@@ -6758,6 +7508,52 @@ export function registerGeneratedCommands(program) {
6758
7508
  printOutput(data);
6759
7509
  }
6760
7510
  });
7511
+ const g_overview = program.command('overview').description('overview commands');
7512
+ g_overview
7513
+ .command('backups')
7514
+ .description('overview backups')
7515
+ .option('--json', 'Output raw JSON')
7516
+ .action(async (opts) => {
7517
+ const jsonOutput = opts.json;
7518
+ delete opts.json;
7519
+ const data = await apiGet("overview.backups", opts);
7520
+ if (jsonOutput) {
7521
+ console.log(JSON.stringify(data, null, 2));
7522
+ }
7523
+ else {
7524
+ printOutput(data);
7525
+ }
7526
+ });
7527
+ g_overview
7528
+ .command('domains')
7529
+ .description('overview domains')
7530
+ .option('--json', 'Output raw JSON')
7531
+ .action(async (opts) => {
7532
+ const jsonOutput = opts.json;
7533
+ delete opts.json;
7534
+ const data = await apiGet("overview.domains", opts);
7535
+ if (jsonOutput) {
7536
+ console.log(JSON.stringify(data, null, 2));
7537
+ }
7538
+ else {
7539
+ printOutput(data);
7540
+ }
7541
+ });
7542
+ g_overview
7543
+ .command('services')
7544
+ .description('overview services')
7545
+ .option('--json', 'Output raw JSON')
7546
+ .action(async (opts) => {
7547
+ const jsonOutput = opts.json;
7548
+ delete opts.json;
7549
+ const data = await apiGet("overview.services", opts);
7550
+ if (jsonOutput) {
7551
+ console.log(JSON.stringify(data, null, 2));
7552
+ }
7553
+ else {
7554
+ printOutput(data);
7555
+ }
7556
+ });
6761
7557
  const g_patch = program.command('patch').description('patch commands');
6762
7558
  g_patch
6763
7559
  .command('by-entity-id')
@@ -7369,6 +8165,8 @@ export function registerGeneratedCommands(program) {
7369
8165
  .option('--replicas <value>', 'replicas')
7370
8166
  .option('--createdAt <value>', 'createdAt')
7371
8167
  .option('--environmentId <value>', 'environmentId')
8168
+ .option('--networkIds <value>', 'networkIds')
8169
+ .option('--detachDokployNetwork', 'detachDokployNetwork')
7372
8170
  .option('--json', 'Output raw JSON')
7373
8171
  .action(async (opts) => {
7374
8172
  const jsonOutput = opts.json;
@@ -7377,6 +8175,8 @@ export function registerGeneratedCommands(program) {
7377
8175
  opts["externalPort"] = Number(opts["externalPort"]);
7378
8176
  if (opts["replicas"] != null)
7379
8177
  opts["replicas"] = Number(opts["replicas"]);
8178
+ if (opts["detachDokployNetwork"] != null)
8179
+ opts["detachDokployNetwork"] = opts["detachDokployNetwork"] === true || opts["detachDokployNetwork"] === "true";
7380
8180
  const data = await apiPost("postgres.update", opts);
7381
8181
  if (jsonOutput) {
7382
8182
  console.log(JSON.stringify(data, null, 2));
@@ -7996,6 +8796,8 @@ export function registerGeneratedCommands(program) {
7996
8796
  .option('--ulimitsSwarm <value>', 'ulimitsSwarm')
7997
8797
  .option('--replicas <value>', 'replicas')
7998
8798
  .option('--environmentId <value>', 'environmentId')
8799
+ .option('--networkIds <value>', 'networkIds')
8800
+ .option('--detachDokployNetwork', 'detachDokployNetwork')
7999
8801
  .option('--json', 'Output raw JSON')
8000
8802
  .action(async (opts) => {
8001
8803
  const jsonOutput = opts.json;
@@ -8004,6 +8806,8 @@ export function registerGeneratedCommands(program) {
8004
8806
  opts["externalPort"] = Number(opts["externalPort"]);
8005
8807
  if (opts["replicas"] != null)
8006
8808
  opts["replicas"] = Number(opts["replicas"]);
8809
+ if (opts["detachDokployNetwork"] != null)
8810
+ opts["detachDokployNetwork"] = opts["detachDokployNetwork"] === true || opts["detachDokployNetwork"] === "true";
8007
8811
  const data = await apiPost("redis.update", opts);
8008
8812
  if (jsonOutput) {
8009
8813
  console.log(JSON.stringify(data, null, 2));
@@ -8873,21 +9677,6 @@ export function registerGeneratedCommands(program) {
8873
9677
  printOutput(data);
8874
9678
  }
8875
9679
  });
8876
- g_settings
8877
- .command('clean-redis')
8878
- .description('settings cleanRedis')
8879
- .option('--json', 'Output raw JSON')
8880
- .action(async (opts) => {
8881
- const jsonOutput = opts.json;
8882
- delete opts.json;
8883
- const data = await apiPost("settings.cleanRedis", opts);
8884
- if (jsonOutput) {
8885
- console.log(JSON.stringify(data, null, 2));
8886
- }
8887
- else {
8888
- printOutput(data);
8889
- }
8890
- });
8891
9680
  g_settings
8892
9681
  .command('clean-sshprivate-key')
8893
9682
  .description('settings cleanSSHPrivateKey')
@@ -9272,21 +10061,6 @@ export function registerGeneratedCommands(program) {
9272
10061
  printOutput(data);
9273
10062
  }
9274
10063
  });
9275
- g_settings
9276
- .command('reload-redis')
9277
- .description('settings reloadRedis')
9278
- .option('--json', 'Output raw JSON')
9279
- .action(async (opts) => {
9280
- const jsonOutput = opts.json;
9281
- delete opts.json;
9282
- const data = await apiPost("settings.reloadRedis", opts);
9283
- if (jsonOutput) {
9284
- console.log(JSON.stringify(data, null, 2));
9285
- }
9286
- else {
9287
- printOutput(data);
9288
- }
9289
- });
9290
10064
  g_settings
9291
10065
  .command('reload-server')
9292
10066
  .description('settings reloadServer')
@@ -10585,6 +11359,36 @@ export function registerGeneratedCommands(program) {
10585
11359
  printOutput(data);
10586
11360
  }
10587
11361
  });
11362
+ g_user
11363
+ .command('list-passkeys')
11364
+ .description('user listPasskeys')
11365
+ .option('--json', 'Output raw JSON')
11366
+ .action(async (opts) => {
11367
+ const jsonOutput = opts.json;
11368
+ delete opts.json;
11369
+ const data = await apiGet("user.listPasskeys", opts);
11370
+ if (jsonOutput) {
11371
+ console.log(JSON.stringify(data, null, 2));
11372
+ }
11373
+ else {
11374
+ printOutput(data);
11375
+ }
11376
+ });
11377
+ g_user
11378
+ .command('list-sessions')
11379
+ .description('user listSessions')
11380
+ .option('--json', 'Output raw JSON')
11381
+ .action(async (opts) => {
11382
+ const jsonOutput = opts.json;
11383
+ delete opts.json;
11384
+ const data = await apiGet("user.listSessions", opts);
11385
+ if (jsonOutput) {
11386
+ console.log(JSON.stringify(data, null, 2));
11387
+ }
11388
+ else {
11389
+ printOutput(data);
11390
+ }
11391
+ });
10588
11392
  g_user
10589
11393
  .command('one')
10590
11394
  .description('user one')
@@ -10617,6 +11421,22 @@ export function registerGeneratedCommands(program) {
10617
11421
  printOutput(data);
10618
11422
  }
10619
11423
  });
11424
+ g_user
11425
+ .command('revoke-session')
11426
+ .description('user revokeSession')
11427
+ .requiredOption('--sessionId <value>', 'sessionId')
11428
+ .option('--json', 'Output raw JSON')
11429
+ .action(async (opts) => {
11430
+ const jsonOutput = opts.json;
11431
+ delete opts.json;
11432
+ const data = await apiPost("user.revokeSession", opts);
11433
+ if (jsonOutput) {
11434
+ console.log(JSON.stringify(data, null, 2));
11435
+ }
11436
+ else {
11437
+ printOutput(data);
11438
+ }
11439
+ });
10620
11440
  g_user
10621
11441
  .command('send-invitation')
10622
11442
  .description('user sendInvitation')
@@ -10723,6 +11543,126 @@ export function registerGeneratedCommands(program) {
10723
11543
  printOutput(data);
10724
11544
  }
10725
11545
  });
11546
+ const g_vaultProvider = program.command('vault-provider').description('vault-provider commands');
11547
+ g_vaultProvider
11548
+ .command('all')
11549
+ .description('vaultProvider all')
11550
+ .option('--json', 'Output raw JSON')
11551
+ .action(async (opts) => {
11552
+ const jsonOutput = opts.json;
11553
+ delete opts.json;
11554
+ const data = await apiGet("vaultProvider.all", opts);
11555
+ if (jsonOutput) {
11556
+ console.log(JSON.stringify(data, null, 2));
11557
+ }
11558
+ else {
11559
+ printOutput(data);
11560
+ }
11561
+ });
11562
+ g_vaultProvider
11563
+ .command('create')
11564
+ .description('vaultProvider create')
11565
+ .requiredOption('--name <value>', 'name')
11566
+ .requiredOption('--config <value>', 'config')
11567
+ .requiredOption('--assignments <value>', 'assignments')
11568
+ .option('--json', 'Output raw JSON')
11569
+ .action(async (opts) => {
11570
+ const jsonOutput = opts.json;
11571
+ delete opts.json;
11572
+ const data = await apiPost("vaultProvider.create", opts);
11573
+ if (jsonOutput) {
11574
+ console.log(JSON.stringify(data, null, 2));
11575
+ }
11576
+ else {
11577
+ printOutput(data);
11578
+ }
11579
+ });
11580
+ g_vaultProvider
11581
+ .command('list-secret-names')
11582
+ .description('vaultProvider listSecretNames')
11583
+ .requiredOption('--vaultProviderId <value>', 'vaultProviderId')
11584
+ .requiredOption('--projectId <value>', 'projectId')
11585
+ .option('--environmentId <value>', 'environmentId')
11586
+ .option('--json', 'Output raw JSON')
11587
+ .action(async (opts) => {
11588
+ const jsonOutput = opts.json;
11589
+ delete opts.json;
11590
+ const data = await apiGet("vaultProvider.listSecretNames", opts);
11591
+ if (jsonOutput) {
11592
+ console.log(JSON.stringify(data, null, 2));
11593
+ }
11594
+ else {
11595
+ printOutput(data);
11596
+ }
11597
+ });
11598
+ g_vaultProvider
11599
+ .command('one')
11600
+ .description('vaultProvider one')
11601
+ .requiredOption('--vaultProviderId <value>', 'vaultProviderId')
11602
+ .option('--json', 'Output raw JSON')
11603
+ .action(async (opts) => {
11604
+ const jsonOutput = opts.json;
11605
+ delete opts.json;
11606
+ const data = await apiGet("vaultProvider.one", opts);
11607
+ if (jsonOutput) {
11608
+ console.log(JSON.stringify(data, null, 2));
11609
+ }
11610
+ else {
11611
+ printOutput(data);
11612
+ }
11613
+ });
11614
+ g_vaultProvider
11615
+ .command('remove')
11616
+ .description('vaultProvider remove')
11617
+ .requiredOption('--vaultProviderId <value>', 'vaultProviderId')
11618
+ .option('--json', 'Output raw JSON')
11619
+ .action(async (opts) => {
11620
+ const jsonOutput = opts.json;
11621
+ delete opts.json;
11622
+ const data = await apiPost("vaultProvider.remove", opts);
11623
+ if (jsonOutput) {
11624
+ console.log(JSON.stringify(data, null, 2));
11625
+ }
11626
+ else {
11627
+ printOutput(data);
11628
+ }
11629
+ });
11630
+ g_vaultProvider
11631
+ .command('test-connection')
11632
+ .description('vaultProvider testConnection')
11633
+ .option('--vaultProviderId <value>', 'vaultProviderId')
11634
+ .option('--config <value>', 'config')
11635
+ .option('--json', 'Output raw JSON')
11636
+ .action(async (opts) => {
11637
+ const jsonOutput = opts.json;
11638
+ delete opts.json;
11639
+ const data = await apiPost("vaultProvider.testConnection", opts);
11640
+ if (jsonOutput) {
11641
+ console.log(JSON.stringify(data, null, 2));
11642
+ }
11643
+ else {
11644
+ printOutput(data);
11645
+ }
11646
+ });
11647
+ g_vaultProvider
11648
+ .command('update')
11649
+ .description('vaultProvider update')
11650
+ .requiredOption('--vaultProviderId <value>', 'vaultProviderId')
11651
+ .requiredOption('--name <value>', 'name')
11652
+ .requiredOption('--config <value>', 'config')
11653
+ .requiredOption('--assignments <value>', 'assignments')
11654
+ .option('--json', 'Output raw JSON')
11655
+ .action(async (opts) => {
11656
+ const jsonOutput = opts.json;
11657
+ delete opts.json;
11658
+ const data = await apiPost("vaultProvider.update", opts);
11659
+ if (jsonOutput) {
11660
+ console.log(JSON.stringify(data, null, 2));
11661
+ }
11662
+ else {
11663
+ printOutput(data);
11664
+ }
11665
+ });
10726
11666
  const g_volumeBackups = program.command('volume-backups').description('volume-backups commands');
10727
11667
  g_volumeBackups
10728
11668
  .command('create')