Created
March 26, 2023 06:29
-
-
Save DiegoFleitas/9b4cfbebe68674b19592ab8a6778a099 to your computer and use it in GitHub Desktop.
scale down all fly.io apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /f "tokens=1,3" %%a in ('flyctl apps list ^| findstr /C:"running"') do ( | |
if "%%b"=="running" ( | |
echo Scaling down %%a | |
flyctl scale count 0 -a %%a | |
) | |
) | |
pause |
(peak end of the month scripting)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
scale up