# Common options

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

* [Assume yes to all questions](#assume-yes-to-all-questions)
* [Display help](#display-help)
* [Display Takomo version](#display-takomo-version)
* [Enable confidential information logging](#enable-confidential-information-logging)
* [Enable statistics](#enable-statistics)
* [Feature flags](#feature-flags)
* [Load AWS SDK config](#load-aws-sdk-config)
* [Load environment variables from a file](#load-environment-variables-from-a-file)
* [Set logging level](#set-logging-level)
* [Set project dir](#set-logging-level)
* [Set variables](#set-variables)
* [Show command to generate IAM policies](#show-command-to-generate-iam-policies)
* [Suppress all but the final output](#suppress-all-but-the-final-output)
* [Use AWS profile](#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](https://docs.takomo.io/variables/command-line-variables).

## 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](https://docs.takomo.io/configuration/aws-credentials).
