A command line interface for Candy.
- Run
npm i candy-cli -g
(oryarn global add candy-cli
). - Set optional environment values.
- Done!
CANDY_URL
(optional) - Custom URL of Candy. (ex.ws://192.168.2.1:4540
) (default:ws://localhost:4540
)
reference
- Displays the specified reference. (ex.candy reference /helloWorld
)list
- Lists and seperates catalogs and references in the specified catalog. (ex.candy list /
)create
- Creates a reference or catalog. (ex.candy create reference /helloWorld
,candy create reference /helloWorld "# Hi!"
,candy create catalog /helloCatalog
)edit
- Edits and existing reference. (ex.candy edit /helloWorld "# Hi!\n\nHello!\n"
)