create-veeva-rte
v0.4.0
Published
CLI tool to quickly setup Veeva RTEs boilerplate files (email template and fragments) in your current directory.
Downloads
7
Readme
Create Veeva Rep-triggered Email (RTE)
CLI tool to quickly setup Veeva RTEs boilerplate files (email template and fragments) in your current directory.
Quick Start
NPX
Using npx, run the following command below to create an RTE project in current directory:
npx create-veeva-rte
Global
Or install this package globally using:
npm install create-veeva-rte -g
Then run the following command in your terminal to verify:
create-veeva-rte
Commands
Project
Usage: npx create-veeva-rte project
Description: Creates a new directory containing multiple email templates and fragments.
Example:
npx create-veeva-rte project
RTE project directory name: example-rte-directory-name
Number of email templates: 1
Email template 1 name: template 1
Number of email fragments: 2
Email fragment 1 name: fragment 1
Email fragment 2 name: fragment 2
Output:
.
`-- example-rte-directory-name/
|-- email fragments/
| |-- fragment 1/
| | `-- index.html
| `-- fragment 2/
| `-- index.html
`-- email templates/
`-- template 1/
`-- index.html
Email Template
Usage: npx create-veeva-rte email-template {{directory name}}
Description: Creates 1 new email template in the current working directory.
Example:
npx create-veeva-rte email-template MOA
Output:
.
`-- current-working-directory/
`-- MOA/
`-- index.html
Email Fragment
Usage: npx create-veeva-rte email-fragment {{directory name}}
Description: Creates 1 new email fragment in the current working directory.
Example:
npx create-veeva-rte email-fragment summary
Output:
.
`-- current-working-directory/
`-- summary/
`-- index.html
Additional Resources
- Creating Approved Email Templates
- Creating Approved Email Fragments
- Approved Email Configuration Tokens
Author
Jayvin Duong