2.0.0--alpha2 • Published 3 years ago

@cognite/cdf-cli v2.0.0--alpha2

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

CDF CLI

The CDF CLI's aim is to make it easier for developers to develop an app or solution on top of CDF. The CLI's current focus is on enabling key data modeling functionality, and we will expand towards other features in the future.

NOTE: This package is still in early alpha and under active development. We will document and test actively, but please file bug report via the Cognite Hub group

Install (Globally)

yarn global add @cognite/cdf-cli

Commands

We currently support these top level commands

Top Level CommandDescription
cdf signinLogin with the CLI (alias: login)
cdf signoutLogout the currently logged-in user (alias: logout)
cdf statusShow user's logged-in status (fails is user not logged in)

Data-models (alias: dm)

Data model CommandsDescription
cdf data-models createCreates a new data model.
cdf data-models listList data models.
cdf data-models publishUpdates a data model with a new GraphQL definition.
cdf data-models generateGenerate a JavaScript GraphQL client for the data model. Powered by https://the-guild.dev/graphql/codegen.

Options (Global)

These global --options are supported for helping with the executions

Templates CommandDescription
--helpShow help message and command description
--verboseShow debug logs and detailed message to the users helping with debugging
--interactive(Default: true) Show prompts rather than failing if required arguments are missing

Command Description

Signin

See the login section for more details

cdf signin
cdf login

Signout

This will logout and clear the global config files for the CLI.

cdf signout
cdf logout

Status

This command will tell about the login status and later on status of the backend your project is connected to.

cdf status

Data models generate

This command generates the client side code for the specified project.

Currently following plugins are supported only:

--operations-file option will specify which graphql operations to generate hooks, functions for, like certain mutation or query

Example:

cdf data-models generate --operations-file operations.graphql --plugins typescript typescript-operations

Metrics, Logs and Telemetry

Update Notifier

We check in background if a newer version of the package is published in npm and notify the user about the same if a newer version is available.

To opt-out set optOut to true in ~/.config/configstore/update-notifier-@cognite/cdf-cli.json or set env NO_UPDATE_NOTIFIER

Contributing to CDF CLI

2.6.1

2 years ago

2.5.4

2 years ago

2.4.3

2 years ago

2.4.2

2 years ago

2.4.4

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.5.2

2 years ago

2.5.1

2 years ago

2.5.3

2 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.0.2--alpha4

3 years ago

2.1.0

3 years ago

2.0.2

3 years ago

2.0.2--alpha1

3 years ago

2.0.2--alpha3

3 years ago

2.0.2--alpha2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

2.0.0--alpha2

3 years ago

2.0.0--alpha1

3 years ago

2.0.1--alpha5

3 years ago

2.0.1--alpha3

3 years ago

2.0.1--alpha1

3 years ago

2.0.1--alpha2

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-rc1

3 years ago

0.1.0--alpha8

3 years ago

0.2.0

3 years ago

0.1.0--alpha

3 years ago

0.1.0--alpha-dev

3 years ago

0.1.0--alpha4

3 years ago

0.1.0--alpha3

3 years ago

0.1.0--alpha2

3 years ago

0.1.0--alpha7

3 years ago

0.1.0--alpha6

3 years ago

0.1.0--alpha5

3 years ago

0.0.5--alpha10

3 years ago

0.0.5--alpha3

3 years ago

0.0.5--alpha4

3 years ago

0.0.5--alpha2

3 years ago

0.1.0

3 years ago

0.0.5--alpha7

3 years ago

0.0.5--alpha

3 years ago

0.0.5--alpha8

3 years ago

0.0.5--alpha5

3 years ago

0.0.5--alpha6

3 years ago

0.0.5

3 years ago

0.0.4--alpha14

3 years ago

0.0.4--alpha13

3 years ago

0.0.4--alpha12

3 years ago

0.0.4--alpha11

3 years ago

0.0.4--alpha10

3 years ago

0.0.4--alpha9

3 years ago

0.0.4--alpha8

3 years ago

0.0.4--alpha7

3 years ago

0.0.4--alpha6

3 years ago

0.0.4--alpha5

3 years ago

0.0.4--alpha4

3 years ago

0.0.4--alpha3

3 years ago

0.0.4--alpha2

3 years ago

0.0.4--alpha

3 years ago

0.0.3--alpha4

3 years ago

0.0.3--alpha3

3 years ago

0.0.3--alpha2

3 years ago

0.0.3--alpha

3 years ago

0.0.4

3 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1-alpha.21

4 years ago

0.0.1-alpha.20

4 years ago

0.0.1-alpha.19

4 years ago

0.0.1-alpha.18

4 years ago

0.0.1-alpha.17

4 years ago

0.0.1

6 years ago