Installation
- Unix
- Windows
Global flags
These flags apply to any command.config
Manage Sift CLI configuration. The config file is namedsift.toml and lives in your user data directory.
Each profile in the file holds a gRPC endpoint, a REST endpoint, an API key, and the URL of your Sift web app. To obtain the endpoints and an API key, see Set up API access.
Profile setup
Run these commands in order to set up thedefault profile.
config update
sift-cli config update writes connection settings to a profile in sift.toml. Pass the settings as flags, or use --interactive to enter them through prompts.
The command writes to the profile named by the global
--profile flag, or default when omitted. With field flags, it sets those fields without prompting and creates the profile if it doesn’t already exist. Without field flags in a terminal, it prompts for each value and shows the current one.
Profiles for multiple organizations
Each Sift organization requires its own API key. The REST and gRPC URIs are shared across organizations in the same account. Create a profile for each organization with the same gRPC endpoint, REST endpoint, and app URI as your default profile, and that organization’s API key:--profile <name> to any command to run it against that organization:
ping
Ping the Sift API to verify credentials and connectivity, and print the response. Takes no flags.import
Import time series files into Sift.Supported import formats
Common import flags
These flags apply to every supported import command.import csv
Import a CSV file. Unless specified, all columns are inferred as type string or double. When you pass--channel-column, supply a --data-type, --unit, and --description for each one; the counts must match.
Plus the common import flags.
import parquet flat-dataset
A Parquet file where every column is exclusive to a single Channel, except for the time column. By default, every non-time column is imported. When you pass--channel-path, supply a --data-type, --unit, and --description for each one; the counts must match.
Plus the common import flags.
import parquet cpr single
A Parquet file laid out one Channel value per row, where every row belongs to one Channel.
Plus the common import flags.
import parquet cpr multi
A Parquet file laid out one Channel value per row, where a name column identifies each row’s Channel.
Plus the common import flags.
import tdms
Import a TDMS file.
Plus the common import flags.
import hdf5
Import an HDF5 file with the subcommand that matches its layout. Supported Channel types across all layouts:bool, int8/16/32/64, uint8/16/32/64, float32, float64. Datasets with other types produce a client-side error.
All three subcommands take these flags:
Plus the common import flags.
import ulog
Import a PX4 ULog file. ULog files are self-describing, so the CLI imports every logged topic and names each Channel<message>_<multi_id>.<field>, for example sensor_accel_0.x. Logged status text becomes log_messages Channels.
ULog timestamps are relative to boot time. The CLI anchors them with the log’s GPS fix, or with --relative-start-time when you set it.
Plus the common import flags.
import mcap
Import an MCAP file. The CLI imports every decodable topic, with one Channel per flattened field, named<topic>.<field path>.
ROS 2 only: Only ROS 2 topics (CDR messages using
ros2msg schemas) are decoded. Other schema encodings fail the import under the default fail-on-error parse error policy. Pass --parse-error-policy ignore-error to skip them with a warning instead.Default Channel selection: Every detected Channel from every decodable topic is imported with its default configuration.
Per-topic selection: Selecting specific topics or Channels is not supported from the CLI.
import backups
Import backup files generated bysift_stream, part of the sift_app built-in system Asset. If ingestion fails, sift_stream writes the in-flight data to a local backup. import backups replays the backup files and imports any data that did not reach Sift.
export
Export Asset or Run data from Sift.Supported export formats
Common export flags
export run
Export data for a Run. Identify the Run by one of the following mutually exclusive selectors.
Plus the common export flags.
export asset
Export data for an Asset.
Requires
--start and --stop. Plus the common export flags.
install completions
Install shell autocompletions.doc
Serve the bundled Sift CLI documentation over HTTP.Data types
The--data-type flag accepts the following values.
Time formats
The--time-format flag accepts the following values. For a relative format, set the relative start time flag to an RFC 3339 timestamp that anchors the offsets.
Complex types modes
The--complex-types-mode flag controls how Parquet maps, lists, and structs are imported: