[{"data":1,"prerenderedAt":779},["ShallowReactive",2],{"docs-navigation":3,"\u002Fdocs\u002Fsaving\u002Fuse-milkstraw-ai\u002Fcli":107},[4],{"title":5,"section":6,"to":7,"groups":8},"MilkStraw Saving","\u002Fdocs\u002Fsaving","\u002Fdocs\u002Fsaving\u002Fget-started\u002Fintroduction",[9,26,45,68,92],{"title":10,"links":11},"Get started",[12,14,18,22],{"title":13,"to":7},"Overview",{"title":15,"to":16,"icon":17},"How MilkStraw AI works","\u002Fdocs\u002Fsaving\u002Fget-started\u002Fhow-milkstraw-ai-works","IconLightBulb",{"title":19,"to":20,"icon":21},"Quickstart","\u002Fdocs\u002Fsaving\u002Fget-started\u002Fquickstart","IconPlugin1",{"title":23,"to":24,"icon":25},"Activate and track savings","\u002Fdocs\u002Fsaving\u002Fget-started\u002Factivate-savings","IconLightningBolt",{"title":27,"links":28},"Use MilkStraw AI",[29,33,37,41],{"title":30,"to":31,"icon":32},"Projects and findings","\u002Fdocs\u002Fsaving\u002Fuse-milkstraw-ai\u002Fprojects-and-findings","IconSquareChecklist",{"title":34,"to":35,"icon":36},"Spend","\u002Fdocs\u002Fsaving\u002Fuse-milkstraw-ai\u002Fspend","IconLineChart1",{"title":38,"to":39,"icon":40},"Milkman","\u002Fdocs\u002Fsaving\u002Fuse-milkstraw-ai\u002Fmilkman","IconChatBubbles",{"title":42,"to":43,"icon":44},"MilkStraw CLI","\u002Fdocs\u002Fsaving\u002Fuse-milkstraw-ai\u002Fcli","IconConsole",{"title":46,"links":47},"Upgrade guides",[48,52,56,60,64],{"title":49,"to":50,"icon":51},"Guides overview","\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Foverview","IconBook",{"title":53,"to":54,"icon":55},"Amazon EKS","\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Fupgrade-eks-instance-types","IconArrowUpCircle",{"title":57,"to":58,"icon":59},"Amazon EC2 Auto Scaling","\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Fupgrade-asg-instance-types","IconBuildingBlocks",{"title":61,"to":62,"icon":63},"Amazon EBS gp2 to gp3","\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Fupgrade-ebs-gp2-to-gp3","IconServer1",{"title":65,"to":66,"icon":67},"AWS Elastic Beanstalk","\u002Fdocs\u002Fsaving\u002Fupgrade-guides\u002Fupgrade-elastic-beanstalk-instance-types","IconGrowth",{"title":69,"links":70},"Resources",[71,75,79,82,85,89],{"title":72,"to":73,"icon":74},"Supported services","\u002Fdocs\u002Fsaving\u002Fresources\u002Fsupported-services","IconServer",{"title":76,"to":77,"icon":78},"Security","\u002Fdocs\u002Fsaving\u002Fresources\u002Fsecurity","IconShield",{"title":80,"to":81},"Permissions","\u002Fdocs\u002Fsaving\u002Fresources\u002Fpermissions",{"title":83,"to":84},"Roles","\u002Fdocs\u002Fsaving\u002Fresources\u002Froles",{"title":86,"to":87,"icon":88},"Billing","\u002Fdocs\u002Fsaving\u002Fresources\u002Fbilling","IconBanknote2",{"title":90,"to":91},"Cancellation","\u002Fdocs\u002Fsaving\u002Fresources\u002Fcancellation",{"title":93,"links":94},"Get help",[95,99,103],{"title":96,"to":97,"icon":98},"FAQ","\u002Fdocs\u002Fsaving\u002Fget-help\u002Ffaq","IconCircleQuestionmark",{"title":100,"to":101,"icon":102},"Troubleshooting","\u002Fdocs\u002Fsaving\u002Fget-help\u002Ftroubleshooting","IconHammer",{"title":104,"to":105,"icon":106},"Contact & support","\u002Fdocs\u002Fsaving\u002Fget-help\u002Fcontact","IconSupport",{"path":43,"data":108,"meta":111,"nodes":153},{"title":42,"description":109,"navigation":110},"Authentication, onboarding, and manage integration from the terminal.",{"icon":44},{"toc":112,"key":145,"source":146,"stem":147,"extension":148,"kind":149,"type":150,"partial":151,"hash":152},{"title":113,"searchDepth":114,"depth":114,"links":115},"",2,[116,119,122,133,136,139,142],{"id":117,"depth":114,"text":118},"configure-aws-credentials","Configure AWS credentials",{"id":120,"depth":114,"text":121},"quick-start","Quick start",{"id":123,"depth":114,"text":124,"children":125},"commands","Commands",[126,130],{"id":127,"depth":128,"text":129},"commands-inventory",3,"Inventory",{"id":131,"depth":128,"text":132},"commands-commitments","Commitments",{"id":134,"depth":114,"text":135},"global-options","Global options",{"id":137,"depth":114,"text":138},"environment-variables","Environment variables",{"id":140,"depth":114,"text":141},"aws-credential-resolution","AWS credential resolution",{"id":143,"depth":114,"text":144},"authentication","Authentication","docs\u002F2.saving\u002F2.use-milkstraw-ai\u002F4.cli.md","docs","2.saving\u002F2.use-milkstraw-ai\u002F4.cli",".md","document","text\u002Fmarkdown",false,"75fb13cc823ffba2",[154,167,207,210,213,251,254,268,270,277,292,294,374,377,469,471,563,565,648,650,683,685,688,695,733,748,750,757,762],[155,156,157,158,162,163,166],"p",{},"The MilkStraw CLI (",[159,160,161],"code",{},"@milkstraw\u002Fcli",") is a developer-friendly alternative to the web-based ",[164,165,19],"a",{"href":20},". Use it to start or maintain your MilkStraw integration without leaving your terminal.",[168,169,171,177],"callout",{"type":170},"note",[155,172,173],{},[174,175,176],"strong",{},"Prerequisites",[178,179,180,189,197,200],"ul",{},[181,182,183,184,188],"li",{},"An active ",[164,185,187],{"href":186},"https:\u002F\u002Fapp.milkstraw.ai","MilkStraw AI"," account",[181,190,191,192,196],{},"The ",[164,193,195],{"href":194},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Fuserguide\u002Fgetting-started-install.html#getting-started-install-instructions","AWS CLI"," installed and configured",[181,198,199],{},"AWS credentials with access to your AWS Organization management account",[181,201,202,203,206],{},"The Engineer, Admin, or Owner ",[164,204,205],{"href":84},"role"," to run commands for an organization",[208,209,118],"h2",{"id":117},[155,211,212],{},"Set up credentials using one of:",[214,215,218],"pre",{"language":216,"class":217},"bash","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[159,219,221,238,239],{"class":220},"language-bash",[222,223,226,230,234],"span",{"class":224,"style":225},"line","display: inline",[222,227,229],{"style":228},"color:#953800;--shiki-dark:#FFA657","aws",[222,231,233],{"style":232},"color:#0A3069;--shiki-dark:#A5D6FF"," configure",[222,235,237],{"style":236},"color:#6E7781;--shiki-dark:#8B949E","      # Access key + secret","\n",[222,240,241,243,245,248],{"class":224,"style":225},[222,242,229],{"style":228},[222,244,233],{"style":232},[222,246,247],{"style":232}," sso",[222,249,250],{"style":236},"  # SSO login (recommended)",[155,252,253],{},"Verify your credentials are working:",[214,255,256],{"language":216,"class":217},[159,257,258],{"class":220},[222,259,260,262,265],{"class":224,"style":225},[222,261,229],{"style":228},[222,263,264],{"style":232}," sts",[222,266,267],{"style":232}," get-caller-identity",[208,269,121],{"id":120},[155,271,272,273,276],{},"Run ",[159,274,275],{},"setup"," to authenticate, setup and deploy the MilkStraw cross role through CloudFormation stacks into your AWS organization:",[214,278,279],{"language":216,"class":217},[159,280,281],{"class":220},[222,282,283,286,289],{"class":224,"style":225},[222,284,285],{"style":228},"npx",[222,287,288],{"style":232}," @milkstraw\u002Fcli",[222,290,291],{"style":232}," setup",[208,293,124],{"id":123},[295,296,297,310],"table",{},[298,299,300],"thead",{},[301,302,303,307],"tr",{},[304,305,306],"th",{},"Command",[304,308,309],{},"Description",[311,312,313,324,334,344,354,364],"tbody",{},[301,314,315,321],{},[316,317,318],"td",{},[159,319,320],{},"milkstraw login",[316,322,323],{},"Interactive browser login",[301,325,326,331],{},[316,327,328],{},[159,329,330],{},"milkstraw logout",[316,332,333],{},"Revoke token and clear local auth",[301,335,336,341],{},[316,337,338],{},[159,339,340],{},"milkstraw setup",[316,342,343],{},"Complete onboarding and deploy stacks",[301,345,346,351],{},[316,347,348],{},[159,349,350],{},"milkstraw status",[316,352,353],{},"Check deployment status",[301,355,356,361],{},[316,357,358],{},[159,359,360],{},"milkstraw update",[316,362,363],{},"Update deployed stacks to latest templates",[301,365,366,371],{},[316,367,368],{},[159,369,370],{},"milkstraw org list",[316,372,373],{},"List accessible organizations",[375,376,129],"h3",{"id":127},[295,378,379,387],{},[298,380,381],{},[301,382,383,385],{},[304,384,306],{},[304,386,309],{},[311,388,389,399,409,419,429,439,449,459],{},[301,390,391,396],{},[316,392,393],{},[159,394,395],{},"milkstraw inventory ec2 list",[316,397,398],{},"List EC2 on-demand instances",[301,400,401,406],{},[316,402,403],{},[159,404,405],{},"milkstraw inventory rds list",[316,407,408],{},"List RDS on-demand instances",[301,410,411,416],{},[316,412,413],{},[159,414,415],{},"milkstraw inventory elasticache list",[316,417,418],{},"List ElastiCache on-demand clusters",[301,420,421,426],{},[316,422,423],{},[159,424,425],{},"milkstraw inventory opensearch list",[316,427,428],{},"List OpenSearch on-demand clusters",[301,430,431,436],{},[316,432,433],{},[159,434,435],{},"milkstraw inventory opensearch nodes list",[316,437,438],{},"List OpenSearch nodes across all clusters",[301,440,441,446],{},[316,442,443],{},[159,444,445],{},"milkstraw inventory eks list",[316,447,448],{},"List EKS clusters",[301,450,451,456],{},[316,452,453],{},[159,454,455],{},"milkstraw inventory eks nodegroups list",[316,457,458],{},"List EKS node groups across all clusters",[301,460,461,466],{},[316,462,463],{},[159,464,465],{},"milkstraw inventory ebs list",[316,467,468],{},"List EBS volumes",[375,470,132],{"id":131},[295,472,473,481],{},[298,474,475],{},[301,476,477,479],{},[304,478,306],{},[304,480,309],{},[311,482,483,493,503,513,523,533,543,553],{},[301,484,485,490],{},[316,486,487],{},[159,488,489],{},"milkstraw commitments ec2 list",[316,491,492],{},"List EC2 Reserved Instances",[301,494,495,500],{},[316,496,497],{},[159,498,499],{},"milkstraw commitments rds list",[316,501,502],{},"List RDS Reserved Instances",[301,504,505,510],{},[316,506,507],{},[159,508,509],{},"milkstraw commitments elasticache list",[316,511,512],{},"List ElastiCache Reserved Instances",[301,514,515,520],{},[316,516,517],{},[159,518,519],{},"milkstraw commitments opensearch list",[316,521,522],{},"List OpenSearch Reserved Instances",[301,524,525,530],{},[316,526,527],{},[159,528,529],{},"milkstraw commitments savings_plans compute list",[316,531,532],{},"List Compute Savings Plans",[301,534,535,540],{},[316,536,537],{},[159,538,539],{},"milkstraw commitments savings_plans ec2_instance list",[316,541,542],{},"List EC2 Instance Savings Plans",[301,544,545,550],{},[316,546,547],{},[159,548,549],{},"milkstraw commitments savings_plans sage_maker list",[316,551,552],{},"List SageMaker Savings Plans",[301,554,555,560],{},[316,556,557],{},[159,558,559],{},"milkstraw commitments savings_plans database list",[316,561,562],{},"List Database Savings Plans",[208,564,135],{"id":134},[295,566,567,576],{},[298,568,569],{},[301,570,571,574],{},[304,572,573],{},"Option",[304,575,309],{},[311,577,578,588,598,608,618,628,638],{},[301,579,580,585],{},[316,581,582],{},[159,583,584],{},"--org \u003Cid>",[316,586,587],{},"Specify organization ID",[301,589,590,595],{},[316,591,592],{},[159,593,594],{},"--aws-profile \u003Cname>",[316,596,597],{},"Override the AWS named profile",[301,599,600,605],{},[316,601,602],{},[159,603,604],{},"--json",[316,606,607],{},"Output as JSON",[301,609,610,615],{},[316,611,612],{},[159,613,614],{},"--quiet",[316,616,617],{},"Output data only",[301,619,620,625],{},[316,621,622],{},[159,623,624],{},"--markdown",[316,626,627],{},"Output as Markdown",[301,629,630,635],{},[316,631,632],{},[159,633,634],{},"--verbose",[316,636,637],{},"Enable verbose output",[301,639,640,645],{},[316,641,642],{},[159,643,644],{},"--agent",[316,646,647],{},"Agent-safe mode (no prompts, no spinners)",[208,649,138],{"id":137},[295,651,652,661],{},[298,653,654],{},[301,655,656,659],{},[304,657,658],{},"Variable",[304,660,309],{},[311,662,663,673],{},[301,664,665,670],{},[316,666,667],{},[159,668,669],{},"MILKSTRAW_ORG",[316,671,672],{},"Default organization ID",[301,674,675,680],{},[316,676,677],{},[159,678,679],{},"MILKSTRAW_AWS_PROFILE",[316,681,682],{},"Default AWS profile name",[208,684,141],{"id":140},[155,686,687],{},"The CLI uses the AWS SDK for JavaScript v3 credential provider chain.",[155,689,690,691,694],{},"Without ",[159,692,693],{},"--aws-profile",", credentials are resolved in this order:",[696,697,698,711,717,724,730],"ol",{},[181,699,700,701,704,705,704,708],{},"Environment variables: ",[159,702,703],{},"AWS_ACCESS_KEY_ID",", ",[159,706,707],{},"AWS_SECRET_ACCESS_KEY",[159,709,710],{},"AWS_SESSION_TOKEN",[181,712,713,714],{},"SSO token cache at ",[159,715,716],{},"~\u002F.aws\u002Fsso\u002Fcache",[181,718,719,720,723],{},"Shared credentials file at ",[159,721,722],{},"~\u002F.aws\u002Fcredentials"," (default profile)",[181,725,726,727],{},"Shared config file at ",[159,728,729],{},"~\u002F.aws\u002Fconfig",[181,731,732],{},"ECS container or EC2 instance metadata",[155,734,735,736,738,739,741,742,744,745,747],{},"With ",[159,737,594],{}," (or ",[159,740,679],{},"), the SDK skips environment variables and uses the named profile from ",[159,743,729],{}," and ",[159,746,722],{},".",[208,749,144],{"id":143},[155,751,752,753,756],{},"Tokens are stored at ",[159,754,755],{},"~\u002F.config\u002Fmilkstraw-cli\u002Ftoken",". Login uses the OAuth device code flow via your browser.",[155,758,272,759,761],{},[159,760,330],{}," at any time to revoke the token and clear local auth.",[155,763,764,765,768,769,771,772,775,776,747],{},"Tokens expire after 90 days. You can also revoke a token in the app: open ",[174,766,767],{},"Settings"," > ",[174,770,76],{},", find the token under ",[174,773,774],{},"Access tokens",", and click ",[174,777,778],{},"Revoke token",1792482912113]