@@ -53,6 +53,34 @@ The instance name will be set as default and used in all CLI commands.
5353If you want to override this setting for a specific command, use --instance-name eg::
5454
5555 syncano sync --instance-name new-instance-1234 pull
56+
57+ If you need to change default instance name, used for all future commands, use::
58+
59+ syncano default name_of_new_default_instance
60+
61+
62+ If you do not have an Syncano account use `syncano init ` command::
63+
64+ syncano init
65+
66+ And follow the steps. CLI will ask you about `email ` and `password `, it will also create an Instance for you.
67+ After `syncano init ` you can start with getting the list of your Instances::
68+
69+ syncano instances list
70+
71+
72+ To obtain a help, type::
73+
74+ syncano --help
75+
76+ To display a help for specific command, type::
77+
78+ syncano instances --help
79+
80+ And::
81+
82+ syncano instances list --help
83+
5684
5785Documentation
5886=============
@@ -107,8 +135,8 @@ Will display custom sockets from `my_instance_name` - because it is set to be a
107135
108136After a registration - there's no default instance set. So it's desired to create one and set it as default::
109137
110- syncano instance create my_new_instance
111- syncano instance default my_new_instance
138+ syncano instances create my_new_instance
139+ syncano instances default my_new_instance
112140
113141It's worth to note that `instance_name ` must be unique - but you will get appropriate message if you encounter such case.
114142
@@ -259,19 +287,19 @@ Syncano Hosting
259287Syncano Hosting is a simple way to host your static files on Syncano servers.
260288The CLI supports it in the following way:
261289
262- This command will list files for currently hosted website ::
290+ This command will list currently defined hostings in the instance ::
263291
264292 syncano hosting list
265293
294+ This command will list files for currently hosted website (for `default ` hosting)::
295+
296+ syncano hosting list files
297+
266298This command will publish all files inside *<base_dir> * to the default Syncano Hosting instance.
267299When publishing the whole directory, the structure will be mapped on Syncano.::
268300
269301 syncano hosting publish <base_dir>
270302
271- This command will unpublish currently published hosting::
272-
273- syncano hosting unpublish
274-
275303
276304This command will permamently delete the hosting::
277305
@@ -285,6 +313,14 @@ This command will update single file::
285313
286314 syncano hosting update hosting/file/path local/file/path
287315
316+ For each of the above command you can specify the domain to change just after hosting command, example::
317+
318+ syncano hosting --domain staging publish <base_dir>
319+
320+ Will create a new hosting which will be available under: `<instance_name>--staging.syncano.site `
321+ If this hosting is also a default one, it will be available under: `<instance_name>.syncano.site `.
322+
323+
288324Custom Sockets
289325==============
290326
@@ -311,6 +347,10 @@ Display chosen Custom Socket details::
311347
312348 syncano sockets details socket_name
313349
350+ Display Custom Socket config (with name: `socket_name `)::
351+
352+ syncano sockets config socket_name
353+
314354Delete a Custom Socket::
315355
316356 syncano sockets delete socket_name
@@ -323,14 +363,15 @@ Create a template from an existing Custom Socket::
323363
324364 syncano sockets template /path/to/out --socket socket_name
325365
326- Run endpoint defined in Custom Socket::s
366+ Run endpoint defined in Custom Socket::
327367
328368 syncano sockets run socket_name/endpoint_name
329369
330370Run endpoint providing POST data::
331371
332372 syncano sockets run socket_name/my_endpoint_12 POST -d one=1
333373
374+
334375In all of the above cases you can override the Syncano instance being used::
335376
336377 --instance-name my_instance_name
0 commit comments