# Command Line

The [Angel CLI](https://github.com/angel-dart/cli) is a friendly command line tool enabling quick scaffolding of common project constructs.

To install it:

```bash
$ pub global activate angel_cli
```

You'll then be able to run:

```bash
$ angel --help
```

The above will print documentation about each available command.

## Scaffolding

### New Projects

Bootstrapping a new Angel project, complete, CORS, hot-reloading, and more, is as easy as running:

```bash
$ angel init <dirname>
```

You'll be ready to go after this!

### Project Files

Use `angel make` to scaffold common Dart files:

* `angel make service` - Generate an in-memory, MongoDB, RethinkDB, file-based, or other [service](https://github.com/angel-dart/gitbook/tree/a86bb3ed5ef10659302349798bc64097e527b725/services/service-basics.md).
* `angel make test`
* `angel make plugin`
* `angel make model`
* `angel make model --orm`
* `angel make controller`

### Deployment helpers

* `sudo -E angel deploy nginx -o /etc/sites-available/my_app.conf`
* `sudo -E angel deploy systemd -o /etc/systemd/system/my_app.service`

## Renaming the Project

To rename your project, and fix all references, run:

```bash
$ angel rename <new-name>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.angel-dart.dev/2.x/guides/cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
