mix tango.providers.create (tango v0.1.2)

Copy Markdown View Source

Creates a provider with OAuth credentials from the Nango catalog.

Usage

mix tango.providers.create PROVIDER_NAME [options]

Options

--client-id ID        OAuth2 client ID
--client-secret SECRET OAuth2 client secret
--api-key KEY         API key for API_KEY providers
--scope SCOPE         Single OAuth2 scope (can be specified multiple times)
--scopes SCOPES       Comma-separated list of OAuth2 scopes

Examples

# Create OAuth2 provider
mix tango.providers.create github --client-id=xxx --client-secret=yyy
mix tango.providers.create google --client-id=xxx --client-secret=yyy

# Create OAuth2 provider with custom scopes (multiple ways)
mix tango.providers.create google --client-id=xxx --client-secret=yyy --scope=https://www.googleapis.com/auth/calendar --scope=https://www.googleapis.com/auth/userinfo.email
mix tango.providers.create google --client-id=xxx --client-secret=yyy --scopes="https://www.googleapis.com/auth/calendar,https://www.googleapis.com/auth/userinfo.email"

# Create API key provider
mix tango.providers.create stripe --api-key=sk_live_xxx

This command fetches the provider configuration from the Nango catalog and creates a ready-to-use provider with your credentials.