Key-Value

Manage key-value store in sfp server

sfp server key-value add

Add a new key-value pair to the server

USAGE
  $ sfp server key-value add -k <value> -v <value> [--json] [--repository <value>] [-e <value>] [-t <value>]
    [--sfp-server-url <value>] [-u] [-g <value>...] [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -e, --email=<value>               [env: SFP_SERVER_USER] Email address for authenticated user. Ignored if
                                    --application-token is provided.
  -g, --logsgroupsymbol=<value>...  Symbol used by CICD platform to group/collapse logs in the console. Provide an
                                    opening group, and an optional closing group symbol.
  -k, --key=<value>                 (required) The key to store
  -t, --application-token=<value>   [env: SFP_SERVER_TOKEN] Application token for CI/CD authentication. Takes precedence
                                    over --email.
  -u, --upsert                      Create a new key-value pair or update if it already exists
  -v, --value=<value>               (required) The value to store
      --loglevel=<option>           [default: info] logging level for this command invocation
                                    <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
      --repository=<value>          The repository identifier. E.g `owner/repo`
      --sfp-server-url=<value>      [env: SFP_SERVER_URL] URL of the SFP server. Can be set via environment variable
                                    `SFP_SERVER_URL` or config: sfp config:set server-url

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Add a new key-value pair to the server

EXAMPLES
  $ sfp server key-value add --key mykey --value myvalue

  $ sfp server key-value add --key mykey --value myvalue --upsert

See code: src/commands/server/key-value/add.tsarrow-up-right

sfp server key-value delete

Delete a key-value pair from the server

See code: src/commands/server/key-value/delete.tsarrow-up-right

sfp server key-value get

Get a value by key from the server

See code: src/commands/server/key-value/get.tsarrow-up-right

sfp server key-value update

Update a value for an existing key in the server

See code: src/commands/server/key-value/update.tsarrow-up-right

Last updated

Was this helpful?