Install the cli

  • Install dotnet comand line tool

  • Install the curiosity-cli as a dotnet tool by running the following command:

dotnet tool install -g curiosity.cli
  • Test if the cli is correctly installed by running the curiosity command.
    You should then get the following output:

Required command was not provided. 

curiosity-cli [options] [command]

--version Show version information
-?, -h, --help Show help and usage information

upload-front-end Update the front-end on the server with the content of the folder passed as input
test Test the connection to the server
store-token Store the token for a given server locally. You can re-use the stored token by passing --token auto on other commands
serve Serve locally a front-end project built with the Mosaik.FrontEnd nuget package
monitor Monitor and sync a folder to the server
upload-folder Upload a folder to the server
feed Monitor and sync an RSS feed

Generate a Library Token

The CLI needs to be authenticated in order to upload files. See here how to generate a Library token.

(optional) Store the token locally

Instead of having to provide the token each time the cli is used, there is the option to store the token locally.

Run the following command to do so:

curiosity-cli store-token -s http://<SERVER_URL>/api/ -t <TOKEN>

Did this answer your question?