chore: cleanup token create CLI message (#26158)

chore/beta-build
Trevor Hilton 2025-03-18 10:08:16 -04:00 committed by GitHub
parent 863a6d0b4a
commit d2da058ded
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -346,9 +346,10 @@ pub async fn command(config: Config) -> Result<(), Box<dyn Error>> {
"\
Token: {token}\n\
Hashed Token: {hashed}\n\n\
Start the server with `influxdb3 serve --bearer-token {hashed} --object-store file --data-dir ~/.influxdb3 --node-id YOUR_HOST_NAME`\n\n\
Start the server with the Hashed Token provided as the `--bearer-token` argument:\n\n
`influxdb3 serve --bearer-token {hashed} --node-id <NODE_ID> [OPTIONS]`\n\n\
HTTP requests require the following header: \"Authorization: Bearer {token}\"\n\
This will grant you access to every HTTP endpoint or deny it otherwise
This will grant you access to every HTTP endpoint or deny it otherwise.
",
hashed = hex::encode(&Sha512::digest(&token)[..])
);