Interact with the CLI
The Featureform CLI allows you to describe, list, and monitor your resources.
APPLY Command
The apply command submits resource definitions to the Featureform instance.
The argument can either be a path to a local file or the url of a hosted file. Multiple files can be included at a time.
Upon success, all definitions in the definitions.py (or whatever you choose to call it) file will be sent to the Featureform instance, logged in the metadata, and materialized with the registered providers.
After applying new resource definitions, you can use the GET command to see the status of the resources you applied. A resource with the status READY is available for serving.
DASH Command
The DASH command is used to access the featureform dashboard. It returns a URL to the locally hosted dashboard.
The dashboard can be viewed at http://localhost:3000
in your browser
The Featureform dashboard:
Featureform dashboard
Each button on the dashboard redirects you to a list of resources of that resource type.
List of registered features
Each resource can then be clicked on to learn more.
GET Command
The GET command displays status, variants, and other metadata on a resource.
RESOURCE_TYPE (required) can be:
-
feature - machine learning features
-
label - machine learning labels
-
training-set - set of features and one label for training ML models
-
user - registered users in your instance
-
entity - identifier for a source of features or labels (akin to a primary key)
-
model - registered machine learning models which training sets and features are fed to
-
provider - registered 3rd party providers which store your data
-
source - files, tables, or transformations that features, labels and training sets source from
NAME is the name of the resource type to be queried.
VARIANT is optional, for when information on a specific variant is needed.
Example: Getting a User
The commands are both valid ways to retrieve information on the user “featureformer”.
The first is with certification. The second without; the —insecure flag disables the need for the —cert flag
Either command returns the following output.
Listed below the user are all the resources registered to that user.
Example: Getting a Resource
The following command shows how to retrieve information on a specific resource, a feature named “avg_transactions”.
Example: Getting a Resource Variant
The command below retrieves information on the specific variant of the feature “avg_transactions”, “quickstart”
Listed below are the metadata on that variant, as well as its source and the training sets it belongs to.
LIST Command
The LIST command displays the name, variant and status of all the resources of that resource type.
RESOURCE_TYPE (required) can be:
-
features - machine learning features
-
labels - machine learning labels
-
training-sets - set of features and one label for training ML models
-
users - registered users in your instance
-
entities - identifier for a source of features or labels (akin to a primary key)
-
models - registered machine learning models which training sets and features are fed to
-
providers - registered 3rd party providers which store your data
-
sources - files, tables, or transformations that features, labels and training sets source from
Example: Getting the list of users
The commands are both valid ways to retrieve a list of users. The first is when the user uses a self-signed cert.
The following uses the local flag to access resources created and stored in localmode:
The above commands return the following list of users which have been registered:
Example: Getting the list of resources of a given type
In local mode:
The given commands return the list of registered features and their variants