CLI: Sample Scripts
Learn about the available scripts in the CLI project.
Table of Contents
The CLI references “skysync.” This is expected.
Overview
The skysync-cli project contains PowerShell and Node example scripts at ~skysync-cli/samples. Below is a summary of the available scripts.
Node
This sample demonstrates how to natively use the client SDK in Node for the following steps:
- Obtain SkySyncClient object with the provided credentials
- Create an NFS connection
- Create Office 365 connection
- Create a sync job
- Start the job
- Delete all sample jobs
- Delete all sample connections.
Powershell
Basic NFS to Box Copy Job Sample
This sample encompasses the following steps:
- Authenticate using an external file
- Create an NFS connection
- Create a Box connection
- Create a copy job
- Start the job
- Delete all transfer jobs (preserve system jobs)
- Delete all connections, except for the 'My Computer' connection.