CLI
Official Misar.Dev command-line tool — manage projects and usage from the terminal via api.misar.io/dev.
The official Misar.Dev command-line tool. It wraps the TypeScript SDK (@misar/dev) to manage projects and inspect API usage from the terminal.
Installation
npm install -g @misar/dev-cliThis installs the misardev binary. The package is @misar/dev-cli.
Authentication
The CLI reads the API key from the MISARDEV_API_KEY environment variable, or from the global --api-key flag:
export MISARDEV_API_KEY=your-api-key
misardev --api-key your-api-key projects listIf no key is found, the command exits with an error. All requests go to https://api.misar.io/dev with Authorization: Bearer <key>.
Commands
misardev projects list
List all projects.
misardev projects list
misardev projects list --json| Flag | Description |
|---|---|
--json | Output raw JSON instead of the formatted summary |
misardev projects create
Create a new project.
misardev projects create --name "my-app"
misardev projects create --name "my-app" --json| Flag | Description |
|---|---|
--name <name> | Project name (required) |
--json | Output raw JSON |
misardev usage
Show API usage statistics (requests, tokens, cost).
misardev usage
misardev usage --json| Flag | Description |
|---|---|
--json | Output raw JSON |
Global flags
| Flag | Description |
|---|---|
--api-key <key> | Misar.Dev API key (falls back to MISARDEV_API_KEY) |
--version | Print the CLI version |
--help | Show help for any command |
This v1.0.0 CLI implements the projects list, projects create, and usage commands. For the full API surface, use the TypeScript SDK.