v3.23.1

Getting Started Devices Gateways Integrations Reference
Get The Things Stack

Reference

    Overview
  • Adaptive Data Rate
  • API
  • Application Packages
  • Billing with Stripe
  • Command-Line Interface
  • Components
  • Configuration
    • General Options
    • Tenant Billing Server Options
    • Application Server Options
    • Command-Line Interface Options
    • Console Options
    • Device Claiming Server Options
    • Gateway Configuration Server Options
    • Gateway Server Options
    • Identity Server Options
    • Join Server Options
    • Network Operations Center Options
    • Network Server Options
    • Packet Broker Agent Options
  • Data Formats
  • Data Retention and Privacy
  • Email Templates
  • Federated Authentication
  • Frequency Plans
  • FUOTA
  • Gateway RTT
  • Glossary
  • ID and EUI Constraints
  • Last Activity
  • LoRa Basics Station Implementation Guide
  • LoRaWAN Backend Interfaces Interoperability
  • LoRaWAN Specification and Regional Parameters
  • Networking
  • Packet Broker Routing
  • Packet Forwarders
  • Purging Entities
  • Rate Limiting
  • Resource Limiting
  • Root Certificates
  • Telemetry
  • Tenant Management
  • Web UI Branding

Command-Line Interface Options

Global Options

Under normal circumstances, only info, warn and error logs are printed to the console. For development, you may also want to see debug logs.

  • log.level: The minimum level log messages must have to be shown

By default the CLI assumes that it is connecting to servers that use TLS certificates that are trusted by the operating system. When connecting to servers with self-signed certificates or a custom CA, the ca option can be used to trust those certificates. When connecting servers that don’t use TLS, the insecure option can be used.

  • ca: CA certificate file
  • insecure: Connect without TLS

The CLI can keep track of multiple configurations and multiple credentials. The credentials-id flag selects the set of credentials that are used to connect to servers. The login command registers the hosts that are configured at that moment, and will prevent leaking credentials to other hosts. This can be circumvented with the allow-unknown-hosts option.

  • credentials-id: Credentials ID (if using multiple configurations)
  • allow-unknown-hosts: Allow sending credentials to unknown hosts

By default the CLI uses JSON as the input and output format. It is also possible to use a Go template as output format.

  • input-format: Input format
  • output-format: Output format

The CLI is capable of retrying requests that were rejected by the rate limiter: errors of type ResourceExausthed and Unavailable. By default, this behavior is disabled but can be set through the following configurations:

  • retry-config.max: Maximum amount of times that a request can be reattempted.
  • retry-config.default-timeout: Default timeout between retry attempts.
  • retry-config.enable-metadata: Enables use of the request response metadata to dynamically calculate a timeout for the retry attempts.
  • retry-config.jitter: Fraction that creates a deviation of the timeout used between retry attempts.

API Options

The CLI needs to be configured with the addresses of the OAuth server. The Getting Started guide gives a good example configuration for a typical deployment.

  • oauth-server-address: OAuth Server address
  • identity-server-grpc-address: Identity Server address
  • gateway-server-enabled: Gateway Server enabled
  • gateway-server-grpc-address: Gateway Server address
  • network-server-enabled: Network Server enabled
  • network-server-grpc-address: Network Server address
  • application-server-enabled: Application Server enabled
  • application-server-grpc-address: Application Server address
  • join-server-enabled: Join Server enabled
  • join-server-grpc-address: Join Server address
  • device-claiming-server-grpc-address: Device Claiming Server address
  • device-template-converter-grpc-address: Device Template Converter address
  • qr-code-generator-grpc-address: QR Code Generator address
← Application Server Options Console Options →

On this page

  • Global Options
  • API Options

The Things Stack

Getting Started

Devices

Gateways

Integrations

Reference

Contributing

GitHub

Forum

About Us

The Things Network

The Things Industries

About this page

Last changed by Nicholas Cristofaro on 02 Feb 2022.
doc: Add retry options to cli configuration (#741)

Edit on Github