@contentstack/cli 1.5.1 → 1.6.0

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/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
18
18
  $ csdx COMMAND
19
19
  running command...
20
20
  $ csdx (--version|-v)
21
- @contentstack/cli/1.5.1 linux-x64 node-v16.20.0
21
+ @contentstack/cli/1.6.0 linux-x64 node-v16.20.0
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -77,6 +77,12 @@ USAGE
77
77
  * [`csdx config:get:region`](#csdx-configgetregion)
78
78
  * [`csdx config:set:region [REGION]`](#csdx-configsetregion-region)
79
79
  * [`csdx help [COMMANDS]`](#csdx-help-commands)
80
+ * [`csdx launch`](#csdx-launch)
81
+ * [`csdx launch:deployments`](#csdx-launchdeployments)
82
+ * [`csdx launch:environments`](#csdx-launchenvironments)
83
+ * [`csdx launch:functions`](#csdx-launchfunctions)
84
+ * [`csdx launch:logs`](#csdx-launchlogs)
85
+ * [`csdx launch:open`](#csdx-launchopen)
80
86
  * [`csdx login`](#csdx-login)
81
87
  * [`csdx logout`](#csdx-logout)
82
88
  * [`csdx plugins`](#csdx-plugins)
@@ -2409,6 +2415,222 @@ DESCRIPTION
2409
2415
 
2410
2416
  _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.9/src/commands/help.ts)_
2411
2417
 
2418
+ ## `csdx launch`
2419
+
2420
+ Launch related operations
2421
+
2422
+ ```
2423
+ USAGE
2424
+ $ csdx launch [-d <value>] [-c <value>] [--type GitHub|FileUpload] [--framework Gatsby|NextJs|Other]
2425
+ [--org <value>] [-n <value>] [-e <value>] [--branch <value>] [--build-command <value>] [--out-dir <value>] [--init]
2426
+
2427
+ FLAGS
2428
+ -c, --config=<value> Path to the local '.cs-launch.json' file
2429
+ -d, --data-dir=<value> Current working directory
2430
+ -e, --environment=<value> [Optional] Environment name for the Launch project
2431
+ -n, --name=<value> [Optional] Name of the project
2432
+ --branch=<value> [Optional] GitHub branch name
2433
+ --build-command=<value> [Optional] Build Command
2434
+ --framework=<option> [Optional] Type of framework
2435
+ <options: Gatsby|NextJs|Other>
2436
+ --init [Optional, Hidden] Reinitialize the project if it is an existing launch project.
2437
+ --org=<value> [Optional] Provide the organization UID to create a new project or deployment
2438
+ --out-dir=<value> [Optional] Output Directory
2439
+ --type=<option> [Optional] Choose the type of adapters
2440
+ <options: GitHub|FileUpload>
2441
+
2442
+ DESCRIPTION
2443
+ Launch related operations
2444
+
2445
+ EXAMPLES
2446
+ $ csdx launch
2447
+
2448
+ $ csdx launch --data-dir <path/of/current/working/dir>
2449
+
2450
+ $ csdx launch --config <path/to/launch/config/file>
2451
+
2452
+ $ csdx launch --type <options: GitHub|FileUpload>
2453
+
2454
+ $ csdx launch --data-dir <path/of/current/working/dir> --type <options: GitHub|FileUpload>
2455
+
2456
+ $ csdx launch --config <path/to/launch/config/file> --type <options: GitHub|FileUpload>
2457
+
2458
+ $ csdx launch --config <path/to/launch/config/file> --type <options: GitHub|FileUpload> --name=<value> --environment=<value> --branch=<value> --build-command=<value> --framework=<option> --org=<value> --out-dir=<value>
2459
+ ```
2460
+
2461
+ _See code: [@contentstack/cli-launch](https://github.com/contentstack/cli/blob/main/packages/contentstack-launch/dist/commands/launch/index.ts)_
2462
+
2463
+ ## `csdx launch:deployments`
2464
+
2465
+ Show list of deployments for an environment
2466
+
2467
+ ```
2468
+ USAGE
2469
+ $ csdx launch:deployments [-d <value>] [-c <value>] [--org <value>] [--project <value>] [-e <value>]
2470
+
2471
+ FLAGS
2472
+ -c, --config=<value> Path to the local '.cs-launch.json' file
2473
+ -d, --data-dir=<value> Current working directory
2474
+ -e, --environment=<value> Environment name or UID
2475
+ --org=<value> [Optional] Provide the organization UID
2476
+ --project=<value> [Optional] Provide the project UID
2477
+
2478
+ DESCRIPTION
2479
+ Show list of deployments for an environment
2480
+
2481
+ EXAMPLES
2482
+ $ csdx launch:deployments
2483
+
2484
+ $ csdx launch:deployments -d "current working directory"
2485
+
2486
+ $ csdx launch:deployments -c "path to the local config file"
2487
+
2488
+ $ csdx launch:deployments -e "environment number or uid" --org=<org UID> --project=<Project UID>
2489
+ ```
2490
+
2491
+ _See code: [@contentstack/cli-launch](https://github.com/contentstack/cli/blob/main/packages/contentstack-launch/dist/commands/launch/deployments.ts)_
2492
+
2493
+ ## `csdx launch:environments`
2494
+
2495
+ Show list of environments for a project
2496
+
2497
+ ```
2498
+ USAGE
2499
+ $ csdx launch:environments [-d <value>] [-c <value>] [--org <value>] [--project <value>]
2500
+
2501
+ FLAGS
2502
+ -c, --config=<value> Path to the local '.cs-launch.json' file
2503
+ -d, --data-dir=<value> Current working directory
2504
+ --org=<value> [Optional] Provide the organization UID
2505
+ --project=<value> [Optional] Provide the project UID
2506
+
2507
+ DESCRIPTION
2508
+ Show list of environments for a project
2509
+
2510
+ EXAMPLES
2511
+ $ csdx launch:environments
2512
+
2513
+ $ csdx launch:environments -d "current working directory"
2514
+
2515
+ $ csdx launch:environments -c "path to the local config file"
2516
+
2517
+ $ csdx launch:environments --org=<org UID> --project=<Project UID>
2518
+ ```
2519
+
2520
+ _See code: [@contentstack/cli-launch](https://github.com/contentstack/cli/blob/main/packages/contentstack-launch/dist/commands/launch/environments.ts)_
2521
+
2522
+ ## `csdx launch:functions`
2523
+
2524
+ Serve cloud functions
2525
+
2526
+ ```
2527
+ USAGE
2528
+ $ csdx launch:functions [-d <value>] [-c <value>] [-p <value>]
2529
+
2530
+ FLAGS
2531
+ -c, --config=<value> Path to the local '.cs-launch.json' file
2532
+ -d, --data-dir=<value> Current working directory
2533
+ -p, --port=<value> [default: 3000] Port number
2534
+
2535
+ DESCRIPTION
2536
+ Serve cloud functions
2537
+
2538
+ EXAMPLES
2539
+ $ csdx launch:functions
2540
+
2541
+ $ csdx launch:functions --port=port
2542
+
2543
+ $ csdx launch:logs --data-dir <path/of/current/working/dir>
2544
+
2545
+ $ csdx launch:logs --config <path/to/launch/config/file>
2546
+
2547
+ $ csdx launch:logs --data-dir <path/of/current/working/dir> -p "port number"
2548
+
2549
+ $ csdx launch:logs --config <path/to/launch/config/file> --port=port
2550
+ ```
2551
+
2552
+ _See code: [@contentstack/cli-launch](https://github.com/contentstack/cli/blob/main/packages/contentstack-launch/dist/commands/launch/functions.ts)_
2553
+
2554
+ ## `csdx launch:logs`
2555
+
2556
+ Show deployment or server logs
2557
+
2558
+ ```
2559
+ USAGE
2560
+ $ csdx launch:logs [-d <value>] [-c <value>] [-e <value>] [--deployment <value>] [--type d|s]
2561
+
2562
+ FLAGS
2563
+ -c, --config=<value> Path to the local '.cs-launch.json' file
2564
+ -d, --data-dir=<value> Current working directory
2565
+ -e, --environment=<value> Environment name or UID
2566
+ --deployment=<value> Deployment number or UID
2567
+ --type=<option> [default: s] Choose type of flags to show logs
2568
+ d) Deployment logs
2569
+ s) Server logs
2570
+
2571
+ <options: d|s>
2572
+
2573
+ DESCRIPTION
2574
+ Show deployment or server logs
2575
+
2576
+ EXAMPLES
2577
+ $ csdx launch:logs
2578
+
2579
+ $ csdx launch:logs --data-dir <path/of/current/working/dir>
2580
+
2581
+ $ csdx launch:logs --data-dir <path/of/current/working/dir> --type <options: d|s>
2582
+
2583
+ $ csdx launch:logs --config <path/to/launch/config/file> --type <options: d|s>
2584
+
2585
+ $ csdx launch:logs --deployment=deployment
2586
+
2587
+ $ csdx launch:logs --environment=environment
2588
+
2589
+ $ csdx launch:logs --environment=environment --deployment=deployment
2590
+
2591
+ $ csdx launch:logs --environment=environment --type <options: d|s>
2592
+
2593
+ $ csdx launch:logs --environment=environment --data-dir <path/of/current/working/dir> --deployment=deployment
2594
+
2595
+ $ csdx launch:logs --environment=environment --config <path/to/launch/config/file> --deployment=deployment
2596
+ ```
2597
+
2598
+ _See code: [@contentstack/cli-launch](https://github.com/contentstack/cli/blob/main/packages/contentstack-launch/dist/commands/launch/logs.ts)_
2599
+
2600
+ ## `csdx launch:open`
2601
+
2602
+ Open a website for an environment
2603
+
2604
+ ```
2605
+ USAGE
2606
+ $ csdx launch:open [-d <value>] [-c <value>] [--org <value>] [--project <value>] [-e <value>]
2607
+
2608
+ FLAGS
2609
+ -c, --config=<value> Path to the local '.cs-launch.json' file
2610
+ -d, --data-dir=<value> Current working directory
2611
+ -e, --environment=<value> Environment name or UID
2612
+ --org=<value> [Optional] Provide the organization UID
2613
+ --project=<value> [Optional] Provide the project UID
2614
+
2615
+ DESCRIPTION
2616
+ Open a website for an environment
2617
+
2618
+ EXAMPLES
2619
+ $ csdx launch:open
2620
+
2621
+ $ csdx launch:open --config <path/to/launch/config/file>
2622
+
2623
+ $ csdx launch:open --data-dir <path/of/current/working/dir>
2624
+
2625
+ $ csdx launch:open --environment=environment
2626
+
2627
+ $ csdx launch:open --environment=environment --config <path/to/launch/config/file>
2628
+
2629
+ $ csdx launch:open --environment=environment --data-dir <path/of/current/working/dir>
2630
+ ```
2631
+
2632
+ _See code: [@contentstack/cli-launch](https://github.com/contentstack/cli/blob/main/packages/contentstack-launch/dist/commands/launch/open.ts)_
2633
+
2412
2634
  ## `csdx login`
2413
2635
 
2414
2636
  User sessions login
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "1.5.1",
2
+ "version": "1.6.0",
3
3
  "commands": {}
4
4
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli",
3
3
  "description": "Command-line tool (CLI) to interact with Contentstack",
4
- "version": "1.5.1",
4
+ "version": "1.6.0",
5
5
  "author": "Contentstack",
6
6
  "bin": {
7
7
  "csdx": "./bin/run"
@@ -32,8 +32,9 @@
32
32
  "@contentstack/cli-cm-seed": "^1.4.1",
33
33
  "@contentstack/cli-command": "^1.2.2",
34
34
  "@contentstack/cli-config": "^1.3.1",
35
+ "@contentstack/cli-launch": "^1.0.0",
35
36
  "@contentstack/cli-migration": "^1.3.1",
36
- "@contentstack/cli-utilities": "^1.3.1",
37
+ "@contentstack/cli-utilities": "^1.3.2",
37
38
  "@contentstack/management": "^1.6.1",
38
39
  "@oclif/core": "^2.3.0",
39
40
  "@oclif/plugin-help": "^5",
@@ -43,10 +44,11 @@
43
44
  "debug": "^4.1.1",
44
45
  "figlet": "^1.5.2",
45
46
  "inquirer": "8.2.4",
46
- "uuid": "^9.0.0",
47
- "winston": "^3.7.2",
48
47
  "node-machine-id": "^1.1.12",
49
- "short-uuid": "^4.2.2"
48
+ "open": "^8.4.2",
49
+ "short-uuid": "^4.2.2",
50
+ "uuid": "^9.0.0",
51
+ "winston": "^3.7.2"
50
52
  },
51
53
  "devDependencies": {
52
54
  "@oclif/test": "^2.2.10",
@@ -115,6 +117,9 @@
115
117
  "cm:stacks": {
116
118
  "description": "Stacks related operations"
117
119
  },
120
+ "launch": {
121
+ "description": "Launch related operations"
122
+ },
118
123
  "plugins": {
119
124
  "description": "List installed plugins"
120
125
  }
@@ -135,7 +140,8 @@
135
140
  "@contentstack/cli-cm-clone",
136
141
  "@contentstack/cli-cm-migrate-rte",
137
142
  "@contentstack/cli-migration",
138
- "@contentstack/cli-cm-bulk-publish"
143
+ "@contentstack/cli-cm-bulk-publish",
144
+ "@contentstack/cli-launch"
139
145
  ],
140
146
  "hooks": {
141
147
  "prerun": [
@@ -148,4 +154,4 @@
148
154
  }
149
155
  },
150
156
  "repository": "https://github.com/contentstack/cli"
151
- }
157
+ }