The aws-profile list command prints every AWS profile configured on your machine. It displays each profile's name, access key ID, and a masked secret access key in a table. Use it to verify which profiles are available before deploying or to audit stored credentials.
Usage
The command has no required flags. The CLI prints a table with three columns: Profile, AWS_ACCESS_KEY_ID, and AWS_SECRET_ACCESS_KEY. The secret access key is masked: the first 36 characters are replaced with asterisks, showing only the last 4. The --agent result masks it the same way. Pass --show-secrets to print and return the whole key.
If no profiles are configured, the command prints a warning and suggests creating one with aws-profile create.
Options reference
stacktape aws-profile listCLI options-h, --helpstringShow Help
If provided, the command will not execute and will instead print help information.
--log-level"info" | "debug" | "error"Log Level
The level of logs to print to the console.
info: Basic information about the operation.error: Only errors.debug: Detailed information for debugging.
--quietbooleanQuiet
Hide progress, banners, success messages and hints. Command output, warnings and errors are still printed.
--show-secretsbooleanShow Secrets
If true, the command includes secret values in its output: database passwords, connection strings with credentials and other stack parameters Stacktape stores as sensitive, and the value a secret get reads. Without it, each of them is < in the terminal, in JSON output and in the stack-info file. Use it only where the output stays private, never in shared CI logs.
Examples
List all configured profiles.
List profiles with minimal log output.
Related commands
aws-profile create— create a new AWS profile on your system.aws-profile update— update credentials for an existing profile.aws-profile delete— remove a profile from your system.