slingx
Swiss Army Knife for Sling CRUD Operations
Last updated 3 months ago by namitgupta .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install slingx 
SYNC missed versions from official npm registry.

slingx

Swiss Army Knife for Sling CRUD Operations

oclif Version Downloads/week License

Usage

$ npm install -g slingx
$ slingx COMMAND
running command...
$ slingx (-v|--version|version)
slingx/0.0.7 darwin-x64 node-v10.4.1
$ slingx --help [COMMAND]
USAGE
  $ slingx COMMAND
...

Commands

slingx copy

Copy Node(s) in a Sling repository

USAGE
  $ slingx copy

DESCRIPTION

  • hostname : Enter the hostname of aem e.g. https://localhost:8443
  • username : Enter the username of aem e.g. admin
  • password : Enter the password of the aem user entered above e.g. admin
  • csv path : Enter the path of the input in CSV format e.g. /Users/johndoe/Downloads/results.csv. The input csv may be provided in the below format. Please note that source and destination fields are mandatory.
source,destination
/content/test/node1,/content/test2/
/content/test/node2,/content/test2/
/content/test/node3,/content/test2/
_See code: [src/commands/copy.js](https://github.com/2019/slingx/blob/v0.0.6/src/commands/copy.js)_

## `slingx create`

Create new Node(s) in a Sling repository

USAGE $ slingx create

DESCRIPTION
* hostname : Enter the hostname of aem e.g. https://localhost:8443
* username : Enter the username of aem e.g. admin
* password : Enter the password of the aem user entered above e.g. admin
* csv path : Enter the path of input in CSV format e.g. /Users/johndoe/Downloads/results.csv. The input csv may be provided in the below format. Please note that **id** and **parent** fields are mandatory.

|                                                                                    | 
|------------------------------------------------------------------------------------| 
| id,Name,Surname,Age,Gender,jcr:primaryType,test/jcr:primaryType,test,field1,parent | 
| 1,John,Snow,26,M,nt:unstructured,nt:unstructured,1,f1,/content/test                | 
| 2,John2,Snow,26,M,nt:unstructured,nt:unstructured,2,f2,/content/test               | 
| 3,John2,Snow,26,M,nt:unstructured,nt:unstructured,3,f3,/content/test               | 

See code: src/commands/create.js

slingx delete

Deletes Node(s) in a Sling repository

USAGE
  $ slingx delete

DESCRIPTION

  • hostname : Enter the hostname of aem e.g. https://localhost:8443
  • username : Enter the username of aem e.g. admin
  • password : Enter the password of the aem user entered above e.g. admin
  • csv path : Enter the path of the input in CSV format e.g. /Users/johndoe/Downloads/results.csv. The input csv may be provided in the below format. Please note that source field is mandatory.
source
/content/test/node1
/content/test/node2
/content/test/node3

_See code: [src/commands/delete.js](https://github.com/2019/slingx/blob/v0.0.6/src/commands/delete.js)_

## `slingx help [COMMAND]`

display help for slingx

USAGE $ slingx help [COMMAND]

ARGUMENTS COMMAND command to show help for

OPTIONS --all see all commands in CLI


_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.1/src/commands/help.ts)_


## `slingx move`

Moves Node(s) in a Sling repository

USAGE $ slingx move

DESCRIPTION
* hostname : Enter the hostname of aem e.g. https://localhost:8443
* username : Enter the username of aem e.g. admin
* password : Enter the password of the aem user entered above e.g. admin
* csv path : Enter the path of the input in CSV format e.g. /Users/johndoe/Downloads/results.csv. The input csv may be provided in the below format. Please note that **source** and **destination** fields are mandatory.

|                                                   | 
|---------------------------------------------------| 
| source,destination                                | 
| /content/test/node1,/content/test2/               | 
| /content/test/node2,/content/test2/               | 
| /content/test/node3,/content/test2/               | 

See code: src/commands/move.js

slingx query

Execute Search Query on an AEM repository

USAGE
  $ slingx query

DESCRIPTION

  • hostname : Enter the hostname of aem e.g. https://localhost:8443
  • username : Enter the username of aem e.g. admin
  • password : Enter the password of the aem user entered above e.g. admin
  • csv path : Enter the path for saving the results in CSV format e.g. /Users/johndoe/Downloads/results.csv
  • query : The Query should be provided in the standard AEM Query Builder format e.g. to find all the nt:unstructured nodes at /content/test2 path, user may enter the query as p.hits=full&path=/content/test2&type=nt:unstructured
_See code: [src/commands/query.js](https://github.com/2019/slingx/blob/v0.0.6/src/commands/query.js)_
<!-- commandsstop -->

Current Tags

  • 0.0.8                                ...           latest (3 months ago)

8 Versions

  • 0.0.8                                ...           3 months ago
  • 0.0.7                                ...           3 months ago
  • 0.0.6                                ...           3 months ago
  • 0.0.5                                ...           3 months ago
  • 0.0.4                                ...           3 months ago
  • 0.0.3                                ...           3 months ago
  • 0.0.2                                ...           3 months ago
  • 0.0.1                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |