Skip to content

Extract templates to stdout #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update readme
  • Loading branch information
polldo committed Dec 20, 2021
commit ad187dd8b1fad757085df5ccf967ba20785f2f2e
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ Delete a thing with the following command:

`$ arduino-cloud-cli thing delete --id <thingID>`

Extract a template from an existing thing. The template can be saved in two formats: json or yaml. The default format is yaml:
Extract a template from an existing thing. The template is printed to stdout and its format depends on the global `--format` flag:

`$ arduino-cloud-cli thing extract --id <thingID> --outfile <templateFile> --format <yaml|json>`
`$ arduino-cloud-cli thing extract --id <thingID> --format <json|yaml>`

Bind a thing to an existing device:

Expand Down Expand Up @@ -198,9 +198,9 @@ Delete a dashboard with the following command:

`$ arduino-cloud-cli dashboard delete --id <dashboardID>`

Extract a template from an existing dashboard. The template can be saved in two formats: json or yaml. The default format is yaml:
Extract a template from an existing dashboard. The template is printed to stdout and its format depends on the global `--format` flag:

`$ arduino-cloud-cli dashboard extract --id <dashboardID> --outfile <templateFile> --format <yaml|json>`
`$ arduino-cloud-cli dashboard extract --id <dashboardID> --format <json|yaml>`

Create a dashboard: dashboards can be created only starting from a template. Supported dashboard template formats are JSON and YAML. The name parameter is optional. If it is provided then it overrides the name retrieved from the template. The `override` flag can be used to override the template `thing_id` placeholder with the actual ID of the thing to be used.

Expand Down