@milkstraw/cli) is a developer-friendly alternative to the web-based Quickstart. Use it to start or maintain your MilkStraw integration without leaving your terminal.
Prerequisites
- An active MilkStraw AI account
- The AWS CLI installed and configured
- AWS credentials with access to your AWS Organization management account
Configure AWS credentials
Set up credentials using one of:Quick start
Runsetup to authenticate, setup and deploy the MilkStraw cross role through CloudFormation stacks into your AWS organization:
Commands
Global options
Environment variables
AWS credential resolution
The CLI uses the AWS SDK for JavaScript v3 credential provider chain. Without--aws-profile, credentials are resolved in this order:
- Environment variables:
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKEN - SSO token cache at
~/.aws/sso/cache - Shared credentials file at
~/.aws/credentials(default profile) - Shared config file at
~/.aws/config - ECS container or EC2 instance metadata
--aws-profile <name> (or MILKSTRAW_AWS_PROFILE), the SDK skips environment variables and uses the named profile from ~/.aws/config and ~/.aws/credentials.
Authentication
Tokens are stored at~/.config/milkstraw-cli/token. Login uses the OAuth device code flow via your browser.
Run milkstraw logout at any time to revoke the token and clear local auth.