...
...
...
...
Excerpt |
---|
TheĀ |
...
Code Block | ||
---|---|---|
| ||
squirro_widget ^ --token SQUIRRO_TOKEN ^ --cluster https://next.squirro.net ^ list |
Note that the lines have been wrapped with the circumflex (^) at the end of each line. On Mac and Linux you will need to use backslash (\) instead.
Arguments
The following table lists all the arguments.
...
Code Block | ||
---|---|---|
| ||
squirro_widget ^ --token SQUIRRO_TOKEN ^ --cluster https://next.squirro.net ^ list |
Note that the lines have been wrapped with the circumflex (^) at the end of each line. On Mac and Linux you will need to use backslash (\) instead.
Upload
The upload command uploads a custom widget from the local disk and uploads it to the Squirro cluster. This command takes additional options beyond the default arguments.
Argument | Mandatory | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
--config | Yes | A JSON representation of the configuration for the widget. The following keys are possible:
|
An example:
Code Block | ||
---|---|---|
| ||
squirro_widget ^
--cluster https://next.squirro.net ^
--token $TOKEN ^
upload ^
--config '{"directory": "clock", "title": "Clock", "baseWidget": "Base", "author": "Developer Name", "description": "Displays a clock"}' |