sylphx connections connection_providers
Every sylphx connections connection_providers command: its argument, its flags and a run line.
The connection_providers commands of Sylphx Connections, as the CLI spells them: the same
calls as the connection_providers API page, typed for the
shell. Install, sign in and the grammar are on the CLI index.
begin-registration
Begins an expiring, one-use GitHub manifest registration ceremony. Open registration_url to POST the bound, prefilled manifest to GitHub. github_organization selects organization ownership. The state-authorized callback is GET /v1/connections/github-manifest:callback?state=...&code=... and returns only provider metadata and an installation URL.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx connections connection-providers begin-registration orgs/acmePOST https://api.sylphx.com/v1/orgs/acme/connection_providers:beginRegistration · scope connections:admin · effect write · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--connection-provider-id | string | Explicit immutable provider identity. Required. |
--signing-key | string | Unused environment-scoped public Keys target in this organization. Required. |
--webhook-secret | string | Environment-scoped Secrets custody target in this organization. Required. |
--github-manifest | json | Permissions, events and the declared platform webhook destination. Required. |
--expected-github-app-slug | string | Slug whose literal wrapped-import path has been enrolled in custody. Renaming the App at GitHub causes the callback to refuse before import. Required. |
--github-organization | string | GitHub organization that will own the App; unset selects a personal account. |
create
Creates a connection provider, such as an OAuth 2.0 client configuration.
ID — The id segment of the new Resource's name; the server assigns one when omitted.
CLI
sylphx connections connection-providers create --parent orgs/acmePOST https://api.sylphx.com/v1/orgs/acme/connection_providers · scope connections:admin · effect write · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--parent | string | The parent to create in; defaults to the linked project or the key's scope. |
--meta.labels | key=value | Caller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value. |
--meta.annotations | key=value | Caller-writable, unindexed annotations. Repeat the flag for each value. |
--meta.display-name | string | Caller-writable human-readable name. |
--spec.github-app.app-id | int | The App's numeric id. |
--spec.github-app.slug | string | The App's slug, for example sylphx. |
--spec.github-app.client-id | string | The App's OAuth client id. |
--spec.github-app.signing-key | string | The imported, non-exportable SIGN Key (RS256) that signs App assertions; only the credential service may use it. |
--spec.github-app.webhook-secret | string | The Secret holding the webhook secret that verifies deliveries. |
--spec.sharing-grants | json | Organizations allowed to use specific installations of this provider. Removing a grant prevents subsequent Broker exchanges. Signing custody remains in the provider's organization and is never copied to a recipient. Repeat the flag for each value. |
--spec.oauth2.authorize-url | string | Authorization endpoint HTTPS URL. |
--spec.oauth2.token-url | string | Authorization-code exchange endpoint HTTPS URL. |
--spec.oauth2.refresh-url | string | Refresh endpoint HTTPS URL; defaults to token_url when empty. |
--spec.oauth2.client-id | string | Provider-issued OAuth client identifier. |
--spec.oauth2.client-secret | string | Write-only OAuth client secret sealed at rest and never returned. The value is never returned. |
--spec.oauth2.scopes | string | Default OAuth scopes requested during authorization. Repeat the flag for each value. |
--spec.oauth2.extra-authorize-params | key=value | Static query parameters appended to authorize_url. Reserved keys (state, redirect_uri) are rejected. Repeat the flag for each value. |
--spec.oauth2.redirect-uri | string | Optional redirect_uri override sent on authorize and token requests; defaults to the hosted callback URL. |
--spec.oauth2.token-method | enum | HTTP transport for code exchange and refresh requests. One of form_post, query_get. |
--spec.oauth2.client-auth | enum | How client credentials are sent to token and refresh endpoints. One of body_or_query, basic. |
--spec.oauth2.authorize-code-param | string | Query parameter carrying the authorization code on redirect callbacks; defaults to code. |
--spec.oauth2.token-code-param | string | Parameter key carrying the authorization code on token exchange requests; defaults to code. |
--spec.oauth2.exchange-grant-type | string | Grant type value sent during authorization-code exchange; defaults to authorization_code. |
--spec.oauth2.client-id-param | string | Parameter key for client_id on token and refresh requests when not using HTTP Basic authentication; defaults to client_id. |
--spec.oauth2.client-secret-param | string | Parameter key for client_secret on token and refresh requests when not using HTTP Basic authentication; defaults to client_secret. |
--spec.oauth2.callback-metadata-params | string | Non-secret query parameter keys copied from the redirect callback into Connection.spec.oauth2.provider_metadata. Repeat the flag for each value. |
--spec.oauth2.post-authorize-redirect-uri | string | Optional HTTPS URL redirected to after hosted callback completion. |
--spec.oauth2.authorize-client-id-param | string | Query parameter key for client_id in authorize_url; defaults to client_id. |
--dry-run | bool | Validate and print the result without writing (validate_only). |
begin-oauth2-authorization
Begins an expiring hosted OAuth 2.0 authorization ceremony for an OAuth 2.0 ConnectionProvider. Returns an authorization_url carrying an expiring one-use state token handled by GET /v1/connections/oauth2:callback.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx connections connection-providers begin-oauth2-authorization orgs/acme/connection_providers/connection-providerPOST https://api.sylphx.com/v1/orgs/acme/connection_providers/connection-provider:beginOauth2Authorization · scope connections:write · effect write · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--connection-id | string | Target Connection id to create or reauthorize on callback; server-assigned when empty. |
--post-authorize-redirect-uri | string | Optional HTTPS redirect destination after callback completion. |
--scopes | string | Optional scopes overriding the provider defaults. Repeat the flag for each value. |
--extra-authorize-params | key=value | Additional per-request query parameters appended to authorize_url. Repeat the flag for each value. |
--provider-metadata | key=value | Optional non-secret metadata persisted onto the resulting Connection. Repeat the flag for each value. |
--external-account-id | string | Optional non-secret external account id recorded on creation. |
--return-path | string | Origin-relative path under the provider redirect base, exclusive with post_authorize_redirect_uri. |
adopt
Adopts an existing GitHub App whose non-exportable custody already exists. The server observes public SPKI metadata and verifies signed GET /app before atomically registering the SIGN Key and provider. No private key is accepted.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx connections connection-providers adopt orgs/acmePOST https://api.sylphx.com/v1/orgs/acme/connection_providers:adopt · scope connections:admin · effect write · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--connection-provider-id | string | Explicit immutable provider identity. Required. |
--github-app | json | Existing App identity and unused full environment-scoped SIGN Key target. An optional webhook_secret must already name this organization's Secret. Required. |
--reason | string | Accountable operator's reason for adopting the existing App. Required. |
get
Gets a connection provider.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx connections connection-providers get orgs/acme/connection_providers/connection-providerGET https://api.sylphx.com/v1/orgs/acme/connection_providers/connection-provider · scope connections:read · effect read · Request, response and examples
list
Lists an org's connection providers.
PARENT — optional: the CLI fills it from the linked project or the
key's scope when it is left out.
CLI
sylphx connections connection-providers list orgs/acmeGET https://api.sylphx.com/v1/orgs/acme/connection_providers · scope connections:read · effect read · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--page-size | int | At most this many; default 50, clamped to 1000. |
--page-token | string | next_page_token of the previous page. |
--filter | string | AIP-160 filter over labels and filterable fields. |
--order-by | string | AIP-132 ordering over filterable fields. |
update
Updates a connection provider.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx connections connection-providers update orgs/acme/connection_providers/connection-providerPATCH https://api.sylphx.com/v1/orgs/acme/connection_providers/connection-provider · scope connections:admin · effect write · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--meta.labels | key=value | Caller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value. |
--meta.annotations | key=value | Caller-writable, unindexed annotations. Repeat the flag for each value. |
--meta.display-name | string | Caller-writable human-readable name. |
--spec.github-app.slug | string | The App's slug, for example sylphx. |
--spec.github-app.client-id | string | The App's OAuth client id. |
--spec.github-app.signing-key | string | The imported, non-exportable SIGN Key (RS256) that signs App assertions; only the credential service may use it. |
--spec.github-app.webhook-secret | string | The Secret holding the webhook secret that verifies deliveries. |
--spec.sharing-grants | json | Organizations allowed to use specific installations of this provider. Removing a grant prevents subsequent Broker exchanges. Signing custody remains in the provider's organization and is never copied to a recipient. Repeat the flag for each value. |
--spec.oauth2.authorize-url | string | Authorization endpoint HTTPS URL. |
--spec.oauth2.token-url | string | Authorization-code exchange endpoint HTTPS URL. |
--spec.oauth2.refresh-url | string | Refresh endpoint HTTPS URL; defaults to token_url when empty. |
--spec.oauth2.client-id | string | Provider-issued OAuth client identifier. |
--spec.oauth2.client-secret | string | Write-only OAuth client secret sealed at rest and never returned. The value is never returned. |
--spec.oauth2.scopes | string | Default OAuth scopes requested during authorization. Repeat the flag for each value. |
--spec.oauth2.extra-authorize-params | key=value | Static query parameters appended to authorize_url. Reserved keys (state, redirect_uri) are rejected. Repeat the flag for each value. |
--spec.oauth2.redirect-uri | string | Optional redirect_uri override sent on authorize and token requests; defaults to the hosted callback URL. |
--spec.oauth2.token-method | enum | HTTP transport for code exchange and refresh requests. One of form_post, query_get. |
--spec.oauth2.client-auth | enum | How client credentials are sent to token and refresh endpoints. One of body_or_query, basic. |
--spec.oauth2.authorize-code-param | string | Query parameter carrying the authorization code on redirect callbacks; defaults to code. |
--spec.oauth2.token-code-param | string | Parameter key carrying the authorization code on token exchange requests; defaults to code. |
--spec.oauth2.exchange-grant-type | string | Grant type value sent during authorization-code exchange; defaults to authorization_code. |
--spec.oauth2.client-id-param | string | Parameter key for client_id on token and refresh requests when not using HTTP Basic authentication; defaults to client_id. |
--spec.oauth2.client-secret-param | string | Parameter key for client_secret on token and refresh requests when not using HTTP Basic authentication; defaults to client_secret. |
--spec.oauth2.callback-metadata-params | string | Non-secret query parameter keys copied from the redirect callback into Connection.spec.oauth2.provider_metadata. Repeat the flag for each value. |
--spec.oauth2.post-authorize-redirect-uri | string | Optional HTTPS URL redirected to after hosted callback completion. |
--spec.oauth2.authorize-client-id-param | string | Query parameter key for client_id in authorize_url; defaults to client_id. |
--dry-run | bool | Validate and print the result without writing (validate_only). |
delete
Deletes a connection provider; force forgets its local connections only.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx connections connection-providers delete orgs/acme/connection_providers/connection-provider --yesDELETE https://api.sylphx.com/v1/orgs/acme/connection_providers/connection-provider · scope connections:admin · effect destructive · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--etag | string | Delete only if the current etag matches. |
--dry-run | bool | Validate and print the result without writing (validate_only). |
--force | bool | Also forget every child Resource; without it a parent with children fails with INVALID_STATE. This never uninstalls the App at GitHub. |
--yes | bool | Do not ask before this destructive call. |