@zapier/zapier-sdk-cli 0.32.4 → 0.34.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +39 -2
  3. package/dist/cli.cjs +589 -110
  4. package/dist/cli.mjs +580 -102
  5. package/dist/index.cjs +531 -18
  6. package/dist/index.mjs +525 -15
  7. package/dist/package.json +3 -2
  8. package/dist/src/cli.js +11 -1
  9. package/dist/src/paths.d.ts +1 -0
  10. package/dist/src/paths.js +6 -0
  11. package/dist/src/plugins/index.d.ts +1 -0
  12. package/dist/src/plugins/index.js +1 -0
  13. package/dist/src/plugins/init/display.d.ts +9 -0
  14. package/dist/src/plugins/init/display.js +72 -0
  15. package/dist/src/plugins/init/index.d.ts +16 -0
  16. package/dist/src/plugins/init/index.js +61 -0
  17. package/dist/src/plugins/init/schemas.d.ts +8 -0
  18. package/dist/src/plugins/init/schemas.js +14 -0
  19. package/dist/src/plugins/init/steps.d.ts +39 -0
  20. package/dist/src/plugins/init/steps.js +141 -0
  21. package/dist/src/plugins/init/types.d.ts +31 -0
  22. package/dist/src/plugins/init/types.js +1 -0
  23. package/dist/src/plugins/init/utils.d.ts +48 -0
  24. package/dist/src/plugins/init/utils.js +135 -0
  25. package/dist/src/plugins/logout/index.js +1 -1
  26. package/dist/src/sdk.js +5 -2
  27. package/dist/src/utils/auth/login.js +33 -4
  28. package/dist/src/utils/package-manager-detector.d.ts +3 -1
  29. package/dist/src/utils/package-manager-detector.js +1 -0
  30. package/dist/src/utils/version-checker.js +1 -8
  31. package/dist/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +6 -5
  33. package/templates/basic/AGENTS.md.hbs +15 -0
  34. package/templates/basic/README.md.hbs +21 -0
  35. package/templates/basic/package.json.hbs +17 -0
  36. package/templates/basic/src/index.ts +46 -0
  37. package/templates/basic/tsconfig.json +12 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.34.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c7be13e: Fix bug where `add` command hangs after completing successfully
8
+ - Updated dependencies [c7be13e]
9
+ - @zapier/zapier-sdk@0.32.1
10
+ - @zapier/zapier-sdk-mcp@0.9.12
11
+
12
+ ## 0.34.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 250cb7d: Store CLI login credentials in system keychain.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [250cb7d]
21
+ - @zapier/zapier-sdk-cli-login@0.8.0
22
+ - @zapier/zapier-sdk@0.32.0
23
+ - @zapier/zapier-sdk-mcp@0.9.11
24
+
25
+ ## 0.33.0
26
+
27
+ ### Minor Changes
28
+
29
+ - 77a1a7b: Introduce init command to bootstrap a new project with SDK
30
+
3
31
  ## 0.32.4
4
32
 
5
33
  ### Patch Changes
package/README.md CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  ## Table of Contents
4
4
 
5
- - [Installation](#installation)
6
5
  - [Quick Start](#quick-start)
6
+ - [Installation](#installation)
7
+ - [Walkthrough](#walkthrough)
7
8
  - [Global Options](#global-options)
8
9
  - [Available Commands](#available-commands)
9
10
  - [Accounts](#accounts)
@@ -38,15 +39,34 @@
38
39
  - [`feedback`](#feedback)
39
40
  - [`generate-app-types`](#generate-app-types)
40
41
  - [`get-login-config-path`](#get-login-config-path)
42
+ - [`init`](#init)
41
43
  - [`mcp`](#mcp)
42
44
 
45
+ ## Quick Start
46
+
47
+ _For new projects._
48
+
49
+ Bootstrap a new project with everything you need to start integrating thousands of apps through Zapier:
50
+
51
+ ```bash
52
+ # Create a new Zapier SDK project (scaffolds files, installs deps, and logs you in).
53
+ npx @zapier/zapier-sdk-cli init my-zapier-app
54
+
55
+ # Or skip the interactive prompts and accept all defaults.
56
+ npx @zapier/zapier-sdk-cli init my-zapier-app --skip-prompts
57
+ ```
58
+
43
59
  ## Installation
44
60
 
61
+ _For existing projects._
62
+
63
+ If you already have a project and want to add the CLI as a dependency:
64
+
45
65
  ```bash
46
66
  npm install -D @zapier/zapier-sdk-cli
47
67
  ```
48
68
 
49
- ## Quick Start
69
+ ## Walkthrough
50
70
 
51
71
  ```bash
52
72
  # See all available commands
@@ -597,6 +617,23 @@ Show the path to the login configuration file
597
617
  npx zapier-sdk get-login-config-path
598
618
  ```
599
619
 
620
+ #### `init`
621
+
622
+ Create a new Zapier SDK project in a new directory with starter files
623
+
624
+ **Options:**
625
+
626
+ | Option | Type | Required | Default | Possible Values | Description |
627
+ | ---------------- | --------- | -------- | ------- | --------------- | ---------------------------------------------------- |
628
+ | `<project-name>` | `string` | ✅ | — | — | Name of the project directory to create |
629
+ | `--skip-prompts` | `boolean` | ❌ | — | — | Skip all interactive prompts and accept all defaults |
630
+
631
+ **Usage:**
632
+
633
+ ```bash
634
+ npx zapier-sdk init <project-name> [--skip-prompts]
635
+ ```
636
+
600
637
  #### `mcp`
601
638
 
602
639
  Start MCP server for Zapier SDK