Skip to content

iot-tools CLI Reference

IoT development tools for schema generation, gateway management, and more

Quick Reference

asset

Manage and inspect assets

CommandDescription
asset listList all configured assets
asset infoShow detailed information about an asset
asset testTest asset connectivity and health
asset monitorMonitor asset metrics in real-time
asset snapshotGet asset snapshot as JSON
asset enableEnable an asset
asset disableDisable an asset

battery

Control battery charging and discharging

CommandDescription
battery set-chargeSet battery charge power
battery set-dischargeSet battery discharge power
battery set-idleSet battery to idle mode (neither charge nor discharge)

config

Configure gateway settings

CommandDescription
config initInitialize gateway configuration files
config showDisplay gateway configuration
config elastic-apmConfigure Elastic APM settings
config elastic-loggingConfigure Elastic Cloud logging
config refreshRefresh asset configuration from the cloud

service

Manage Windows service installation

CommandDescription
service installInstall the gateway as a Windows service
service startStart the gateway Windows service
service stopStop the gateway Windows service
service uninstallUninstall the gateway Windows service

Standalone Commands

CommandDescription

↑ Back to Top


Commands

asset

📍 Path: iot-tools asset

Manage and inspect assets

Available Subcommands:

CommandDescription
listList all configured assets
infoShow detailed information about an asset
testTest asset connectivity and health
monitorMonitor asset metrics in real-time
snapshotGet asset snapshot as JSON
enableEnable an asset
disableDisable an asset

asset list

📍 Path: iot-tools asset list | Parent: asset

List all configured assets

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools asset list asset
  • With custom options (Advanced configuration)
    bash
    iot-tools asset list --type Battery asset

Full Usage:

bash
iot-tools asset list [options]

Options

OptionTypeDescriptionDefault
--disabled-onlyflagShow only disabled assets-
--enabled-onlyflagShow only enabled assets-
--type, -tstringFilter by asset type (e.g., Battery, Solar, Grid)-

Examples

bash
iot-tools asset list asset
bash
iot-tools asset list
bash
iot-tools asset list --type Battery asset
bash
iot-tools asset list --enabled-only

asset info

📍 Path: iot-tools asset info | Parent: asset

Show detailed information about an asset

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools asset info asset
  • With custom options (Advanced configuration)
    bash
    iot-tools asset info --snapshot

Full Usage:

bash
iot-tools asset info <arguments> [options]

Arguments

  • assetName (required) - Type: string Name of the asset

Options

OptionTypeDescriptionDefault
--snapshot, -sflagShow current snapshot values-

Examples

bash
iot-tools asset info asset
bash
iot-tools asset info Battery1 asset
bash
iot-tools asset info Battery1
bash
iot-tools asset info --snapshot

asset test

📍 Path: iot-tools asset test | Parent: asset

Test asset connectivity and health

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools asset test asset
  • With custom options (Advanced configuration)
    bash
    iot-tools asset test --verbose

Full Usage:

bash
iot-tools asset test <arguments> [options]

Arguments

  • assetName (required) - Type: string Name of the asset to test

Options

OptionTypeDescriptionDefault
--verbose, -vflagVerbose output with detailed diagnostics-

Examples

bash
iot-tools asset test asset
bash
iot-tools asset test Battery1 asset
bash
iot-tools asset test Battery1
bash
iot-tools asset test --verbose

asset monitor

📍 Path: iot-tools asset monitor | Parent: asset

Monitor asset metrics in real-time

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools asset monitor asset
  • With custom options (Advanced configuration)
    bash
    iot-tools asset monitor --interval 5 asset

Full Usage:

bash
iot-tools asset monitor <arguments> [options]

Arguments

  • assetName (required) - Type: string Name of the asset to monitor

Options

OptionTypeDescriptionDefault
--count, -nint?Number of updates to display (default: continuous)-
--interval, -iintRefresh interval in seconds (default: 2)-

Examples

bash
iot-tools asset monitor asset
bash
iot-tools asset monitor Battery1 asset
bash
iot-tools asset monitor Battery1
bash
iot-tools asset monitor --interval 5 asset
bash
iot-tools asset monitor --count 10

asset snapshot

📍 Path: iot-tools asset snapshot | Parent: asset

Get asset snapshot as JSON

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools asset snapshot asset
  • With custom options (Advanced configuration)
    bash
    iot-tools asset snapshot --pretty asset

Full Usage:

