Skip to content

The 'config' command

The config command is used to configure OwnStats. It allows you to set up your AWS credentials, region, and other settings.

Usage

Terminal window
USAGE
$ ownstats config ACTION PROPERTY [VALUE] [-j]
ARGUMENTS
ACTION (get|set) The action to perform
PROPERTY (aws-stage|aws-region|aws-profile) The property to configure
VALUE The configuration value
FLAGS
-j, --json Show output as JSON
DESCRIPTION
Configure the project settings

Example usage

For example, if you want to display the currently set AWS profile, you can run the following command:

Terminal window
ownstats config get aws-profile

To update a setting, e.g. the AWS region, you could use

Terminal window
ownstats config set aws-region eu-central-1