astra config home path
astra config home path [-qV] [--no-input] [--[no-]spinner] [--dump-logs[=FILE]]
[--color=WHEN] [-o=FORMAT] [-p | -i]
Prints the expected path of the astra home folder, even if does not exist.
The folder is resolved in the following order:
-
The
ASTRA_HOMEenvironment variable (e.g. ASTRA_HOME=~/my_folder) -
The
XDG_DATA_HOMEspec (e.g. $XDG_DATA_HOME/astra) -
The default home directory (e.g. ~/.astra)
By default, shows informational output when running in a TTY (interactive terminal), and plain path output when piped or redirected.
Options
-p,--plain-
Print only the path to the home folder, without additional information (always)
-i,--info-
Print informational output with context about the path (always)
Common Options
-o,--output-
One of: human, json, csv
-V,--verbose-
Enable verbose logging output
-q,--quiet-
Only output essential information
--spinner-
Enable/disable loading spinners
--no-input-
Don’t ask for user input (e.g. confirmation prompts)
--color-
One of: auto, never, always
--dump-logs-
Write all logs to an optionally specified file
Examples
# Get information about the path to the astra home folder
$ astra config home path
# Force only the plain path to the .astrarc file, without additional information
$ astra config home path -p
# Force informational output even when piped or redirected
$ astra config home path -i