0.6.2 • Published 11 months ago
@motion-12/cli v0.6.2
Motion 12 CLI
This is a command line interface for Motion 12 (https://motion12.digital).
Features
- Creates a Certificate Authority (CA) and a server certificate for *.m12.app.
- Trusts the CA on the host machine.
- Creates a reverse proxy (traefik container) for use with docker containers.
- Creates docker volumes for use with devcontainers.
- Plugin system for adding additional functionality.
- Scaffolding system for creating new projects.
Plugins
- NodeJS plugin for creating a NodeJS devcontainer.
- PHP plugin for creating a PHP devcontainer.
Installation
Install the CLI
pnpm add -g @motion-12/cli
Usage
Install
m12 install
Uninstall
m12 uninstall
Start
m12 start
Stop
m12 stop
Restart
m12 restart
Help
m12 --help # or m12 -h
Building
pnpm install
pnpm nx build
Development
Running
node dist/motion-12-cli/main.js
Additional Information
CA
Windows (WSL2)
If you are using WSL2 and you need to trust the CA on the host (windows) machine. This is done by copying the CA certificate to the Windows certificate store.
certutil -addstore -f "Root" ~/.m12/certs/ca.crt