Koyeb CLI 3.0: Better flows, improved troubleshooting, and reworked foundations
5 minWe are happy to announce the release of the Koyeb CLI 3.0! This release brings three crucial improvements: Smoother flow for creating and updating services, reworked error messages to ease troubleshooting, and a new foundation to continue building out our CLI.
If you want to get started using the Koyeb CLI to deploy your services and applications worldwide directly from your terminal, read the Koyeb CLI documentation and CLI reference.
- Smoother service creation and updates
- Easier troubleshooting with reworked error messages
- A stronger foundation for future improvements
Smoother service creation and updates
In the past, using the CLI to create or update a service was not the straightforward process it should be. For example, some parameters were silently ignored and it was not easy to understand how to use the CLI
for advanced usages without reading the source code. Now, using the CLI is much more intuitive and reading the --help
output provides you with clear guidance to create or edit a service.
For example, here is the new --help
output for configuring custom domains on Koyeb using the CLI:
The process to update a service has also been greatly improved. The command koyeb service update myapp/myservice --env NEWENV=VALUE
used to erase all of the service's
environment variables, and set only one variable NEWENV
. With the current release, this command now does what you probably expect: create or update the environment variable NEWENV
, and leave
the other variables untouched.
Easier troubleshooting with reworked error messages
When deploying your services and applications, you may face errors. Naturally, you will want to collect as much information about the error as possible to troubleshoot the issue quickly.
We reworked the error messages in the Koyeb CLI to add more context and ultimately make it easier for you to troubleshoot issues. Previously, the error messages in our CLI were cryptic and hard to understand. We now provide more information about why the error happened: Was there an API error or an invalid token for instance?
When we can, we also provide suggestions on how to solve the issue: Perhaps you need to wait a few minutes and try the request again, or maybe you need to fix the parameters or provide a valid authentication token.
Example error messages
Here is the error message you would face if your authentication token were invalid:
In this case, we see that the authentication token is invalid and we can solve the issue by trying to log in again or providing a valid token.
Imagine you are creating a new service called myservice
to deploy to an application called staging
running on Koyeb. If you have not already created an application called staging
, you will see the following error message:
Here we see that the application staging
cannot be found, and that we can solve the issue by providing an application name that exists.
A stronger foundation for future improvements
When we first set out to build our CLI, we moved quickly and it eventually became a challenge to maintain. To remedy this bumpy start, we spent a lot of time refactoring our CLI to ensure the smooth integration of future updates. So heads up: you should expect to see more exciting features pretty soon!
To get started using the Koyeb CLI to deploy your services and applications worldwide directly from your terminal, make sure to update or install the Koyeb CLI and read the CLI reference.
By the way, you can easily contribute to the CLI and we provide free credits for contributions! Check the public list of issues: https://github.com/koyeb/koyeb-cli/issues.
If you want to talk more about the Koyeb CLI or this article, you can reach out to us on Slack, over on the Koyeb Community and on Twitter @brmzkw and @AlisdairBroshar.