chore: cleanup token create CLI message (#26158)
parent
863a6d0b4a
commit
d2da058ded
|
@ -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)[..])
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue