Git Product home page Git Product logo

officescripts-cli's Introduction

npm        npm publishing

OfficeScripts-CLI

CLI for manage OSTS files

Prerequisites

Install CLI for Microsoft 365

npm i -g @pnp/cli-microsoft365

or using yarn:

yarn global add @pnp/cli-microsoft365

login on Office365

m365 login

Install

npm install -g @bsorrentino/osts-cli

Usage

Usage:
========
osts list[--path]  // list OSTS packages in SPO path. 

osts unpack [--path, -p <dest dir> [--dts] ] // download OSTS package and extract body (.ts) to dest dir (default 'osts'). 
                                             // If --dts is specified an Office Script Simplified TS Declaration  file will be copied in dest dir

osts pack [--path, -p <src dir>] [--file, -f <osts file name>] // bundle source (.ts) in src dir (default 'osts') to OSTS package and upload it

osts dts [--path, -p <dest dir>] // an Office Script Simplified TS Declaration file is copied in dest dir

officescripts-cli's People

Contributors

bsorrentino avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

officescripts-cli's Issues

auto detect Office CLI url

Idea is to use m365 cli to retrieve User One Drive Url performi the following commands:

  • m365 status to get connected user email
  • m365 onedrive list --query "[?Owner=='<user email>'].Url" to get OneDrive URL
  • append path Documents\Documents\Office Scripts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.