Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • API, CLI, and SDK Documentation
  • Command-line Interface

CLI: Authentication

Learn how to use CLI to pass authentication information.

Written by Andrea Harvey

Updated at April 28th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Insights
    Prebuilt Insights Custom Insights
  • Content
  • Accounts
  • Activity Log
  • Content Scans
  • Migrations
    Migration Jobs Migration Reports Maps Flagged Items Migration Tools
  • Connections
    Supported Platform Connections Creating Connections Connection Maintenance Connection Pools
  • Entity Types
    DryvIQ Available Entity Types Custom Entity Types Entity Type Maintenance
  • Action Sets
    Creating Action Sets Action Sets Maintenance
  • Settings
    License Performance Notifications Extensions Entity Types Settings Display Settings Configuration
  • API, CLI, and SDK Documentation
    REST API Documentation Command-line Interface SDK Development
  • POC Offering
  • Release Notes
+ More

Table of Contents

Authentication Example 1: Command line parameters Command with variables Command with example values Example 2: Parameters provided within a file Command Contents of skysync-cli.json Example 3: Parameters provided by environment variables Command

The CLI references “skysync.” This is expected.

 

Authentication

The CLI requires authentication information to be passed in with every command. There are two ways to provide this information: in-line with the command or within a file.

Paramater Description Required Default
server The DryvIQ server URI Optional http://localhost:9090/
username, user The username Optional admin
password The password Required  
site The remote site context Required when connecting to a remote site  

Example 1: Command line parameters

In this example, the authentication parameters are provided through the command line with the request to list the connections. The parameters within the two curly braces (including the braces) must be replaced with valid values.

Command with variables

skysync-cli --username={{username}} --password={{password}} --server=http://{{server IP address}}:{{server port}}/ connections list

Command with example values

skysync-cli --username=admin --password=somePassword --server=http://111.111.111.111:9090/ connections list

Example 2: Parameters provided within a file

In this example, the authentication parameters are provided within the configuration file. The parameters within the two curly braces (including the braces) must be replaced with valid values. The skysync-cli.json must be in the working directory.

Command

skysync-cli connections list

Contents of skysync-cli.json

{
    "server": "http://{{server IP address}}:{{server port}}/",
    "username": "{{username}}",
    "password": "{{password}}"
}

Example 3: Parameters provided by environment variables

In this example, the authentication parameters are provided by environment variables. The parameters within the two curly braces (including the braces) must be replaced with valid values.

Command

skysync-cli connections list
Environment Variable Name Value
SKYSYNC_server http://{{server IP address}}:{{server port}}/
SKYSYNC_username {{username}}
SKYSYNC_password {{password}}

 

 

authorization command-line

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • DryvIQ CLI for Migrations
  • CLI: Configuration
  • CLI: Licensing
  • CLI: Cluster

Copyright 2025 – DryvIQ, Inc.

Knowledge Base Software powered by Helpjuice

Expand