Getting Started Concepts The Things Stack Cloud The Things Stack Enterprise Integrations API Hardware
Get The Things Stack

Concepts

    Overview
  • Architecture
  • Features
    • Console
    • Command-line Interface
      • Installing the CLI
      • Configuring the CLI
      • Login with the CLI
      • Troubleshooting CLI
      • Command-Line Interface Reference
    • Multi-tenancy
    • Gaining insights using Events
    • LoRaWAN
    • Single Sign-On
    • Alerting
    • Network Operations Center
  • Networking
  • Migrate to The Things Stack
  • Packet Broker
  • Server Addresses
  • Advanced Topics
  • Troubleshooting
  • The Things Stack Sandbox

Login with the CLI

This section explains how to login to The Things Stack using the command-line interface.

The CLI needs to be logged on in order to create gateways, applications, devices and API keys. With The Things Stack running, login with the following command:

  • Cloud, Sandbox, and Open Source
  • Enterprise
ttn-lw-cli login

or on Windows:

ttn-lw-cli.exe login
tti-lw-cli login

or on Windows:

tti-lw-cli.exe login

This will open a browser window with the OAuth login page where you can login with your credentials. This is also where you can create a new account if you do not already have one.

During the login procedure, the CLI starts a webserver on localhost in order to receive the OAuth callback after login. If you are running the CLI on a machine that is not localhost, you can pass the --callback=false flag. This will allow you to perform part of the OAuth flow on a different machine, and copy-paste a code back into the CLI.

← Configuring the CLI Troubleshooting CLI →

On this page

Sections

Getting Started

Concepts

The Things Stack Cloud

The Things Stack Enterprise

Integrations

API

Hardware

Sitemap

View our Sitemap

Contributing

GitHub

About Us

The Things Industries