bash
iot-tools asset snapshot <arguments> [options]

Arguments

  • assetName (required) - Type: string Name of the asset

Options

OptionTypeDescriptionDefault
--omit-zero, -zflagOmit metrics with zero values-
--pretty, -pflagPretty print the JSON output-

Examples

bash
iot-tools asset snapshot asset
bash
iot-tools asset snapshot Battery1 asset
bash
iot-tools asset snapshot Battery1
bash
iot-tools asset snapshot --pretty asset
bash
iot-tools asset snapshot --omit-zero

asset enable

📍 Path: iot-tools asset enable | Parent: asset

Enable an asset

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools asset enable asset

Full Usage:

bash
iot-tools asset enable <arguments>

Arguments

  • assetName (required) - Type: string Name of the asset to enable

Examples

bash
iot-tools asset enable asset
bash
iot-tools asset enable Battery1

asset disable

📍 Path: iot-tools asset disable | Parent: asset

Disable an asset

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools asset disable asset

Full Usage:

bash
iot-tools asset disable <arguments>

Arguments

  • assetName (required) - Type: string Name of the asset to disable

Examples

bash
iot-tools asset disable asset
bash
iot-tools asset disable Battery1


battery

📍 Path: iot-tools battery

Control battery charging and discharging

Available Subcommands:

CommandDescription
set-chargeSet battery charge power
set-dischargeSet battery discharge power
set-idleSet battery to idle mode (neither charge nor discharge)

battery set-charge

📍 Path: iot-tools battery set-charge | Parent: battery

Set battery charge power

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools battery set-charge battery

Full Usage:

bash
iot-tools battery set-charge <arguments>

Arguments

  • batteryName (required) - Type: string Name of the battery asset
  • watts (required) - Type: double Charge power in watts

Examples

bash
iot-tools battery set-charge battery
bash
iot-tools battery set-charge Battery1 2000 battery
bash
iot-tools battery set-charge Battery1 5000

battery set-discharge

📍 Path: iot-tools battery set-discharge | Parent: battery

Set battery discharge power

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools battery set-discharge battery

Full Usage:

bash
iot-tools battery set-discharge <arguments>

Arguments

  • batteryName (required) - Type: string Name of the battery asset
  • watts (required) - Type: double Discharge power in watts

Examples

bash
iot-tools battery set-discharge battery
bash
iot-tools battery set-discharge Battery1 2000 battery
bash
iot-tools battery set-discharge Battery1 5000

battery set-idle

📍 Path: iot-tools battery set-idle | Parent: battery

Set battery to idle mode (neither charge nor discharge)

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools battery set-idle battery

Full Usage:

bash
iot-tools battery set-idle <arguments>

Arguments

  • batteryName (required) - Type: string Name of the battery asset

Examples

bash
iot-tools battery set-idle battery
bash
iot-tools battery set-idle Battery1


config

📍 Path: iot-tools config

Configure gateway settings

Available Subcommands:

CommandDescription
initInitialize gateway configuration files
showDisplay gateway configuration
elastic-apmConfigure Elastic APM settings
elastic-loggingConfigure Elastic Cloud logging
refreshRefresh asset configuration from the cloud

config init

📍 Path: iot-tools config init | Parent: config

Initialize gateway configuration files

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools config init config
  • With custom options (Advanced configuration)
    bash
    iot-tools config init --device-id gateway-001 config

Full Usage:

bash
iot-tools config init [options]

Options

OptionTypeDescriptionDefault
--device-idstringGateway ID for this gateway-
--force, -fflagOverwrite existing configuration-
--interactive, -iflagInteractive mode - prompt for values-

Examples

bash
iot-tools config init config
bash
iot-tools config init
bash
iot-tools config init --device-id gateway-001 config
bash
iot-tools config init --interactive config
bash
iot-tools config init --force

config show

📍 Path: iot-tools config show | Parent: config

Display gateway configuration

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools config show config

Full Usage:

bash
iot-tools config show

Examples

bash
iot-tools config show config
bash
iot-tools config show

config elastic-apm

📍 Path: iot-tools config elastic-apm | Parent: config

Configure Elastic APM settings

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools config elastic-apm config
  • With custom options (Advanced configuration)
    bash
    iot-tools config elastic-apm --show config

Full Usage:

bash
iot-tools config elastic-apm [options]

Options

OptionTypeDescriptionDefault
--enabledflagEnable or disable APM-
--environmentstringEnvironment name (default: Production)-
--secret-tokenstringElastic APM Secret Token-
--server-urlstringElastic APM Server URL-
--service-namestringService name (default: voltimax-edge)-
--showflagShow current configuration-

Examples

bash
iot-tools config elastic-apm config
bash
iot-tools config elastic-apm
bash
iot-tools config elastic-apm --show config
bash
iot-tools config elastic-apm --server-url https://apm.example.com:443 --secret-token mytoken config
bash
iot-tools config elastic-apm --enabled true

config elastic-logging

📍 Path: iot-tools config elastic-logging | Parent: config

Configure Elastic Cloud logging

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools config elastic-logging config
  • With custom options (Advanced configuration)
    bash
    iot-tools config elastic-logging --show config

Full Usage:

bash
iot-tools config elastic-logging [options]

Options

OptionTypeDescriptionDefault
--api-keystringElastic API Key-
--cloud-idstringElastic Cloud ID-
--showflagShow current configuration-

Examples

bash
iot-tools config elastic-logging config
bash
iot-tools config elastic-logging
bash
iot-tools config elastic-logging --show config
bash
iot-tools config elastic-logging --cloud-id my-deployment:... --api-key mykey

config refresh

📍 Path: iot-tools config refresh | Parent: config

Refresh asset configuration from the cloud

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools config refresh config
  • With custom options (Advanced configuration)
    bash
    iot-tools config refresh --show-hash config

Full Usage:

bash
iot-tools config refresh [options]

Options

OptionTypeDescriptionDefault
--dry-runflagDry run - show what would be updated without writing-
--force, -fflagForce refresh even if configuration hasn't changed-
--show-hashflagShow current asset configuration hash-

Examples

bash
iot-tools config refresh config
bash
iot-tools config refresh
bash
iot-tools config refresh --show-hash config
bash
iot-tools config refresh --force config
bash
iot-tools config refresh --dry-run


service

📍 Path: iot-tools service

Manage Windows service installation

Available Subcommands:

CommandDescription
installInstall the gateway as a Windows service
startStart the gateway Windows service
stopStop the gateway Windows service
uninstallUninstall the gateway Windows service

service install

📍 Path: iot-tools service install | Parent: service

Install the gateway as a Windows service

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools service install service
  • With custom options (Advanced configuration)
    bash
    iot-tools service install --start service

Full Usage:

bash
iot-tools service install [options]

Options

OptionTypeDescriptionDefault
--force, -fflagForce reinstall if service already exists-
--install-pathstringInstallation directory for service files (default: Program Files\Voltimax\Edge)-
--service-pathstringPath to vgatewayd.exe (auto-detected if not specified)-
--startflagStart the service immediately after installation-

Examples

bash
iot-tools service install service
bash
iot-tools service install
bash
iot-tools service install --start service
bash
iot-tools service install --force service
bash
iot-tools service install --service-path C:\path\to\vgatewayd.exe

service start

📍 Path: iot-tools service start | Parent: service

Start the gateway Windows service

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools service start service

Full Usage:

bash
iot-tools service start [options]

Options

OptionTypeDescriptionDefault
--timeoutintTimeout in seconds when waiting for service start-
--waitflagWait for service to fully start (default: true)-

Examples

bash
iot-tools service start service
bash
iot-tools service start

service stop

📍 Path: iot-tools service stop | Parent: service

Stop the gateway Windows service

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools service stop service

Full Usage:

bash
iot-tools service stop [options]

Options

OptionTypeDescriptionDefault
--timeoutintTimeout in seconds when waiting for service stop-
--waitflagWait for service to fully stop (default: true)-

Examples

bash
iot-tools service stop service
bash
iot-tools service stop

service uninstall

📍 Path: iot-tools service uninstall | Parent: service

Uninstall the gateway Windows service

Common Usage:

  • Basic usage with default settings (Quick start)
    bash
    iot-tools service uninstall service
  • With custom options (Advanced configuration)
    bash
    iot-tools service uninstall --force service

Full Usage:

bash
iot-tools service uninstall [options]

Options

OptionTypeDescriptionDefault
--force, -fflagSkip confirmation prompt-
--remove-filesflagRemove service files from installation directory-

Examples

bash
iot-tools service uninstall service
bash
iot-tools service uninstall
bash
iot-tools service uninstall --force service
bash
iot-tools service uninstall --remove-files --force