astra config path

astra config path [-qV] [--no-input] [--[no-]spinner] [--dump-logs[=FILE]]
                  [--color=WHEN] [-o=FORMAT] [-p | -i]

Prints the expected path of the .astrarc file, even if does not exist.

The file is resolved in the following order:

  1. The ASTRARC environment variable (e.g. ASTRARC=~/my_folder/.my_rc)

  2. The XDG_CONFIG_HOME spec (e.g. $XDG_CONFIG_HOME/astra/.astrarc)

  3. The default home directory (e.g. ~/.astrarc)

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 .astrarc file, 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 .astrarc file
$ astra config path

# Force only the plain path to the .astrarc file, without additional information
$ astra config path -p

# Force informational output even when piped or redirected
$ astra config path -i

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2025 | Privacy policy | Terms of use Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM