# Common options

Here are the options available for all commands (unless stated otherwise).

* [Assume yes to all questions](/command-line-usage/common-options.md#assume-yes-to-all-questions)
* [Display help](/command-line-usage/common-options.md#display-help)
* [Display Takomo version](/command-line-usage/common-options.md#display-takomo-version)
* [Enable confidential information logging](/command-line-usage/common-options.md#enable-confidential-information-logging)
* [Enable statistics](/command-line-usage/common-options.md#enable-statistics)
* [Feature flags](/command-line-usage/common-options.md#feature-flags)
* [Load AWS SDK config](/command-line-usage/common-options.md#load-aws-sdk-config)
* [Load environment variables from a file](/command-line-usage/common-options.md#load-environment-variables-from-a-file)
* [Set logging level](/command-line-usage/common-options.md#set-logging-level)
* [Set project dir](/command-line-usage/common-options.md#set-logging-level)
* [Set variables](/command-line-usage/common-options.md#set-variables)
* [Show command to generate IAM policies](/command-line-usage/common-options.md#show-command-to-generate-iam-policies)
* [Suppress all but the final output](/command-line-usage/common-options.md#suppress-all-but-the-final-output)
* [Use AWS profile](/command-line-usage/common-options.md#use-aws-profile)

## Assume yes to all questions

Pass `--yes` or `-y` option to answer yes to all questions.

## Display help

Pass `--help` option to display help. Command specific helps include also the minimum IAM permissions needed to run the command.

## Display Takomo version

Pass `--version` option to print version information.

## Enable confidential information logging

By default, environment variables and confidential parameter values are concealed from logs. Override this default by passing `--log-confidential-info`.

## Enable statistics

Use `--stats` option to print statistics information of the executed command.

## Feature flags

You can use `--feature <feature>=<boolean value>` option to enable and disable certain Takomo features.

Available feature flags:

* deploymentTargetsUndeploy - Set false to disable [undeploy deployment targets](https://targets.takomo.io/command-line-usage/undeploy-targets) command
* deploymentTargetsTearDown - Set false to disable [tear down deployment targets](https://targets.takomo.io/command-line-usage/tear-down-targets) command

## Load AWS SDK config

Use `--load-aws-sdk-config` to prefer loading credentials from configuration file over the credentials file. Passing this option will enable loading the profile from **\~/.aws/config** file.

## Load environment variables from a file

Use `--env-file <path-to-environment-variables-file>` to load environment variables from a file. The loaded variables override existing variables with the same name. This option can be used multiple times.

The environment variables must be defined in a format accepted by [dotenv](https://www.npmjs.com/package/dotenv), like so:

```
DB_HOST=localhost
DB_USER=root
DB_PASS=s1mpl3
```

## Set logging level

Use `--log <level>` option to choose the logging level.

Supported values are:

* trace
* debug
* info (default)
* warn
* error
* none (suppress all logging)

## Set project dir

Use `--dir <directory>` or `-d <directory>` option to define the directory from where Takomo loads configuration.

## Set variables

Pass `--var` and `--var-file` options to provide variables that can be used in stack group and stack configuration files and stack templates. Both options can be used multiple times.

For more information, see [command-line variables](/variables/command-line-variables.md).

## Show command to generate IAM policies

Use `--show-generate-iam-policies` option to print instructions how to generate IAM policies needed to run the command.&#x20;

## Suppress all but the final output

Use `--quiet` or `-q` to suppress all logging and all but the final output. Useful when you want to write the command output to a file.

## Use AWS profile

Use `--profile <profile>` option to choose which AWS profile to use.

For more information, see [AWS credentials](/configuration/aws-credentials.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.takomo.io/command-line-usage/common-options.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
