> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/es/get-started.md).

# Primeros pasos

Comience con PowerShell Universal instalando el servidor, iniciando sesión y creando su primer endpoint de API, script y app.

## Instalar PowerShell Universal

Deberá instalar el servidor de PowerShell Universal. [Hay muchas formas de hacerlo,](/powershell-universal/es/getting-started.md) pero puede usar la línea de comandos siguiente para empezar rápidamente:

{% tabs %}
{% tab title="Windows" %}
Puede instalar PowerShell Universal como servicio. Asegúrese de que PowerShell se ejecute como administrador; de lo contrario, el servicio no se instalará correctamente.

{% code collapsedlinecount="10" %}

```powershell
Install-Module Devolutions.PowerShellUniversal
Install-PSUServer
```

{% endcode %}
{% endtab %}

{% tab title="Linux" %}
Puede instalar PowerShell Universal mediante el siguiente script de shell:

{% code collapsedlinecount="10" %}

```powershell
Install-Module Devolutions.PowerShellUniversal
Install-PSUServer
```

{% endcode %}
{% endtab %}

{% tab title="Mac OS X" %}
Puede instalar PowerShell Universal mediante el módulo de PowerShell Universal:

{% code collapsedlinecount="10" %}

```powershell
Install-Module Devolutions.PowerShellUniversal
Install-PSUServer -AddToPath
Start-PSUServer -Port 5000
```

{% endcode %}
{% endtab %}

{% tab title="Raspberry PI OS" %}
{% code collapsedlinecount="10" %}

```
wget https://cdn.devolutions.net/download/Devolutions.PowerShellUniversal.linux-arm.2026.3.0.0.zip
unzip Devolutions.PowerShellUniversal.linux-arm.2026.3.0.0.zip -d ./PSU
chmod +x ./PSU/Universal.Server
./PSU/Universal.Server

```

{% endcode %}
{% endtab %}
{% endtabs %}

## Abrir PowerShell Universal

De forma predeterminada, PowerShell Universal se ejecuta en el puerto 5000 de localhost. Abra un navegador web y navegue a `http://localhost:5000`.

### Iniciar sesión con una Devolutions Account

La primera vez que navegue a PowerShell Universal, puede iniciar sesión con una [Devolutions account](https://docs.devolutions.net/portal/es/profile/create-your-devolutions-account) para recibir una licencia de desarrollador gratuita. Esta licencia habilitará todas las funciones y está destinada a flujos de trabajo que no sean de producción.

Este flujo de licencia de desarrollador está destinado al desarrollo local y requiere acceso local al host de PowerShell Universal. Si los usuarios acceden a PSU únicamente desde navegadores remotos a través de Docker, IIS o un proxy inverso, deben utilizar en su lugar una de las rutas de licencia estándar.

### Asistente de primera ejecución

Opcionalmente, puede optar por ejecutar la configuración del asistente de primera ejecución en lugar de iniciar sesión con una Devolutions account y proporcionar una clave de licencia.

## Crear una API

Las APIs permiten llamar a scripts de PowerShell a través de HTTP. Vaya a Build > APIs > Endpoints y seleccione Create Endpoint. Especifique una URL, desactive la autenticación y seleccione Save.

Seleccione el nuevo endpoint para abrir su editor y, a continuación, introduzca el siguiente comando:

{% code collapsedlinecount="10" %}

```powershell
Get-ComputerInfo
```

{% endcode %}

Guarde el script y luego haga clic en el botón Execute para probarlo.

También puede ejecutar la API mediante `Invoke-RestMethod`.

{% code collapsedlinecount="10" %}

```powershell
PS C:\Users\adamr> Invoke-RestMethod http://localhost:5000/hello-world

WindowsBuildLabEx                                       : 22000.1.amd64fre.co_release.210604-1628
WindowsCurrentVersion                                   : 6.3
WindowsEditionId                                        : Professional
WindowsInstallationType                                 : Client
WindowsInstallDateFromRegistry                          : 8/6/2021 4:05:12 PM
WindowsProductId                                        : 00330-52452-93139-AAOEM
WindowsProductName                                      : Windows 10 Pro
WindowsRegisteredOrganization                           :
```

{% endcode %}

## Crear un script

Para crear un script, vaya a Build > Scripts y seleccione Create Script. Introduzca un nombre y seleccione Save. PowerShell Universal abre el editor de scripts.

Introduzca el siguiente script en el editor y guarde:

{% code collapsedlinecount="10" %}

```powershell
Read-Host "What should I say?"

1..100 | ForEach-Object {
    Write-Progress -PercentComplete $_ -Activity "Processing..."
}

Get-Service
```

{% endcode %}

Una vez guardado el script, haga clic en Run.

## Crear una app

Para crear una nueva interfaz de usuario basada en PowerShell, vaya a Build > Apps y seleccione Create App. Introduzca un nombre y una URL para la aplicación.

Seleccione Save y, a continuación, seleccione el nombre de la aplicación para abrir su editor. Sustituya el script generado por lo siguiente:

{% code collapsedlinecount="10" %}

```powershell
New-UDApp -Title "Hello, World!" -Content {
    New-UDButton -Text "Click Me" -OnClick {
        Show-UDToast -Message 'Success!!'
    }
}
```

{% endcode %}

Guarde la aplicación, seleccione Restart y, a continuación, seleccione View App. En la aplicación, seleccione Click Me.

Más información sobre las distintas funciones de PowerShell Universal:

* [API](/powershell-universal/es/api/about.md)
* [Automatización](/powershell-universal/es/automatizacion/about.md)
* [Apps](/powershell-universal/es/aplicaciones/building-dashboards.md)

### Véase también

* [Devolutions Academy – Instalación](https://academy.devolutions.net/student/activity/3465938-installation)


---

# 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.devolutions.net/powershell-universal/es/get-started.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.
