This is the CLI used for publishing and developing extensions and brains for HubAI platform.
For the full documentation, please access: CLI Documentation
We recommend installing the CLI globally, so you can use it in any project.
npm install -g @hubai/cliAfter the installation is complete, you can test the CLI by running:
hubai --helpIf you have any errors, please check the Troubleshooting section or fill an issue.
If you want to publish packages to Hubai, you need to authenticate first.
Login or create a new account by running:
hubai auth loginFollow the instructions and after the authentication is complete, you can check your credentials by running:
hubai auth statusSome Windows users might get the following error when executing the CLI for the first time:
\hubai.ps1 cannot be loaded because running scripts is disabled on
this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1To fix it, open a powershell window as admin, and then executing the following:
Set-ExecutionPolicy RemoteSigned