CLI: Sample Scripts

Learn about the available scripts in the CLI project.


Overview

The DryvIQ Command-line Interface (CLI) project provides ready-to-use PowerShell and Node script examples for common DryvIQ CLI operations. You can access the scripts at “~skysync-cli/samples.” These scripts demonstrate recommended patterns and command structures. This page explains available scripts and how to customize them for your environment.

SkySync References

The CLI references SkySync. This is expected. 

 

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.