config
¶
The command croud config
offers multiple subcommands to manage its
configuration.
config show
¶
You can show your full configuration, like so:
Usage: croud config show [-h]
Example¶
sh$ croud config show
==> Info: Configuration file /home/me/.config/Crate/croud.yaml
default-format: table
current-profile: cratedb.cloud
profiles:
cratedb.cloud:
auth-token: xxxxxxxxxx
endpoint: https://console.cratedb.cloud
format: table
region: _any_
Note, that the values of auth-token
are masked.
config profiles current
¶
You can list your current profile, like so:
Usage: croud config profiles current [-h]
[--output-fmt {table,wide,json,yaml}]
Optional Arguments¶
- --output-fmt, --format, -o
Possible choices: table, wide, json, yaml
Change the formatting of the output.
Example¶
sh$ croud config profiles current
+---------------+----------------------------------+----------+
| name | endpoint | format |
|---------------+----------------------------------+----------|
| cratedb.cloud | https://console.cratedb.cloud | table |
+---------------+----------------------------------+----------+
config profiles use
¶
You can switch to a different profile, like so:
Usage: croud config profiles use [-h] [--output-fmt {table,wide,json,yaml}]
profile
Required Arguments¶
- profile
The name of the profile that should be used.
Optional Arguments¶
- --output-fmt, --format, -o
Possible choices: table, wide, json, yaml
Change the formatting of the output.
Example¶
sh$ croud config profiles use some.other
==> Info: Switched to profile 'some.other'.