# Platform CLI Commands

Source: https://wraps.dev/docs/cli-reference/platform

CLI Reference / Platform

# Platform Commands

Connect your AWS infrastructure to the Wraps Platform for dashboards, templates, and workflows.

## wraps platform connect

Link your AWS account to the Wraps Platform. Enables dashboard features including analytics, template management, and automated workflows.

Usage

terminal.sh

```
npx @wraps.dev/cli platform connect [options]
```

Options

`--token <token>`

API token for authentication. If not provided, uses stored credentials or prompts for login.

`--json`

Output result as JSON for scripting and automation

What It Does

-   Authenticates with the Wraps Platform (uses stored token or prompts for login)
-   Creates or updates an IAM role (`wraps-platform-role`) with a trust policy for the Wraps Platform
-   Sets up an EventBridge webhook connection for real-time event streaming
-   Stores the platform connection in your local metadata
-   Enables dashboard features: analytics, template management, and workflows

Examples

Interactive connect (uses stored auth or prompts login):

terminal.sh

```
npx @wraps.dev/cli platform connect
```

Connect with an API token (for CI/CD):

terminal.sh

```
npx @wraps.dev/cli platform connect --token wraps_sk_...
```

## wraps platform update-role

Update the IAM role that grants the Wraps Platform read access to your AWS account. Run this after upgrading your infrastructure or changing services.

Usage

terminal.sh

```
npx @wraps.dev/cli platform update-role [options]
```

Options

`--json`

Output result as JSON for scripting and automation

What It Does

-   Reads your current infrastructure metadata
-   Creates or updates the `wraps-platform-role` IAM role with minimum required permissions
-   Adds a trust policy allowing the Wraps Platform AWS account to assume the role
-   Updates connection metadata with the new role ARN

## Platform Features

Connecting to the Wraps Platform unlocks powerful features on top of your AWS infrastructure.

Pro

$29/mo

-   AI template editor
-   Topics, segments & broadcasts
-   Unlimited workflows
-   Unlimited custom events
-   1 AWS account
-   90-day dashboard history

Business

$199/mo

-   Everything in Pro
-   AI workflow generation
-   Behavioral segments
-   1,000 AI generations/mo
-   Unlimited AWS accounts
-   SSO + SCIM, 1-year history

## Next Steps

[

Auth Commands

Authenticate with the Wraps Platform for dashboard access, templates, and workflows.

Learn more

](https://wraps.dev/docs/cli-reference/auth)

[

Platform SDK

Use the Wraps SDK to send emails, manage templates, and interact with your infrastructure programmatically.

Learn more

](https://wraps.dev/docs/client-sdk-reference)

[Back to CLI Reference](https://wraps.dev/docs/cli-reference)[Auth Commands](https://wraps.dev/docs/cli-reference/auth)
