Feast CLI reference
Overview
Usage: feast [OPTIONS] COMMAND [ARGS]...
Feast CLI
For more information, see our public docs at https://docs.feast.dev/
Options:
-c, --chdir TEXT Switch to a different feature repository directory before
executing the given subcommand.
--help Show this message and exit.
Commands:
apply Create or update a feature store deployment
configuration Display Feast configuration
delete Delete a Feast object from the registry
entities Access entities
feature-views Access feature views
init Create a new Feast repository
materialize Run a (non-incremental) materialization job to...
materialize-incremental Run an incremental materialization job to ingest...
permissions Access permissions
registry-dump Print contents of the metadata registry
teardown Tear down deployed feature store infrastructure
version Display Feast SDK versionGlobal Options
feast -c path/to/my/feature/repo applyApply
feast apply# Skip only data source validation
feast apply --skip-source-validation
# Skip only feature view validation
feast apply --skip-feature-view-validation
# Skip both validations
feast apply --skip-source-validation --skip-feature-view-validationConfiguration
feast configurationproject: foo
registry: data/registry.db
provider: local
online_store:
type: sqlite
path: data/online_store.db
offline_store:
type: dask
entity_key_serialization_version: 3
auth:
type: no_authDelete
feast delete <OBJECT_NAME># Delete a feature view named "driver_hourly_stats"
feast delete driver_hourly_stats
# Delete an entity named "driver"
feast delete driverEntities
feast entities list
Options:
--tags TEXT Filter by tags (e.g. --tags 'key:value' --tags 'key:value,
key:value, ...'). Items return when ALL tags match.NAME DESCRIPTION TYPE
driver_id driver id ValueType.INT64Feature views
feast feature-views list
Options:
--tags TEXT Filter by tags (e.g. --tags 'key:value' --tags 'key:value,
key:value, ...'). Items return when ALL tags match.NAME ENTITIES TYPE
driver_hourly_stats {'driver'} FeatureViewInit
feast init my_repo_nameCreating a new Feast repository in /projects/my_repo_name..
βββ data
β βββ driver_stats.parquet
βββ example.py
βββ feature_store.yamlfeast init -t gcp my_feature_repofeast init -t gcp my_feature_repoMaterialize
feast materialize 2020-01-01T00:00:00 2022-01-01T00:00:00feast materialize --disable-event-timestampfeast materialize -v driver_hourly_stats 2020-01-01T00:00:00 2022-01-01T00:00:00feast materialize --disable-event-timestamp -v driver_hourly_statsMaterializing 1 feature views from 2020-01-01 to 2022-01-01
driver_hourly_stats:
100%|ββββββββββββββββββββββββββ| 5/5 [00:00<00:00, 5949.37it/s]Materialize incremental
feast materialize-incremental 2022-01-01T00:00:00Permissions
List permissions
feast permissions list
Options:
--tags TEXT Filter by tags (e.g. --tags 'key:value' --tags 'key:value,
key:value, ...'). Items return when ALL tags match.
-v, --verbose Print the resources matching each configured permission+-----------------------+-------------+-----------------------+-----------+----------------+-------------------------+
| NAME | TYPES | NAME_PATTERNS | ACTIONS | ROLES | REQUIRED_TAGS |
+=======================+=============+=======================+===========+================+================+========+
| reader_permission1234 | FeatureView | transformed_conv_rate | DESCRIBE | reader | - |
| | | driver_hourly_stats | DESCRIBE | reader | - |
+-----------------------+-------------+-----------------------+-----------+----------------+-------------------------+
| writer_permission1234 | FeatureView | transformed_conv_rate | CREATE | writer | - |
+-----------------------+-------------+-----------------------+-----------+----------------+-------------------------+
| special | FeatureView | special.* | DESCRIBE | admin | test-key2 : test-value2 |
| | | | UPDATE | special-reader | test-key : test-value |
+-----------------------+-------------+-----------------------+-----------+----------------+-------------------------+feast permissions list -vPermissions:
permissions
βββ reader_permission1234 ['reader']
β βββ FeatureView: none
βββ writer_permission1234 ['writer']
βββ FeatureView: none
βββ OnDemandFeatureView: ['transformed_conv_rate_fresh', 'transformed_conv_rate']
βββ BatchFeatureView: ['driver_hourly_stats', 'driver_hourly_stats_fresh']Describe a permission
feast permissions describe permission-name
name: permission-name
types:
- FEATURE_VIEW
namePattern: transformed_conv_rate
requiredTags:
required1: required-value1
required2: required-value2
actions:
- DESCRIBE
policy:
roleBasedPolicy:
roles:
- reader
tags:
key1: value1
key2: value2
Permission check
> feast permissions check
The following resources are not secured by any permission configuration:
NAME TYPE
driver Entity
driver_hourly_stats_fresh FeatureView
The following actions are not secured by any permission configuration (Note: this might not be a security concern, depending on the used APIs):
NAME TYPE UNSECURED ACTIONS
driver Entity CREATE
DESCRIBE
UPDATE
DELETE
READ_ONLINE
READ_OFFLINE
WRITE_ONLINE
WRITE_OFFLINE
driver_hourly_stats_fresh FeatureView CREATE
DESCRIBE
UPDATE
DELETE
READ_ONLINE
READ_OFFLINE
WRITE_ONLINE
WRITE_OFFLINE
Based on the above results, the administrator can reassess the permissions configuration and make any necessary adjustments to meet their security requirements.
If no resources are accessible publicly, the permissions check command will return the following response:
> feast permissions check
The following resources are not secured by any permission configuration:
NAME TYPE
The following actions are not secured by any permission configuration (Note: this might not be a security concern, depending on the used APIs):
NAME TYPE UNSECURED ACTIONSList of the configured roles
feast permissions list-roles
Options:
--verbose Print the resources and actions permitted to each configured
roleROLE NAME
admin
reader
writerfeast permissions list-roles -vROLE NAME RESOURCE NAME RESOURCE TYPE PERMITTED ACTIONS
admin driver_hourly_stats_source FileSource CREATE
DELETE
QUERY_OFFLINE
QUERY_ONLINE
DESCRIBE
UPDATE
admin vals_to_add RequestSource CREATE
DELETE
QUERY_OFFLINE
QUERY_ONLINE
DESCRIBE
UPDATE
admin driver_stats_push_source PushSource CREATE
DELETE
QUERY_OFFLINE
QUERY_ONLINE
DESCRIBE
UPDATE
admin driver_hourly_stats_source FileSource CREATE
DELETE
QUERY_OFFLINE
QUERY_ONLINE
DESCRIBE
UPDATE
admin vals_to_add RequestSource CREATE
DELETE
QUERY_OFFLINE
QUERY_ONLINE
DESCRIBE
UPDATE
admin driver_stats_push_source PushSource CREATE
DELETE
QUERY_OFFLINE
QUERY_ONLINE
DESCRIBE
UPDATE
reader driver_hourly_stats FeatureView DESCRIBE
reader driver_hourly_stats_fresh FeatureView DESCRIBE
...Teardown
feast teardownVersion
feast versionLast updated
Was this helpful?