-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: Clever Tools 3.4.0 is available | ||
date: 2024-02-16 | ||
tags: | ||
- clever-tools | ||
- cli | ||
authors: | ||
- name: David Legrand | ||
link: https://github.com/davlgd | ||
image: https://github.com/davlgd.png?size=40 | ||
- name: Hubert Sablonière | ||
link: https://github.com/hsablonniere | ||
image: https://github.com/hsablonniere.png?size=40 | ||
description: JSON everywhere, create more easily! | ||
excludeSearch: true | ||
--- | ||
|
||
This week, we published two Clever Tools updates in a row. 3.3.0 was about adding [our new Gravelines HDS region](/changelog/2024-02-12-new-grahds-region/) support and fixing a bug in our add-ons logs feature. 3.4.0 brings `json` and `json-stream` formats for applications logs. The latter uses the Newline delimited JSON (NDJSON) specification (`jq` compatible). You can learn more about it [here](https://github.com/ndjson/ndjson-spec/blob/master/README.md). | ||
Check notice on line 18 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L18
Raw output
Check warning on line 18 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L18
Raw output
Check warning on line 18 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L18
Raw output
Check failure on line 18 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L18
Raw output
Check notice on line 18 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L18
Raw output
Check warning on line 18 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L18
Raw output
|
||
|
||
But it's the `create` and `deploy` commands which are the most improved by this release. First, you'll now get the application or add-on name confirmed after creation. You can also get a JSON response adding `--format json` or `-F json` to the `create` or `create-addon` command. Second, the current folder name is now used as default application name if none is provided. | ||
Check warning on line 20 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L20
Raw output
Check warning on line 20 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L20
Raw output
Check notice on line 20 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L20
Raw output
|
||
|
||
To create a Node.js application once logged in, you can now just: | ||
Check warning on line 22 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L22
Raw output
|
||
|
||
``` | ||
clever create -t node | ||
``` | ||
|
||
If you need a JSON response for a Go application deployed on Gravelines HDS: | ||
Check warning on line 28 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L28
Raw output
Check failure on line 28 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L28
Raw output
Check notice on line 28 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L28
Raw output
|
||
|
||
``` | ||
clever create --type go --region grahds --format json | ||
``` | ||
|
||
Last but not least: you can deploy a specific tag from your local git repository adding the `--tag` or `-t` option: | ||
|
||
``` | ||
clever deploy --tag v0.4.2 | ||
``` | ||
|
||
To upgrade Clever Tools, [use your favorite package manager](https://github.com/CleverCloud/clever-tools/blob/master/docs/setup-systems.md#how-to-install-clever-tools). For example with npm: | ||
Check failure on line 40 in content/changelog/2024-02-16-clever-tools-3.4.0.md GitHub Actions / vale[vale] content/changelog/2024-02-16-clever-tools-3.4.0.md#L40
Raw output
|
||
|
||
``` | ||
npm update -g clever-tools | ||
clever version | ||
``` |