# Post install setup

After the self-host Somewear service is installed and running, there are some additional setup steps to take. The Somewear CLI tool will be used to perform the following.

* Create an organization.
* Import devices to your organization.

### Install the Somewear CLI tool. &#x20;

The Somewear CLI will be installed on the Somewear service server.  Log into the server and then switch to the Pilot user.

```
sudo su - pilot
```

Use the Pilot CLI to install the Somewear CLI.

```
pilot install-somewear-cli
```

Create the Somewear CLI properties configuration file required by running `somewear init`.  You will first be prompted if you are running the Somewear CLI client directly on one of your Somewear Core nodes, or if you are running it from a remote host.  You will be prompted fill in setting required to connect to your Somewear Core instance.  Below is an example of running through the setup wizard.

```
$ somewear init
Are you running the Somewear CLI directly on the Somewear Core host or a remote host?
Enter 'local' or 'remote' [local]: local
Creating new Somewear CLI configuration file at ~/.config/somewear/somewear.properties...
Enter a value for each property
username: somewear-admin

Configuration file created.
```

### Create an organization

```
somewear organization create --name "<Your organization name>" --owner-username "<You admin username>"
```

### Import a device to the organization

```
somewear device import -d '<Serial>,<IMEI>' --emss --org-name "Your organization 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.somewear.app/self-hosting-docs/post-install-setup.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.
