@dokploy/cli 0.29.3 → 0.29.4

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.
@@ -1846,6 +1846,24 @@ export function registerGeneratedCommands(program) {
1846
1846
  printOutput(data);
1847
1847
  }
1848
1848
  });
1849
+ g_compose
1850
+ .command('preview-template')
1851
+ .description('compose previewTemplate')
1852
+ .requiredOption('--base64 <value>', 'base64')
1853
+ .requiredOption('--appName <value>', 'appName')
1854
+ .option('--serverId <value>', 'serverId')
1855
+ .option('--json', 'Output raw JSON')
1856
+ .action(async (opts) => {
1857
+ const jsonOutput = opts.json;
1858
+ delete opts.json;
1859
+ const data = await apiPost("compose.previewTemplate", opts);
1860
+ if (jsonOutput) {
1861
+ console.log(JSON.stringify(data, null, 2));
1862
+ }
1863
+ else {
1864
+ printOutput(data);
1865
+ }
1866
+ });
1849
1867
  g_compose
1850
1868
  .command('process-template')
1851
1869
  .description('compose processTemplate')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dokploy/cli",
3
3
  "description": "A CLI to manage dokploy server remotely",
4
- "version": "0.29.3",
4
+ "version": "0.29.4",
5
5
  "author": "Mauricio Siu",
6
6
  "licenses": [
7
7
  {