@cognite/cli

    0.5.2 • Public • Published

    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).

    Keywords

    none

    Install

    npm i @cognite/cli

    DownloadsWeekly Downloads

    33

    Version

    0.5.2

    License

    MIT

    Unpacked Size

    8.23 kB

    Total Files

    4

    Last publish

    Collaborators

    • vincent-cognite
    • joelnicolaysen-cognite
    • shashan_udawatte
    • kanchana.premachandra
    • dilesha08
    • mhmdfy
    • emircognite
    • simenkristoffersen
    • emmacognite
    • erik.galler
    • jens.kristoffersen
    • redzarosli
    • evertoncolling
    • rastif
    • asankad.cog
    • tokongs
    • cognite.harbs
    • queenie-cognite
    • sig1991
    • mlkrsrc
    • ahmedcognite
    • kondanta
    • bkuzma
    • shubhski
    • stefanmaretic
    • maksym.kowalski
    • bdemirel
    • toonday
    • sennen-cognite
    • eiriklv
    • dmakked
    • caner-cognite
    • 23andreas
    • ikechukwu
    • astridkg
    • marcelo_costa
    • fran.hrzenjak
    • torgrim
    • wchatx
    • julia.scott
    • marvin.reza
    • einar.omang
    • bhavith
    • oleksandr.kolomiiets
    • dafn
    • erlendvollset
    • eirik.djuve
    • luka-mikec-cognite
    • sou1est
    • sagarthalwar
    • martin-wahlberg
    • nabati
    • kinga.cognite
    • borlov
    • cyriaquebrousse
    • tugceozgur
    • erikangelsen-cognite
    • ankku
    • silvavelosa
    • henrist
    • robinhoodie
    • peet.cremer
    • ponnapz
    • shekhardesigner
    • kornelione
    • greenbech-cognite
    • lpereiracgn
    • manoj-cognite
    • oiuytrdsxcvbnjkhgfcvbnm
    • wjoel
    • tapped
    • sumitpandey
    • francisco.rull
    • frxstrem
    • cognitecicd
    • parami.abeysekara
    • cemreyavuz
    • neringaalt
    • rhuan.barreto
    • funsim
    • pavelzubarev
    • msusag
    • nfremming
    • steinhdan
    • dmivankov
    • polomani
    • simen.eriksen
    • nils-cognite
    • dlcognite
    • haak
    • carlospereira
    • larsmoa
    • nishafern
    • trygve.utstumo
    • kathrine-cognite
    • rekarnar
    • maximcognite
    • vegardokland
    • hhenriques
    • tfheen-cognite
    • oksana_korniienko
    • j-bjorne
    • scottmelhop
    • mathialo
    • agadacz-cognite
    • paulo-menezes-cognite
    • miladcognite
    • me-ydv-5
    • cogniteterraform
    • anderscognite
    • fredrik955
    • halvard
    • dan.levings.cognite
    • sindresh92
    • christjt
    • maksim.nesterenko
    • hakontro
    • arnekv
    • ana-gheorghe
    • judeezzz
    • dilinifernando
    • mithilacognite
    • maneshka.cognite
    • vdb93
    • eriklien
    • padalby
    • jorglund
    • tuanng-cognite
    • digaomilleniun.cognite
    • cognite-ornellas
    • harish0489
    • pedro.lindeza
    • abdullah-cognite
    • davidhwu
    • anjalirai2626
    • d0ttir
    • filipjohnsen
    • omarakabbal
    • savokr
    • pramodcog
    • tharindudg
    • brgverst
    • thorkild
    • sigridschaanning
    • smartalas
    • arnels
    • sondre.solbakken
    • pbettler
    • qtiptip
    • sceniclife
    • johan-cognite
    • theresatalor-cognite
    • mspang
    • eliasbjorne
    • oysteinolsen
    • anders-cog
    • skairunner
    • jtcog
    • petmotzf
    • deep-cognite
    • mattmurph9
    • lprovensi
    • haakonflatval-cognite
    • begozcan
    • khalzmax
    • chingyu-cognite
    • sighol
    • heiding
    • ronald-cognite
    • daniel.priori
    • ravinda-cognite
    • timurgen
    • trodden-dev
    • emel.varol
    • bdimitrijoski
    • madskjeldsberg
    • yevhenii.maltsev
    • farrukk24
    • aurlien
    • bianca-mv
    • samarv
    • soleh23
    • malindakpt
    • mihilr
    • gayandeegala
    • tfarvac
    • borajimin
    • samir-ajdarpasic
    • torbjornopheim
    • chanaka25
    • geircognite
    • soumesh.banerjee
    • mohsin.cognite
    • vebjorngilberg
    • roligheten
    • marcushorn
    • sara.aalbu
    • atussa
    • aizumi
    • therockvalley
    • dmitrijs.rutko.cognite
    • perarnet
    • bisera
    • shehan.cognite
    • udara-cognite
    • raabyeeggs
    • jarlah
    • keepfloyding
    • cgustad
    • tommy_thorsen
    • andersfylling
    • meisammalekzadeh
    • ericbrattli
    • mcarun
    • saagar-cognite
    • waqasjaved1