0.0.1-alpha.0 • Published 3 years ago

@cognite/itg-cli v0.0.1-alpha.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

itg - A CLI for https://itg.cognite.ai

Install

npm install -g @cognite/itg-cli

Commands

# Creates a new project and dumps details in .itgrc
itg init

itg schema view
# Also includes all generated types and queries
itg schema view --full
itg schema view --type=Equipment

# Add and replace a schema in itg
itg schema update -f mymodel.graphql

itg nodes add --type Equipment -f equipment.csv
itg nodes add --type Document -f documents.csv

itg relations add Equipment.documents -f relations.csv

# Delete the project, including the .itgrc
itg prune

Global variables

Set the COGNITE_CREDENTIALS variable with an api key for the respective cdf project to get access