0.0.3--alpha • Published 3 years ago

@cognite/cdf-cli v0.0.3--alpha

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

CDF CLI

Confluence

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 loginLogin with the CLI
cdf logoutLogout the currently logged-in user
cdf statusShow user's logged-in status (fails is user not logged in)

Templates (alias: t)

Use templates backend to perform the action there (cdfrc.json file is the config file that helps execute the commands)

Templates CommandDescription
cdf t initInit a templates project locally by creating a cdfrc.json
cdf t listShow list of the templates group's external ids
cdf t createcreate a new template group
cdf t deletedelete some existing templates group
cdf t generateGenerate client side code for the specified templates group and generate typings based on the selected plugins

Templates Schema

Operate with schema inside templates instance

Templates CommandDescription
cdf t schema pullPull and override the graphql schema locally based on the version specified in cdfrc.json file
cdf t schema publishPublish the local graphql schema file to the backend
cdf t schema version list

Solutions (alias: s) experimental

Use new schema service backend to perform the action there (cdfrc.json file is the config file that helps execute the commands)

Templates CommandDescription
cdf s generateGenerate client side code for the specified APISpec and generate typings based on the selected plugins

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
--no-interactiveNot show prompts rather fails if required args are missing
--versionsShow the CLI Version

Command Description

Login

See the login section for more details

Logout

This will logout and clear the global config files for the CLI (not project config use templates delete for that)

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

Templates Generate

This command generates the client side code for the specified project in cdfrc.json.

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 templates 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