# Ordinary CLI

[![crates.io](https://img.shields.io/crates/v/ordinary.svg)](https://crates.io/crates/ordinary)
[![docs.rs](https://docs.rs/ordinary/badge.svg)](https://docs.rs/ordinary/)
[![dependency status](https://deps.rs/crate/ordinary/0.6.0-pre.0/status.svg)](https://deps.rs/crate/ordinary)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)

Command line tools for Ordinary.

The Ordinary CLI is built with [Clap](https://docs.rs/clap/latest/clap/).

## Installation

```sh
## wasm components
rustup target add wasm32-wasip1 wasm32-unknown-unknown

## ordinary executables
cargo install ordinary
cargo install ordinaryd
```

Optionally [install](https://codeberg.org/ordinarylabs/Ordinary/src/branch/main/scripts/install/binaryen) Binaryen
`wasm-opt`.

## Quick Start

Create and build new project `example.com`.

```
ordinary new . example.com && ordinary build example.com
```

Run new project at <http://localhost:8080>.

```
ordinaryd --project-dir example.com --port 8080 --insecure --stdio-logs --log-headers --log-level debug
```

## CLI Documentation

See: [DOCS.md](https://codeberg.org/ordinarylabs/Ordinary/src/branch/main/core/executables/cli/DOCS.md).
