Release Announcement: InfluxDB CLI 2.1.0
By
Russ Savage /
Product
Jul 30, 2021
Navigate to:
A new release for InfluxDB Command Line Tools (CLI) is now available.
- InfluxDB CLI 2.1.0 release notes
Key highlights for this InfluxDB CLI release include:
New Repository
This is the initial release of the influx CLI from the influxdata/influx-cli GitHub repository. Moving the command line client to its own repository allows us to iterate independently and fix issues independent of the InfluxDB OSS project. This will allow us to support features that are showing up in InfluxDB Cloud first.
Breaking Changes
The move to a new repository means we were able to make major changes to the tooling. Below is a list of the breaking changes in this release.
influx writeSkip Header Parsing - The write command no longer supports--skipHeaderas shorthand for--skipHeader 1. This change was made to simplify our CLI parser.- Stricter input validation for template-related commands - The
apply,export, andstackscommands now raise errors when CLI options fail to parse instead of silently discarding bad inputs. This change was made to help users debug when their commands fail to execute as expected. - Server-side template summarization & validation - The
templateandtemplate validatecommands now use an API request to the server to perform their logic, instead of performing the work on the client-side. Offline summarization & validation is no longer supported. This change was made to avoid significant code duplication betweeninfluxdbandinflux-cli, and to allow server-side template logic to evolve without requiring coordinated CLI changes. influx stacks --jsonoutput conventions - The output ofinflux stacks --jsonpreviously used an UpperCamelCase naming convention for most, but not all, keys. The command now uses lowerCamelCase consistently for all objects keys, matching the schema returned by the API.
Features
- New command line flags - Added a global
--http-debugflag to help inspect communication with InfluxDB servers. - Added the
bucket-schemacommands to manage explicit measurement schemas in InfluxDB Cloud. Along with that, we updated thebucket createandbucket listcommands to support explicit schema as well. - Reimplemented
backupandrestoreto support downloading the embedded SQL store from InfluxDB. - Added a
--compressionflag to backup to support enabling/disabling GZIP compression of downloaded files. - Added a
--passwordflag to user password command to allow bypassing interactive prompt. - Bound
--skip-verifyflag toINFLUX_SKIP_VERIFYenvironment variable.
Bug Fixes
- Windows Powershell - Fixed interactive password collection & color rendering in PowerShell when using Windows.
- The
organization members listcommand no longer hangs when an organization has more than 10 members. - Added the ability to detect & warn when inputs to write contain standalone CR characters.
- The
dashboardscommand now accepts--orgflag, or falls back to default organization in the config profile. - We now return a consistent error when responses fail to decode, with hints for OSS or Cloud-only commands.
The latest open source release can be found on our downloads page.
If you find issues or have questions, please join our InfluxDB Community Slack, post them in our InfluxDB GitHub Repo or our Community Site and we will take a look.