InfluxDB: Using the InfluxDB CLI

This documentation is part of the Getting started guide. View the full guide here: How to get started with InfluxDB.

👋 Welcome to the Stackhero documentation!

Stackhero offers a ready-to-use InfluxDB cloud solution that provides a host of benefits, including:

  • Unlimited writes, queries, dashboards, tasks, and buckets.
  • Unlimited data retention time.
  • Unlimited network and disk transfers.
  • Effortless updates with just a click.
  • Optimal performance and robust security powered by a private and dedicated VM.

Save time and simplify your life: it only takes 5 minutes to try Stackhero's InfluxDB cloud hosting solution!

You can access the InfluxDB CLI via Docker. For example, run the following command:

docker run -it -u 0 bitnami/influxdb:2.7.11 /bin/bash

Don't forget to replace 2.7.11 with your InfluxDB version.

Once the container starts, create a configuration. Remember to replace <XXXXXX>.stackhero-network.com with your actual InfluxDB domain:

influx config create \
  --config-name adminConfig \
  --active \
  --username-password admin \
  --org admin \
  --host-url https://<XXXXXX>.stackhero-network.com

After this step, you'll be able to use the InfluxDB CLI. For instance, to create a new user, run:

influx user create --name <user> --password <password>