CLI Reference
The ReArch CLI is the primary tool for creating, managing, and deploying ReArch projects.
Installation
Section titled “Installation”bun install -g @rearch/clirearch <command> [options]Global Options
Section titled “Global Options”| Flag | Description |
|---|---|
--help, -h | Show help for a command |
--version, -v | Show CLI version |
--verbose | Enable verbose output |
--quiet, -q | Suppress non-essential output |
--config <path> | Path to config file (default: rearch.config.mjs) |
Commands
Section titled “Commands”rearch init
Section titled “rearch init”Create a new ReArch project.
rearch init <project-name> [options]| Option | Default | Description |
|---|---|---|
--template <name> | default | Project template: default, minimal, full |
--package-manager <pm> | bun | Package manager: bun, npm, pnpm |
--git | true | Initialize a git repository |
--install | true | Install dependencies after creation |
Example:
rearch init my-project --template minimal --package-manager bunrearch dev
Section titled “rearch dev”Start the development server.
rearch dev [options]| Option | Default | Description |
|---|---|---|
--port <number> | 3000 | Port to run on |
--host <address> | localhost | Host to bind to |
--open | false | Open browser on start |
rearch build
Section titled “rearch build”Build the project for production.
rearch build [options]| Option | Default | Description |
|---|---|---|
--outdir <path> | dist/ | Output directory |
--minify | true | Minify output |
--sourcemap | false | Generate source maps |
rearch deploy
Section titled “rearch deploy”Deploy the project to ReArch Cloud.
rearch deploy [options]| Option | Default | Description |
|---|---|---|
--env <name> | production | Target environment |
--dry-run | false | Preview deployment without executing |
--force | false | Skip confirmation prompt |
rearch agent
Section titled “rearch agent”Manage agents in the current project.
rearch agent <subcommand>| Subcommand | Description |
|---|---|
rearch agent list | List all agents |
rearch agent create <name> | Create a new agent |
rearch agent run <name> | Run an agent |
rearch agent logs <name> | View agent logs |
rearch agent delete <name> | Delete an agent |
rearch pipeline
Section titled “rearch pipeline”Manage pipelines.
rearch pipeline <subcommand>| Subcommand | Description |
|---|---|
rearch pipeline list | List all pipelines |
rearch pipeline run <name> | Execute a pipeline |
rearch pipeline status <name> | Check pipeline status |
rearch setup
Section titled “rearch setup”Run the interactive setup wizard.
rearch setuprearch login
Section titled “rearch login”Authenticate with your ReArch account.
rearch loginrearch logout
Section titled “rearch logout”Log out of your ReArch account.
rearch logout