C
clickhousectl
Details
- Command
-
clickhousectl - Docs
- https://clickhouse.com/docs/interfaces/cli
Authentication
clickhousectl OAuth login token oauth2 discovered
$ clickhousectl cloud auth login Acquired by the CLI — running clickhousectl cloud auth login opens the auth flow and stores the credential.
In the ClickHouse Cloud console, open your organization's API key management from the Cloud API docs / Swagger reference. Create an API key for the organization; ClickHouse returns a keyId and keySecret. Use them together as HTTP Basic Auth username/password. The query-endpoints guide notes API keys are required and recommends creating a scoped key with only the permissions you need.