Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/SenseNet/sn-client-cli

Command line tool for the sensenet ECM's Client Library
https://github.com/SenseNet/sn-client-cli

ecms sensenet sn-client-js

Last synced: about 2 months ago
JSON representation

Command line tool for the sensenet ECM's Client Library

Awesome Lists containing this project

README

        

# sn-client-cli

------
### This package is not under active development. You can find our latest packages in the [sensenset/sn-client](https://github.com/sensenet/sn-client) monorepo.
------

[![Gitter chat](https://img.shields.io/gitter/room/SenseNet/SN7ClientAPI.svg?style=flat)](https://gitter.im/SenseNet/SN7ClientAPI)
[![Build Status](https://travis-ci.org/SenseNet/sn-client-cli.svg?branch=master)](https://travis-ci.org/SenseNet/sn-client-cli)
[![codecov](https://codecov.io/gh/SenseNet/sn-client-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/SenseNet/sn-client-cli)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e3f64e9f929d4dbead466ba1283cf43b)](https://www.codacy.com/app/SenseNet/sn-client-cli?utm_source=github.com&utm_medium=referral&utm_content=SenseNet/sn-client-cli&utm_campaign=Badge_Grade)
[![NPM version](https://img.shields.io/npm/v/sn-client-cli.svg?style=flat)](https://www.npmjs.com/package/sn-client-cli)
[![NPM downloads](https://img.shields.io/npm/dt/sn-client-cli.svg?style=flat)](https://www.npmjs.com/package/sn-client-cli)
[![License](https://img.shields.io/github/license/SenseNet/sn-client-cli.svg?style=flat)](https://github.com/SenseNet/sn-client-cli/LICENSE.txt)
[![Greenkeeper badge](https://badges.greenkeeper.io/SenseNet/sn-client-cli.svg)](https://greenkeeper.io/)

This package is a command line tool for the sensenet ECM's [Client Library](https://github.com/SenseNet/sn-client-js "sn-client-js").

## Note
This package is under development and not released yet.

## Installation
### Prerequisites
* [Node.JS](https://nodejs.org) ^6.1.0
* [NPM](https://www.npmjs.com) ^4.0.0
* [NYC](https://www.npmjs.com/package/nyc) for running tests

You can install the latest version with NPM into your project dependencies

```shell
$ npm install sn-client-cli --save
```

Or you can install it globaly

```shell
$ npm install sn-client-cli -g
```

## Usage

From the command line you can run from the project directory
```shell
$ .\node_modules\.bin\sn-client [command] --[options]
```

or from the global installation
```shell
$ sn-client [command] --[options]
```

### Available commands
**init** -
Creates an initial 'sn.config.js' in your project root. You can use this providing default configuration options to the CLI.

**fetch-types** -
If you have customized your **sensenet ECM repository** with custom content types, you can use this command to get the generated TypeScript classes and refresh the built-in ones in **sn-client-js** package from a _specified_ repository.

**help** - Displays a help screen about the CLI with the available commands and options