@docusign/cli 1.2.0-rc → 1.3.0-rc

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.
@@ -14,6 +14,88 @@ This directory contains files for managing DocuSign packages in this project.
14
14
  ds package create --name=my-package
15
15
  ```
16
16
 
17
+ ### Add components to a package
18
+
19
+ Each component is given as `<id>:<name>`. Quote names that contain spaces.
20
+
21
+ ```bash
22
+ ds package add --name=my-package --esign-templates "555:NDA" "775:MSA"
23
+ ds package add --name=my-package --workflow "111:Invoice approval" --webform "9f2:Intake form"
24
+ ```
25
+
26
+ | Flag | Component type |
27
+ | ------------------- | ------------------- |
28
+ | `--esign-templates` | eSignature template |
29
+ | `--templates` | Document template |
30
+ | `--workflow` | Maestro workflow |
31
+ | `--webform` | Web form |
32
+
33
+ List several components after one flag or repeat the flag; different types can be combined in one call. Use `--id=<packageId>` instead of `--name` to pick one package when names are shared.
34
+
35
+ ### Remove components
36
+
37
+ ```bash
38
+ ds package remove --name=my-package --esign-templates "775:MSA"
39
+ ```
40
+
41
+ To change a component, remove it and add it again.
42
+
43
+ ### See what a package contains and where it stands
44
+
45
+ ```bash
46
+ ds package view-details --name=my-package
47
+ ds package status --name=my-package
48
+ ```
49
+
50
+ `status` reports Processing while an import, export or publish is running, Installed once the package has been installed, otherwise the package's own status (Draft, Published, Archived or Review).
51
+
52
+ ### Export a package
53
+
54
+ ```bash
55
+ ds package export --name=my-package
56
+ ds package export --name=my-package --output=./backups/my-package.zip
57
+ ```
58
+
59
+ The zip is saved in this project's `package/files` folder as `<package name>-<first 8 characters of the id>.zip`, unless you pass `--output`. Exporting publishes the package first, and a Published package cannot take new components. The CLI refuses to export a package with no components, since the zip would be empty.
60
+
61
+ ### Install a package in another account
62
+
63
+ A private package cannot be installed by id from another account. Export it, log in to the target account, and install the zip.
64
+
65
+ ```bash
66
+ ds package export --name=my-package # in the source account
67
+ ds auth login # choose the target account
68
+ ds package install --file my-package-1a2b3c4d.zip --prefix "copy-"
69
+ ```
70
+
71
+ A bare file name is also looked up in this project's `package/files` folder. `--prefix` puts text in front of the name of every component the install creates; use it for test installs, because the CLI cannot remove installed components.
72
+
73
+ You can also install a package that is already on the server, from your account or a public one:
74
+
75
+ ```bash
76
+ ds package install --name=my-package
77
+ ds package install --id=<packageId> --source public
78
+ ```
79
+
80
+ The install runs on the server and the CLI follows it. It can stop twice to ask for something:
81
+
82
+ - **Connections.** An app in the package needs a connection in this account. Pick one you already have, or connect a new one: the CLI opens the app's sign-in page and waits until the connection is active.
83
+ - **Consent.** Workflows must be consented to before they are published. The CLI opens the consent page. Use `--draft-workflows` to create the workflows as drafts and skip this step.
84
+
85
+ | Flag | What it does |
86
+ | -------------------- | ------------------------------------------------------------------------- |
87
+ | `--file <zip>` | Install from a zip file |
88
+ | `--prefix <text>` | Put `<text>` in front of the name of every component the install creates |
89
+ | `--update` | Overwrite components that already exist in this account |
90
+ | `--draft-workflows` | Create workflows as drafts instead of publishing them |
91
+ | `--connection a=c` | Use connection `c` for app `a`, so the install does not stop to ask |
92
+ | `--no-browser` | Print links instead of opening them |
93
+ | `-y` | Do not ask for confirmation (needed without a terminal) |
94
+ | `--resume [--event]` | Continue an install that stopped, for example because the terminal closed |
95
+ | `--cancel [--event]` | Stop an install that is waiting for you; what it already created stays |
96
+
97
+ If the terminal closes, the install keeps running. Run `ds package install --resume` to pick it up again. Run `ds package install -h` for exit codes, what to do when an install fails, and how it behaves without a terminal.
98
+
17
99
  ### Get help
18
100
 
19
101
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusign/cli",
3
- "version": "1.2.0-rc",
3
+ "version": "1.3.0-rc",
4
4
  "author": "Docusign",
5
5
  "description": "The Docusign CLI simplifies the implementation of Docusign Agreement Manager. With this CLI, you can bulk configure Agreement Manager with custom fields and types, map fields to types, provide AI training sets for custom extractions, programmatically test extraction accuracy, and export/import your setup across accounts. This offering is currently in beta.",
6
6
  "main": "dist/index.mjs",
@@ -1,59 +0,0 @@
1
- # Packages Feature
2
-
3
- This directory contains the Packages feature for managing and distributing packages.
4
-
5
- ## Directory Structure
6
-
7
- ```
8
- packages/
9
- ├── configs/ # Package configuration files
10
- ├── files/
11
- │ ├── train/ # Training/example package files
12
- │ └── test/ # Test package files
13
- ├── tests/ # Package tests and validation scripts
14
- └── README.md
15
- ```
16
-
17
- ## Getting Started
18
-
19
- ### 1. Configure Your Packages
20
-
21
- Create package configuration files in `configs/`. These define:
22
-
23
- - Package metadata (name, version, description)
24
- - Package dependencies
25
- - Package contents and structure
26
- - Distribution settings
27
-
28
- ### 2. Add Package Files
29
-
30
- Organize your package files in `files/`:
31
-
32
- - **files/train/**: Example or template package files
33
- - **files/test/**: Test packages for validation
34
-
35
- ### 3. Define Tests
36
-
37
- Add test scripts and validation rules to `tests/` to ensure package quality and correctness.
38
-
39
- ## Workflow
40
-
41
- 1. **Create** package configurations in `configs/`
42
- 2. **Organize** package files in `files/`
43
- 3. **Define** validation tests in `tests/`
44
- 4. **Validate** packages using the appropriate commands
45
- 5. **Distribute** packages as needed
46
-
47
- ## Tips
48
-
49
- - Keep package configurations modular and reusable
50
- - Use semantic versioning for package versions
51
- - Include clear documentation in package metadata
52
- - Test packages thoroughly before distribution
53
- - Version control your configurations for tracking changes
54
-
55
- ## Next Steps
56
-
57
- - Configure your first package in `configs/`
58
- - Add example files to `files/train/`
59
- - Create validation tests in `tests/`