Skip to content

CLI Reference

All of these commands are available locally. 🌌

For more information run:

reasonai help

Initialization

reasonai init

Run this command to initialize the local environment. Needed before any other commands can work

Parameters

None

Checking general status

reasonai status

Run this command to check the status of all Integrals and Reason Functions

Parameters

None

Pulling from remote

reasonai pull

Run this command to pull all Integrals and Reason Functions from remote

Parameters

None

Deploying all changes

reasonai pull

Run this command to deploy all Integrals and Reason Functions changes

Parameters

None



Integrals

Creating Integral

reasonai integrals add

Run this command to initiate the wizard for adding an Integral

Parameters

None

Deploying Integral

reasonai integrals push

Run this command to push your local changes for Integrals

Parameters

None

Checking Integral status

reasonai integrals status

Run this command to check the status of Integrals between local and remote

Parameters

None

Running Integral

reasonai integrals run <name>

Run this command to run the Integrals with the given name

Parameters

name: Name of the Integral to run



Reason Functions

Creating Reason Function

reasonai functions add

Run this command to initiate the wizard for adding an Reason Function

Parameters

None

Deploying Reason Function

reasonai integrals push

Run this command to push your local changes for Reason Function

Parameters

None

Checking Reason Function status

reasonai integrals status

Run this command to check the status of Reason Functions between local and remote

Parameters

None



Authentication

Log in to Reason AI

reasonai login

Run this command to log in on the CLI with an API Key

Parameters

None

Log out of Reason AI

reasonai logout

Run this command to sign out on the CLI

Parameters

None

Check Auth status

reasonai whoami

Run this command to check login status

Parameters

None

Reset

reasonai reset

Run this command to completly remove the local environment

Parameters

None