Skip to content
camerauiPublic

About

The camera.ui CLI: create, build and publish camera.ui plugins.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

@camera.ui/cli

npm License

The camera.ui CLI: create, build and publish camera.ui plugins.

Install

npm install -g @camera.ui/cli

A project made with cui create has the CLI as a dev dependency, its npm scripts call it.

Commands

Command What it does
cui create <name> Creates a plugin project for TypeScript, Python or Go
cui bundle Builds the plugin into bundle/
cui login [address] Saves the server and an API token for cui deploy
cui deploy Builds the plugin and installs it on that server
cui deploy --watch Installs again on every saved change and shows the plugin log
cui publish Publishes the bundle to npm

Try a plugin on your server

cui login 192.168.1.10
cui deploy --watch

cui login takes the address of your camera.ui (without a scheme it uses https:// and port 3443) and an API token of an admin, created under Settings → Account → API tokens. A server with a certificate your computer does not trust is accepted once you confirm it. The login is saved in ~/.config/camera.ui-cli/login.json.

cui deploy builds the plugin for the server's platform, uploads it and restarts it. Go plugins are compiled for that platform, so a Mac can deploy to a Linux server. --server <address> picks another saved server. CAMERAUI_SERVER and CAMERAUI_TOKEN take the place of a saved login, for scripts.

camera.ui marks a plugin installed this way as Local and looks for no updates for it.


Part of camera.ui, the local-first camera and NVR platform.

About

The camera.ui CLI: create, build and publish camera.ui plugins.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Contributors

Languages