> For the complete documentation index, see [llms.txt](https://docs.maker.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maker.co/maker-greatstore/developer-reference/cli.md).

# CLI

Manage your store and build custom apps from the terminal with the gs command.

[`@greatstore/cli`](https://www.npmjs.com/package/@greatstore/cli) gives you a `gs` command to run your store from the terminal, handy for scripting, CI, and working alongside an AI coding agent.

With it you can:

* **Configure your store**: brand, assistant, allowed origins, and logos, the same settings as the **Configure** panel.
* **Manage connectors**: add, toggle, and health-check your MCP connectors.
* **Build and ship custom apps**: scaffold an app project, build it, push a draft, and publish it live for shoppers.
* **Set up your AI coding agent**: `gs skill` walks Claude Code and similar tools through installing the GreatStore skill.

```sh
npm install -g @greatstore/cli
gs login
```

`gs login` opens your browser to sign in, pick a store, and authorize that computer; everything else runs against it. You'll be asked to confirm every time; the CLI never gets access to a store without you saying yes to it in the browser.

Access lasts 48 hours, and you can end it sooner from **Team → CLI access** in your dashboard, which lists who has access and when they last used it: team admins see everyone's, and everyone else sees their own. Ending access there stops that computer's next command.

For each store, you're signed in on one computer at a time: signing in to that store again, from a second machine, say, replaces your previous access there, and the first machine has to sign in again. Access to your other stores is unaffected.

{% hint style="info" %}
The full command reference ships with the package. [**View `@greatstore/cli` on npm →**](https://www.npmjs.com/package/@greatstore/cli)
{% endhint %}

## What's next?

{% content-ref url="/pages/2VJ1siJEO6FN2JKqDyNz" %}
[React SDK](/maker-greatstore/developer-reference/react.md)
{% endcontent-ref %}

{% content-ref url="/pages/RTlzI1gcpj96yLG3FUes" %}
[MCP access for agents](/maker-greatstore/developer-reference/mcp-access.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.maker.co/maker-greatstore/developer-reference/cli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
