flagsmith-cli Python Implementation.
Project description
py-flagsmith-cli
flagsmith-cli Python Implementation.
Homepage: https://github.com/belingud/py-flagsmith-cli
You can install with pip:
pip install py-flagsmith-cli
Recommand use pipx
:
pipx install py-flagsmith-cli
And use in cmd:
pysmith -h
Usage: pysmith [OPTIONS] COMMAND [ARGS]...
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the │
│ installation. │
│ --help -h Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────╮
│ get Retrieve flagsmith features from the Flagsmith API and output them to file. │
│ showenv Show the current flagsmith environment setup. Including environment id and api host. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Include two commands get
and showenv
.
pysmith get
pysmith get -h
Usage: pysmith get [OPTIONS] [ENVIRONMENT]
Retrieve flagsmith features from the Flagsmith API and output them to file.
EXAMPLES
$ pysmith get <ENVIRONMENT_API_KEY>
$ FLAGSMITH_ENVIRONMENT=x pysmith get
$ pysmith get -e environment
$ pysmith get -o ./my-file.json
$ pysmith get -a https://flagsmith.example.com/api/v1/
$ pysmith get -i flagsmith_identity
$ pysmith get -np
╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ environment [ENVIRONMENT] The flagsmith environment key to use, defaults to the environment variable │
│ FLAGSMITH_ENVIRONMENT │
│ [env var: FLAGSMITH_ENVIRONMENT] │
│ [default: None] │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --output -o <text> The file path output [default: None] │
│ --api -a <text> The API URL to fetch the feature flags from │
│ [default: https://edge.api.flagsmith.com/api/v1/] │
│ --identity -i <text> The identity for which to fetch feature flags [default: None] │
│ --no-pretty -np <flag> Do not prettify the output JSON │
│ --entity -e <text> The entity to fetch, this will either be the flags or an environment document │
│ used for Local Evaluation Mode. Refer to │
│ https://docs.flagsmith.com/clients/server-side. │
│ [default: flags] │
│ --help -h Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
pysmith showenv
pysmith showenv -h
Usage: pysmith showenv [OPTIONS]
Show the current flagsmith environment setup. Including environment id and api host.
EXAMPLES:
$ pysmith showenv
Current flagsmith env setup>>>
flagsmith environment ID: <environment-id>
flagsmith host: <api-host>
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --help -h Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Refer to:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_flagsmith_cli-1.0.0.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for py_flagsmith_cli-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 212e9552956707650753d9881a4ef22d05a80226207cc431b5decbf9cf1bd7d4 |
|
MD5 | c97e886303efb8648ea4c319b3fbed54 |
|
BLAKE2b-256 | 8e78c74e5a07ec1eed5cc9ca6761fcf97a6d37887d8047cc1d9704c1609d4a5a |