1.0.102 • Published 8 years ago

dyn365-deploy-cli v1.0.102

Weekly downloads
-
License
ISC
Repository
-
Last release
8 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

8 years ago

1.0.100

8 years ago

1.0.99

8 years ago

1.0.98

8 years ago

1.0.97

8 years ago

1.0.96

8 years ago

1.0.95

8 years ago

1.0.94

8 years ago

1.0.93

8 years ago

1.0.91

8 years ago

1.0.90

8 years ago

1.0.89

8 years ago

1.0.88

8 years ago

1.0.86

8 years ago

1.0.84

8 years ago

1.0.83

8 years ago

1.0.82

8 years ago

1.0.80

8 years ago

1.0.79

8 years ago

1.0.78

8 years ago

1.0.76

8 years ago

1.0.75

8 years ago

1.0.74

8 years ago

1.0.73

8 years ago

1.0.72

8 years ago

1.0.71

8 years ago

1.0.70

8 years ago

1.0.69

8 years ago

1.0.68

8 years ago

1.0.67

8 years ago

1.0.66

8 years ago

1.0.65

8 years ago

1.0.64

8 years ago

1.0.62

8 years ago

1.0.61

8 years ago

1.0.60

8 years ago

1.0.59

8 years ago

1.0.58

8 years ago

1.0.57

8 years ago

1.0.56

8 years ago

1.0.55

8 years ago

1.0.54

8 years ago

1.0.53

8 years ago

1.0.52

8 years ago

1.0.51

8 years ago

1.0.50

8 years ago

1.0.49

8 years ago

1.0.48

8 years ago

1.0.47

8 years ago

1.0.46

8 years ago

1.0.45

8 years ago

1.0.44

8 years ago

1.0.43

8 years ago

1.0.41

8 years ago

1.0.40

8 years ago

1.0.39

8 years ago

1.0.38

8 years ago

1.0.37

8 years ago

1.0.36

8 years ago

1.0.35

8 years ago

1.0.34

8 years ago

1.0.33

8 years ago

1.0.32

8 years ago

1.0.31

8 years ago

1.0.30

8 years ago

1.0.29

8 years ago

1.0.28

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago