Doc Store
Manage document store in sfp server
sfp server doc-store add
Add a document to the doc store
USAGE
$ sfp server doc-store add -k <value> [--json] [--repository <value>] [-e <value>] [-t <value>] [--sfp-server-url
<value>] [-v <value> | -f <value>]
FLAGS
-e, --email=<value> [env: SFP_SERVER_USER] Email address for authenticated user. Ignored if
--application-token is provided.
-f, --file=<value> Path to JSON file containing the value
-k, --key=<value> (required) Key for the document
-t, --application-token=<value> [env: SFP_SERVER_TOKEN] Application token for CI/CD authentication. Takes precedence
over --email.
-v, --value=<value> Value for the document (must be valid JSON)
--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 document to the doc store
EXAMPLES
$ sfp server doc-store add --key myKey --value '{"data": "value"}' --email user@example.com
$ sfp server doc-store add --key myKey --value '{"data": "value"}' --application-token myToken
$ sfp server doc-store add --key myKey --file ./data.json --email user@example.comSee code: src/commands/server/doc-store/add.ts
sfp server doc-store collection add
Add a document to a collection in the doc store
sfp server doc-store collection delete
Delete a document from a collection in the doc store
sfp server doc-store collection get
Get documents from a collection in the doc store
sfp server doc-store collection list
List all doc store collections on the server
sfp server doc-store collection update
Update a document in a collection in the doc store
sfp server doc-store delete
Delete a document from the doc store
See code: src/commands/server/doc-store/delete.ts
sfp server doc-store get
Get a document from the doc store
See code: src/commands/server/doc-store/get.ts
sfp server doc-store update
Update a document in the doc store
See code: src/commands/server/doc-store/update.ts
Last updated
Was this helpful?