CLI for Coolify API
curl -fsSL https://raw.githubusercontent.com/coollabsio/coolify-cli/main/scripts/install.sh | bash
It will install the CLI in /usr/local/bin/coolify
and the configuration file in ~/.config/coolify/config.json
If you are a windows or mac user, please test the installation script and let us know if it works for you.
- Get a
<token>
from your Coolify dashboard (Cloud or self-hosted) at/security/api-tokens
- Add the token with
coolify instances set token cloud <token>
- Add the token with
coolify instances add -d <name> <fqdn> <token>
Replace
<name>
with the name you want to give to the instance.Replace
<fqdn>
with the fully qualified domain name of your Coolify instance.
Now you can use the CLI with the token you just added.
You can change the default instance with coolify instances set default <name>
coolify update
- Update the CLI to the latest version
coolify instances list
- List all instancescoolify instances add
- Create a new instance configurationcoolify instances remove
- Remove an instance configurationcoolify instances get
- Get an instance configurationcoolify instances set <default>|<token>
- Set an instance as default or set a token for an instancecoolify instances version
- Get the version of the Coolify API for an instance
coolify servers list
- List all serverscoolify servers get
- Get a server--resources
- Get the resources and their status of a server