# cscli lapi register

## cscli lapi register[​](#cscli-lapi-register "Direct link to cscli lapi register")

Register a machine to Local API (LAPI)

### Synopsis[​](#synopsis "Direct link to Synopsis")

Register your machine to the Local API (LAPI). Keep in mind the machine needs to be validated by an administrator on LAPI side to be effective.

TEXTCOPY

```
cscli lapi register [flags]
```

### Options[​](#options "Direct link to Options")

TEXTCOPY

```
  -f, --file string      output file destination
  -h, --help             help for register
      --machine string   Name of the machine to register with
      --token string     Auto registration token to use
  -u, --url string       URL of the API (ie. http://127.0.0.1)
```

### Options inherited from parent commands[​](#options-inherited-from-parent-commands "Direct link to Options inherited from parent commands")

TEXTCOPY

```
      --color string    Output color: yes, no, auto (default "auto")
  -c, --config string   path to crowdsec config file (default "/etc/crowdsec/config.yaml")
      --debug           Set logging to debug
      --error           Set logging to error
      --info            Set logging to info
  -o, --output string   Output format: human, json, raw
      --trace           Set logging to trace
      --warning         Set logging to warning
```

### SEE ALSO[​](#see-also "Direct link to SEE ALSO")

* [cscli lapi](https://docs.crowdsec.net/docs/next/cscli/cscli_lapi.md) - Manage interaction with Local API (LAPI)
