InfluxDB: Using the InfluxDB CLI
This documentation is part of the Getting started guide. View the full guide here: How to quickly set up and manage InfluxDB with best practices.
👋 Welcome to the Stackhero documentation
Stackhero delivers a fully managed InfluxDB cloud environment, designed for speed and simplicity:
- Unlimited writes, queries, dashboards, tasks, and buckets.
- Unlimited data retention: keep your metrics as long as you need.
- Unlimited network and disk transfers, with no hidden limits.
- One-click updates: always access the latest features and fixes.
- Consistent performance and strong security on your own private, dedicated infrastructure.
With Stackhero, you can focus on your data and insights. Getting started with InfluxDB cloud hosting only takes a few minutes, and every setup is optimized for long-term reliability.
You can access the InfluxDB CLI via Docker. For example, you can run this command:
docker run -it influxdb:2.8 /bin/bash
Remember to use the correct version tag for your InfluxDB instance instead of
2.8.
After launching the container, create a configuration. 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
Once configured, you can use the InfluxDB CLI to manage users. For example, to create a new user:
influx user create --name <user> --password <password>