1.0.102 • Published 7 years ago

dyn365-deploy-cli v1.0.102

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

dyn365-deploy-cli

A small cli to upload files to a dynamics 365 instance. Could be used as a developer tool or as a CI/CD tool in an automated build or delivery

By Stratiteq Sweden AB

This CLI is a work in progress Currently its not stable enough to be used in a production environment, but it works fine as a developer tool

prerequisites of use

install

$ npm install -g dyn365-deploy-cli
$ crm-deploy init

Enter credentials to authenticate to dynamics 365 web api. The credentials will be stored on disk at the project root in a file called .crmdeployconfig in plain text. This file is not recomended to be added to source control.

note: the init function does not add this file to .gitignore even if it says it will. You´ll have to add it manually.

generate

$ crm-deploy generate contacts

will generate a file /src/domain/contacts.ts

This function will do a metadata query matching the name parameter agains the entity set name, and map the response to a typescript class and generate a file with the name of the entity. This file will contain alla properties of the entity. It will map all picklists to enumerations.

Two classes will be generated. Using contacts as an exemple, it will generate one class to be used when using the crm web api.

The other class can be used on form scripts. All properties are wrapped in a 'crm base class' containing getters and setters to the form. This can be achieved with crm-common-js, so that must be accessible for this to work.

deploy

$ crm-deploy deploy

The deploy function will authenticate and upload all files inside appointed folder and its subfolders to crm once. If its an unknown file type, the file will be ignored

When the upload is completed it will publish the changes

$ crm-deploy deploy filename

Filenames is optional. If a file name(s) is provided, only files thats partially match the provided file name will be uploaded. More than one file can be added seperated with space

stress

$ crm-deploy stress

This will add a record in dyn365 and remove it again. This will be repeated until the program is closed.

The intented use of this function is to "stress" the instance and force it to scale up and to be a little quicker to work with

watch

$ crm-deploy watch

The watch function will authenticate and initially upload all files inside appointed folder and its subfolders. Unknown file typeswill be ignored.

After that it will look for changes to the appointed folder and its subfolders, and whenever it detect a change, it will queue the file in an upload queue, wait for one second, and upload the changed files to dynamics 365.

The purpose of the queue is to give the dynamics 365 web api a chance to handle all requests without choking out.

When the upload is completed it will publish the changes. The watch function does not call publish more than once simultaniously per instance.

1.0.102

7 years ago

1.0.100

7 years ago

1.0.99

7 years ago

1.0.98

7 years ago

1.0.97

7 years ago

1.0.96

7 years ago

1.0.95

7 years ago

1.0.94

7 years ago

1.0.93

7 years ago

1.0.91

7 years ago

1.0.90

7 years ago

1.0.89

7 years ago

1.0.88

7 years ago

1.0.86

7 years ago

1.0.84

7 years ago

1.0.83

7 years ago

1.0.82

7 years ago

1.0.80

7 years ago

1.0.79

7 years ago

1.0.78

7 years ago

1.0.76

7 years ago

1.0.75

7 years ago

1.0.74

7 years ago

1.0.73

7 years ago

1.0.72

7 years ago

1.0.71

7 years ago

1.0.70

7 years ago

1.0.69

7 years ago

1.0.68

7 years ago

1.0.67

7 years ago

1.0.66

7 years ago

1.0.65

7 years ago

1.0.64

7 years ago

1.0.62

7 years ago

1.0.61

7 years ago

1.0.60

7 years ago

1.0.59

7 years ago

1.0.58

7 years ago

1.0.57

7 years ago

1.0.56

7 years ago

1.0.55

7 years ago

1.0.54

7 years ago

1.0.53

7 years ago

1.0.52

7 years ago

1.0.51

7 years ago

1.0.50

7 years ago

1.0.49

7 years ago

1.0.48

7 years ago

1.0.47

7 years ago

1.0.46

7 years ago

1.0.45

7 years ago

1.0.44

7 years ago

1.0.43

7 years ago

1.0.41

7 years ago

1.0.40

7 years ago

1.0.39

7 years ago

1.0.38

7 years ago

1.0.37

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.33

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago