Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cognite/cli

Package Overview
Dependencies
Maintainers
54
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cognite/cli

a cli for cognite data fusion

  • 0.5.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
54
Created
Source

cdf cli

This is in super alpha!

Install

$ npm i -g @cognite/cli

Screencast example

This is how it works

Usage

The project and api-key is specified through the two required environment variables

$ export COGNITE_PROJECT=publicdata
$ export COGNITE_CREDENTIALS=<api-key>

and the optional environment variable

$ export COGNITE_BASE_URL=<cluster-specific-url>

Examples

cdf assets list

cdf assets list --limit=5

cdf assets list --filter.root=true --limit=5

cdf assets retrieve --externalIds=test1,test2

cdf assets retrieve --ids=123,234

cdf assets search --filter.root=true --search.name=name --limit=10

cdf assets create --externalId=test1 --name=somename

cdf assets update --externalId=test1 --update.name.set=somenewname

You can also pipe JSON input to create/delete to create multiple assets at once. Assuming assets.json contains

[
    {"externalId": "test.1"},
    {"externalId": "test.2"}
]

then; cat assets.json | cdf assets create cat assets.json | cdf assets delete

Settings

Contribution

Yes, please. Issues and PRs are highly welcome.

This package is automatically released using semantic release. Please write commit messages that follows the angular commit message conventions (feat:, fix: etc).

FAQs

Package last updated on 15 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc