Add subscriptions, customers, projects and import data from different sources.... well, just CSV for now.
It's basically a CLI for did.
📖 Table of Contents
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"To start using the cli, you need to set it up.
Run
did initFor help and list of available actions.
Run
did --helpOpens the local installation of did in vscode.
did openor
did-cli openCreates a branch for the specified issue
did branch createor
did-cli branch createdid subscription addor
did-cli subscription addRemoves a Did subscription.
did subscription removeor
did-cli subscription removedid import csv --path path_to_csv_fileor
did-cli import csvAdds a new customer to Did. You will be prompted for all neccessary information.
did customer addor
did-cli customer addAdds a new project to Did. You will be prompted for all neccessary information.
did project addor
did-cli project addInstall 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 installor
did-cli spfx installYou'll be prompted for all neccessary inputs.
did spfx install --clientId {clientId} --clientSecret {clientSecret} --siteUrl {siteUrl} --githubToken {githubToken} --didApiKey {didApiKey}Upgrade did-cli to the latest version from GitHub main branch.
did upgradeor
did-cli upgradedid upgrade --branch devTo reset environment when upgrading, use argument ---reset. The default behavior is to keep the environment that was set running did init.
did upgrade --resetThis is because we are installing the cli through GitHub.
| Ole Martin Pettersen | Carl Joakim Damsleth |
|---|---|
| olemp@puzzlepart.com | carl.joakim.damsleth@puzzlepart.com |
| Main contributor and owner | ⭐ Upcoming contribution star ⭐ |









