Manage files on the Package Manager service¶
This page describes how to manage files on the Package Manager service.
Use the kxi pm file commands in the command-line interface (CLI) to manage files held by the Package Manager service on your kdb Insights Enterprise deployment. You can use these commands to automate file management, keep files in source control, and deploy the same files to multiple environments.
The kxi pm file commands manage path-addressed files on the Package Manager service. Each file is stored as an entity at a remote path. Specify --package to manage an entity associated with a package, or omit it to manage a global entity.
Prerequisites¶
Before you manage files:
- Install the CLI and authenticate with your deployment.
- Ensure you have administrator access if you need to upload or delete global files without the
--packageoption.
Commands¶
| Command | Description |
|---|---|
kxi pm file list |
List uploaded entities and bundled package data files. Use --package <name-or-uuid> to filter to one package; omit it to list all files. |
kxi pm file get <remote-path> |
Download a file from a remote path. Use -O, --output <path> to set the local file or directory. By default, the command uses the remote file name. |
kxi pm file put <local-path> |
Upload a local file as an entity at a remote path. Use --path to set the destination path, which defaults to the local file name, and --type to set the entity type. If you omit --type, the type is taken from the file's own YAML metadata.type, then from the existing entity at that path, then defaults to other. |
kxi pm file rm <remote-path> |
Delete a remote file at an exact path. |
The get and put subcommands have the aliases download and upload.
All subcommands accept -o, --output-format [json|table] and the standard connection options. Use -y, --yes to run a command without confirmation prompts. For a complete list of options, see the CLI reference.
Next steps¶
- Update the business-day calendars with the CLI is a worked example that uses
kxi pm file.