Skip to main content

CLI

As stated previously, in most cases you don't use the vegas-credentials command directly but if you need to troubleshoot something or you wish to configure the user output (such as colors or emoji), then this section is for you.

Global Flags

FlagDefault ValuePurpose
--helpPrints out help message for given command
--no-colorfalseDisable both colors and emoji from visible output
--no-emojifalseDisable emoji from visible output (but keep colors)
--no-guifalseDisable GUI Diaglog Prompt
--verbosefalseEnable Verbose Output

Environment Variables

FlagPurpose
XDG_CACHE_HOMEEnable cache location override as per XDG Base Directory Specification
VERBOSEEnable Verbose Output
TERM=dumbDisable both colors and emoji from visible output
NO_COLORDisable both colors and emoji from visible output
VEGAS_CREDENTIALS_NO_COLORDisable both colors and emoji from visible output – only for this program
NO_EMOJIDisable emoji from visible output (but keep colors)
VEGAS_CREDENTIALS_NO_EMOJIDisable emoji from visible output (but keep colors) – only for this program

Commands

Root

Mainly for information purposes.

FlagRequired?Purpose
--versionPrints out version information
--infoPrints out information about the program

Examples

$ vegas-credentials --version
v1.21.7
$ vegas-credentials --info
Name: Vegas Credentials
Version: v1.21.7
Build: #abcd123
URL: https://credentials.vegas
Source: https://github.com/aripalo/vegas-credentials
Description: AWS credential_process utility

assume

The "main" command, which is used when assigning vegas-credentials as the credential source in AWS configuration.

Most of the configuration for this command is read from ~/.aws/config by looking at the given --profile flag.

Flags

FlagRequired?Purpose
--profileWhich Assumable Profile to use from ~/.aws/config.

Should match the value of section title under which vegas-credentials is defined as the credential_process in ~/.aws/config.

Examples

$ vegas-credentials --profile frank@concerts
{
"Version": 1,
"AccessKeyId": "ASIAUYE1FI4W7EXAMPLE",
"SecretAccessKey": "jvH8V8UQQxLdp0TdacBsfKJoVoYgCGEXAMPLEKEY",
"SessionToken": "EXAMPLE/SESSION/TOKEN/vYXdzELr//////////wEa89YYBwBWM0EdOBJ2ICKrAVF9fJJcKBk5ez8uzMFUCbUH02FTmq/XvlDPPpBXB/G6Yy7SyAhwFSRyFskurP1aGVdjC/jF3WS1sBVs4r4vf5udPC/kJJiox/a+xk4Z0ZfXy139vtfbdrBjw1mSVNzhW/gXcZbRRhKJMEl+7vDGNiQ0MqZa1Fz0E26s40av4F2BQac0jnOSqE8GazgCeRjUyxgHtwHivEEKwiQDxjj5W7f9AM56RSyJlByj/3JCTBjItfwFv3qEJb5cu1pe/r1RnRNVzdgqGbc+Y1Mr1x+EXAMPLE",
"Expiration": "2022-04-21T17:51:11Z"
}

version

Print out version information.

FlagRequired?Purpose
--fullPrint out full version & build information
$ vegas-credentials version --full
vegas-credentials version 0.11.1 darwin/amd64

config list

Prints out information what are the various configuration, cache and temporary file locations in use.

$ vegas-credentials config list
aws config: /Users/Frank/.aws/config
ykman cli: /usr/local/bin/ykman
cache dir: /Users/Frank/Library/Caches/vegas-credentials
state dir: /Users/Frank/Library/Application Support/vegas-credentials
exec dir: /usr/local/bin

cache clean

Cleans up the cached data.

FlagRequired?Purpose
--credentialDeletes the Temporary Session Credential cache only
--passwordDeletes the Yubikey OATH application password cache only
$ vegas-credentials cache clean --credential