Telepath.io CLI
npm install @telepath/cli@telepath/cliThis package exposes a cli tool to interact with the telepath runtime
```
> npm install -g @telepath/cli
`bash
> telepath init
> telepath init help
USAGE
$ telepath init
OPTIONS
-a, --enableAnalytics enable analytics, it is used to improve the stability for develpers
-f, --entryPointFiles=entryPointFiles glob pattern to find your entrypoint files, i.e. packages/*/.{ts,js}
-h, --help show CLI help
-o, --outputFile=outputFile define the output path for the telepath.yml file
--projectId=projectId project id
`
bash
> telepath auth:login --token={your-token-here}
> telepath auth:login --helpAuthenticate your CLI through token
USAGE
$ telepath auth:login
OPTIONS
-h, --help show CLI help
-t, --token=token telepath token used to authenticate your CLI
`$3
> Deploy your components
`bash
> telepath deploy:components
> telepath deploy:components --helpUSAGE
$ telepath deploy:components
OPTIONS
-f, --file=file telepath.yml location file, by default is used the path: ./telepath.yml
-h, --help show CLI help
-v, --verbose=verbose set verbose level
-y, --confirm autoconfirm the deployment
`$3
> call functions defined in your telepath project
`bash
> telepath deploy:functions --helpUSAGE
$ telepath deploy:functions
OPTIONS
-f, --file=file telepath.yml location file, by default is used the path: ./telepath.yml
-h, --help show CLI help
-n, --functionName=functionName specify what function to deploy an call
-v, --verbose=verbose set verbose level
-y, --confirm autoconfirm the deployment
`$3
> export you're telepath state to fix it manually
`bash
> telepath state:export --helpUSAGE
$ telepath state:export
OPTIONS
-f, --file=file telepath.yml location file, by default is used the path: ./telepath.yml
-h, --help show CLI help
-o, --output=output (required) JSON file where the state will be exported
-v, --verbose=verbose set verbose level
`$3
> import you're telepath state
`bash
> telepath state:import --helpUSAGE
$ telepath state:import
OPTIONS
-f, --file=file telepath.yml location file, by default is used the path: ./telepath.yml
-h, --help show CLI help
-s, --stateFile=stateFile (required) State JSON file to be imported
-v, --verbose=verbose set verbose level
`
Documentation
Read the documentation here or build it:
`bash
$ npn install
$ npm run docs
``