How do I resize with code

I am wondering if there is a way to put some sort of command in my server to make it decrease and increase based on the time of the day (or even based on a script that runs).



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Just what I was looking for!!!

Thanks!! :D

You can, however this would not be recommended unless you’ve got a multi-server architecture that can adapt. The resize options currently require a reboot.

A few ways to interact with our services would be:

The API which can be accessed directly via curl or via any of a number of pre-built libraries.

Also, yesterday we announced doctl, our command line client for Linux, Windows and Mac. If you specify an API key this can be run from your scripts.