InfluxDB: Using the InfluxDB CLI
This documentation is part of the Getting started guide. You can view the complete guide here: How to quickly set up and manage InfluxDB with best practices.
👋 Welcome to the Stackhero documentation
Stackhero provides a fully managed InfluxDB cloud environment, designed for speed and simplicity:
- Unlimited writes, queries, dashboards, tasks, and buckets.
- Unlimited data retention: keep your metrics for as long as you need.
- Unlimited network and disk transfers, with no hidden limits.
- One-click updates: always benefit from the latest features and fixes.
- Consistent performance and enhanced security on your own private, dedicated infrastructure.
With Stackhero, you can focus on your data and analysis. Deploying InfluxDB cloud hosting only takes a few minutes, with every setup optimised for long-term reliability.
You can access the InfluxDB CLI through Docker. For example, you can run the following command:
docker run -it influxdb:2.8 /bin/bash
Remember to use the version tag that matches your InfluxDB instance instead of
2.8.
After starting the container, create a configuration. Replace <XXXXXX>.stackhero-network.com with the actual domain of your InfluxDB instance:
influx config create \
--config-name adminConfig \
--active \
--username-password admin \
--org admin \
--host-url https://<XXXXXX>.stackhero-network.com
Once the configuration is set up, you can use the InfluxDB CLI to manage users. For example, to create a new user:
influx user create --name <user> --password <password>