Skip to content

Puzzlepart/did-cli

Repository files navigation

Logo

Add subscriptions, customers, projects and import data from different sources.... well, just CSV for now.
It's basically a CLI for did.


version

📖 Table of Contents

-----------------------------------------------------

➤ Table of Contents

-----------------------------------------------------

➤ Installation

The cli is not published to npm as it's a private repository.

You install the cli through github:

npm i -g "https://github.com/Puzzlepart/did-cli"

-----------------------------------------------------

➤ Getting started

To start using the cli, you need to set it up.

Run

did init

Help

For help and list of available actions.

Run

did --help

-----------------------------------------------------

➤ Actions

open

Opens the local installation of did in vscode.

did open

or

did-cli open

Create branch

Creates a branch for the specified issue

did branch create

or

did-cli branch create

image-20210325154409065

image-20210325154655478

image-20210325154718230

subscription add

did subscription add

or

did-cli subscription add

image-20210311092849679

subscription remove

Removes a Did subscription.

did subscription remove

or

did-cli subscription remove

image-20210311145039854

import csv

did import csv --path path_to_csv_file

or

did-cli import csv

image-20210312171806334

customer add

Adds a new customer to Did. You will be prompted for all neccessary information.

did customer add

or

did-cli customer add

image-20210311093034792

project add

Adds a new project to Did. You will be prompted for all neccessary information.

did project add

or

did-cli project add

spfx install

Install SPFx solution. Installs the SPFx solution to the specified tenant.

Requires an old fashioned SharePoint app registration.

See: How to register a legacy SharePoint application

did spfx install

or

did-cli spfx install

You'll be prompted for all neccessary inputs.

With command line arguments

did spfx install --clientId {clientId} --clientSecret {clientSecret} --siteUrl {siteUrl} --githubToken {githubToken} --didApiKey {didApiKey}

image-20210315153658957

Upgrade

Upgrade did-cli to the latest version from GitHub main branch.

did upgrade

or

did-cli upgrade

Upgrade from dev branch

did upgrade --branch dev

Reset environment

To reset environment when upgrading, use argument ---reset. The default behavior is to keep the environment that was set running did init.

did upgrade --reset

-----------------------------------------------------

➤ Why is the bin folder commited?

This is because we are installing the cli through GitHub.

-----------------------------------------------------

➤ Contributors

Ole Martin Pettersen Carl Joakim Damsleth
olemp@puzzlepart.com carl.joakim.damsleth@puzzlepart.com
Main contributor and owner ⭐ Upcoming contribution star ⭐

About

CLI for did.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •