From 934e67d146bc876c43a0328a3902a70d0920dacf Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Wed, 11 May 2016 12:57:53 +0200 Subject: [PATCH] Document JSON syntax --- packages/xo-cli/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/xo-cli/README.md b/packages/xo-cli/README.md index 49fcd65e4..240640037 100644 --- a/packages/xo-cli/README.md +++ b/packages/xo-cli/README.md @@ -84,6 +84,14 @@ E.g., adding a new server: The return value is the identifier of this new server in XO. +Parameters (except `true` and `false` which are correctly parsed as +booleans) are assumed to be strings, for other types, you may use JSON +encoding by prefixing with `json:`: + +``` +> xo-cli foo.bar baz='json:[1, 2, 3]' +``` + ##### VM export ```