# Scripted Installation

The recommended way to obtain a copy of Microweber is from GitHub. That, of course, requires you to [have git installed](http://lmgtfy.com/?q=Installing+git+tutorial).

### Get Microweber

One way to clone it is with this command:

```
git clone --depth 1 https://github.com/microweber/microweber.git mw_site
```

That will make a shallow copy of the repository (only the latest version) in a directory caled `mw_site`.

#### With Composer

It's best to have composer installed (for [Linux, OSX](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) and [Windows](https://getcomposer.org/doc/00-intro.md#installation-windows)) for Microweber dependency management.

Then you can obtain the source and resolve dependencies (i.e. skip next step) with one command:

```
composer create-project microweber/microweber mw_site
```

### Get Dependencies

Run `composer install` in the root directory of your installation. If everything goes smooth you are good to go.

### Update Dependencies

In many cases you might want to be able update the code base with a single command. To acheive this just run `composer update` in the root directory of your installation.

### Issues With Install/Update

In the real world things go wrong. If you run into problems while installing or upgrading Microweber you can see the [troubleshoot guide](https://github.com/microweber/microweber-docs/blob/master/integration/troubleshoot.md) or ask online. We're probably on the same sites as you.


---

# 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://help.microweber.com/microweber/integration/scripted_install.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.
