Skip to content

ConduitPlatform/CLI

Repository files navigation

conduit-cli

The CLI to help you when developing conduit.

oclif npm (scoped)

Limitations:

  • Currently, only creates schemas and only for TypeScript

Usage

$ npm install -g @conduitplatform/cli
$ conduit COMMAND
running command...
$ conduit (--version|-v)
@conduitplatform/cli/0.0.2 linux-x64 node-v16.15.0
$ conduit --help [COMMAND]
USAGE
  $ conduit COMMAND
...

Commands

conduit deploy rm

Bring down a local Conduit deployment

USAGE
  $ conduit deploy rm [-t <value>]

FLAGS
  -t, --target=<value>  Specify target deployment

DESCRIPTION
  Bring down a local Conduit deployment

conduit deploy setup

Bootstraps a local Conduit deployment

USAGE
  $ conduit deploy setup [--config]

FLAGS
  --config  Enable manual deployment configuration

DESCRIPTION
  Bootstraps a local Conduit deployment

conduit deploy start

Bring up a local Conduit deployment

USAGE
  $ conduit deploy start [-t <value>]

FLAGS
  -t, --target=<value>  Specify target deployment

DESCRIPTION
  Bring up a local Conduit deployment

conduit deploy stop

Bring down a local Conduit deployment

USAGE
  $ conduit deploy stop [-t <value>]

FLAGS
  -t, --target=<value>  Specify target deployment

DESCRIPTION
  Bring down a local Conduit deployment

conduit generateClient graphql

Generates a GraphQL client library for Conduit's GraphQL API

USAGE
  $ conduit generateClient graphql [-t <value>] [-p <value>]

FLAGS
  -p, --output-path=<value>  Path to store archived library in
  -t, --client-type=<value>  The client type to generate a library for

DESCRIPTION
  Generates a GraphQL client library for Conduit's GraphQL API

conduit generateClient rest

Generates a REST API client library for Conduit'S REST API

USAGE
  $ conduit generateClient rest [-t <value>] [-p <value>]

FLAGS
  -p, --output-path=<value>  Path to store archived library in
  -t, --client-type=<value>  The client type to generate a library for

DESCRIPTION
  Generates a REST API client library for Conduit'S REST API

conduit generateSchema [PATH]

Generate Schema TS files for registered Conduit schemas

USAGE
  $ conduit generateSchema [PATH]

DESCRIPTION
  Generate Schema TS files for registered Conduit schemas

EXAMPLES
  $ conduit generate-schema
  ...
  Generating schemas

See code: dist/commands/generateSchema.ts

conduit help [COMMAND]

Display help for conduit.

USAGE
  $ conduit help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for conduit.

See code: @oclif/plugin-help

conduit init

Initialize the CLI to communicate with Conduit

USAGE
  $ conduit init [-r]

FLAGS
  -r, --relogin  Reuses url and master key from existing configuration

DESCRIPTION
  Initialize the CLI to communicate with Conduit

EXAMPLES
  $ conduit init
  ...
  Attempting login
  Login Successful!

See code: dist/commands/init.ts

Roadmap

  • Support more operations (ex. boilerplate code generation)
  • Change generator functions to use a proper engine
  • Support more languages for code generation

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages