Command-Line Help for stash
This document contains the help content for the stash
command-line program.
Command Overview:
stash
↴stash version
↴stash login
↴stash signup
↴stash workspaces
↴stash workspaces switch
↴stash datasets
↴stash datasets create
↴stash datasets enable
↴stash datasets disable
↴stash datasets config
↴stash datasets config upload
↴stash datasets config display
↴stash clients
↴stash clients create
↴stash clients revoke
↴stash logs
↴stash access-keys
↴stash access-keys create
↴stash access-keys revoke
↴
Install the CipherStash CLI
The CipherStash CLI is used to manage your encryption schema.
The encryption schema defines what encrypted indexes exist, and what queries you can perform on those indexes.
On macOS
Install via Homebrew:
brew install cipherstash/tap/stash
If macOS asks you whether you are sure you want to open “stash”, please select “Open”.
On Linux
Download the binary for your platform:
- Make the binary executable:
# on x86_64 chmod +x $path_to/stash-x86_64-unknown-linux-gnu # on ARM64 chmod +x $path_to/stash-aarch64-unknown-linux-gnu
- Rename the binary:
# on x86_64 mv stash-x86_64-unknown-linux-gnu stash # on ARM64 mv stash-aarch64-unknown-linux-gnu stash
- Place the binary on your
$PATH
, so you can run it.
stash
The official CLI for CipherStash.
Usage: stash [OPTIONS] <COMMAND>
Subcommands:
version
— Print version informationlogin
— Log into a CipherStash workspacesignup
— Sign-up for an account with CipherStashworkspaces
— List workspaces that the current logged in user has access todatasets
— List datasets that are available in the current workspaceclients
— List clients for all datasets in the current workspacelogs
— Watch the local decryption logs in the current workspaceaccess-keys
— List active access keys for the current workspace
Options:
--vitur-host <BASE_URL>
— Specify an override for Vitur base URL--client-id <CLIENT_ID>
— Client ID returned during client creation or by running list clients--client-key <CLIENT_KEY_HEX>
— Client Key generated during client creation
stash version
Print version information
Usage: stash version
stash login
Log into a CipherStash workspace
Usage: stash login
stash signup
Sign-up for an account with CipherStash
Usage: stash signup
stash workspaces
List workspaces that the current logged in user has access to
Usage: stash workspaces [COMMAND]
Subcommands:
switch
— Switch from the current default workspace to a different one
stash workspaces switch
Switch from the current default workspace to a different one
Usage: stash workspaces switch <WORKSPACE_ID>
Arguments:
<WORKSPACE_ID>
— The ID of the workspace to switch into
stash datasets
List datasets that are available in the current workspace
Usage: stash datasets [COMMAND]
Subcommands:
create
— Create a dataset that can be used to encrypt one or more database tablesenable
— Enable a previously disabled dataset re-allowing encryption and decryption operationsdisable
— Disable a dataset and disallow future encryption and decryption operationsconfig
— Manage dataset configuration
stash datasets create
Create a dataset that can be used to encrypt one or more database tables
Usage: stash datasets create [OPTIONS] <NAME>
Arguments:
<NAME>
— The name of the dataset to be created
Options:
-
--description <DESCRIPTION>
— A helpful description of what the dataset will be used to encryptDefault value: ``
stash datasets enable
Enable a previously disabled dataset re-allowing encryption and decryption operations
Usage: stash datasets enable [OPTIONS] <DATASET_ID>
Arguments:
<DATASET_ID>
— The UUID of the dataset to be enabled
Options:
--confirm
— Don’t prompt for confirmation
stash datasets disable
Disable a dataset and disallow future encryption and decryption operations
Usage: stash datasets disable [OPTIONS] <DATASET_ID>
Arguments:
<DATASET_ID>
— The UUID of the dataset to be disabled
Options:
--confirm
— Don’t prompt for confirmation
stash datasets config
Manage dataset configuration
Usage: stash datasets config <COMMAND>
Subcommands:
upload
— Upload configuration for a datasetdisplay
— Display the configuration for a dataset
stash datasets config upload
Upload configuration for a dataset
Usage: stash datasets config upload [OPTIONS] --file <FILE>
Options:
--file <FILE>
— Path to the file containing the config for the dataset in yaml format-y
,--assume-yes
— Skip the confirmation prompt
stash datasets config display
Display the configuration for a dataset
Usage: stash datasets config display
stash clients
List clients for all datasets in the current workspace
Usage: stash clients [COMMAND]
Subcommands:
create
— Create a client that can be used to programmatically access a datasetrevoke
— Revoke a client
stash clients create
Create a client that can be used to programmatically access a dataset
Usage: stash clients create [OPTIONS] --dataset-id <DATASET_ID> <NAME>
Arguments:
<NAME>
— The name of the client to be created
Options:
-
--description <DESCRIPTION>
— A helpful description of what the client will be used forDefault value: ``
-
--dataset-id <DATASET_ID>
— The UUID of the dataset that a client should be created for
stash clients revoke
Revoke a client
Usage: stash clients revoke <CLIENT_ID>
Arguments:
<CLIENT_ID>
stash logs
Watch the local decryption logs in the current workspace
Usage: stash logs [OPTIONS]
Options:
-
-n
,--tail <TAIL>
Default value:
100
stash access-keys
List active access keys for the current workspace
Usage: stash access-keys [WORKSPACE_ID] [COMMAND]
Subcommands:
create
— Create an access key for a workspace to allow programmatic access to that workspace without an accountrevoke
— Revoke a previously created access key from a workspace
Arguments:
<WORKSPACE_ID>
— Optional arg to only return access keys for a specific workspace
stash access-keys create
Create an access key for a workspace to allow programmatic access to that workspace without an account
Usage: stash access-keys create --workspace-id <WORKSPACE_ID> <NAME>
Arguments:
<NAME>
— The name of the access key to be created
Options:
--workspace-id <WORKSPACE_ID>
— The workspace id for which the access key should be created
stash access-keys revoke
Revoke a previously created access key from a workspace
Usage: stash access-keys revoke --workspace-id <WORKSPACE_ID> <NAME>
Arguments:
<NAME>
Options:
--workspace-id <WORKSPACE_ID>
— The workspace id of the access key to be revoked
This document was generated automatically by
clap-markdown
.