> For the complete documentation index, see [llms.txt](https://docs.scaleflex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scaleflex.com/portals/publishing-a-portal.md).

# Publishing a Portal

## Publishing a Portal

Publishing and unpublishing a Portal can be done within the Portal and through the main Portal page.&#x20;

### Within the Portal

When creating and modifying a portal, you can publish it directly. \
In the top right corner, you will find a Preview page button that allows you to preview and publish the Portal.&#x20;

<figure><img src="/files/nT0F3ZrDxjMrsZxBwJOK" alt=""><figcaption></figcaption></figure>

### Through the main Portal page

A portal can be published on the main portal page. \
By hovering over a Portal, you will see the option to Publish a Portal.&#x20;

<figure><img src="/files/lf860orYZ1WrE2tAGEvu" alt="" width="375"><figcaption></figcaption></figure>

## Portal Status

A Portal Status helps you see which are currently in drafts, published, or archived.

The status of a Portal can be viewed at the top right corner of the Portal's main page.&#x20;

<figure><img src="/files/jPKUAeXSfGZE7hZKHWzb" alt="" width="375"><figcaption></figcaption></figure>

A portal's status always begins as a draft and changes once published or archived.


---

# 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:

```
GET https://docs.scaleflex.com/portals/publishing-a-portal.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.
