organization | category | brand_color | display_name | short_name | description | og_description | og_image | icon_url | |
---|---|---|---|---|---|---|---|---|---|
francois2metz |
|
#03eab3 |
Phrase |
phrase |
Steampipe plugin for querying projects, translations and more from Phrase. |
Query phrase with SQL! Open source CLI. No DB required. |
/images/plugins/francois2metz/phrase-social-graphic.png |
/images/plugins/francois2metz/phrase.svg |
Phrase is a translation tool.
Steampipe is an open source CLI to instantly query cloud APIs using SQL.
For example:
select
name,
created_at
from
phrase_project
+--------------------+-----------------------+
| name | created_at |
+--------------------+-----------------------+
| My Awesome Project | 2023-09-04T10:42:02Z |
| Another Project | 2023-10-16T07:31:34Z |
+--------------------+-----------------------+
Download and install the latest Phrase plugin:
steampipe plugin install francois2metz/phrase
Item | Description |
---|---|
Credentials | Phrase requires an access token. |
Permissions | Token should have at least the read scope. To manage members, add team.manage |
Radius | Each connection represents a single Phrase account. |
Resolution | 1. Credentials explicitly set in a steampipe config file (~/.steampipe/config/phrase.spc )2. Credentials specified in environment variables, e.g., PHRASE_ACCESS_TOKEN . |
Installing the latest Phrase plugin will create a config file (~/.steampipe/config/phrase.spc
) with a single connection named phrase
:
connection "phrase" {
plugin = "francois2metz/phrase"
# The access token of your phrase account (required)
# Get it on: https://app.phrase.com/settings/oauth_access_tokens
# This can also be set via the `PHRASE_ACCESS_TOKEN` environment variable
# access_token = "siFreKnogsObVeirlildOakmygDectItEejOathdajtivSeawdyearArEsfosDys"
# Datacenter (optional)
# By default EU datacenter: https://api.phrase.com/v2
# US datacenter: https://api.us.app.phrase.com/v2/
# datacenter = "https://api.phrase.com/v2"
}
The Phrase plugin will use the following environment variables to obtain credentials only if other argument (access_token
, datacenter
) is not specified in the connection:
export PHRASE_ACCESS_TOKEN=siFreKnogsObVeirlildOakmygDectItEejOathdajtivSeawdyearArEsfosDys
export PHRASE_DATACENTER=https://api.phrase.com/v2