It would be great if Here Documents were supported by particle serial wifi --file. That way I would have a more reliable method for setting up devices from within scripts.
With Here Document support I would be able to do something like:
This is a JSON. It's just through a heredoc instead of an actual JSON file. The advantage of using this is that scripts wouldn't have to create a file with credentials inside and would instead just send it through with a heredoc.