Installation
Install and configure the CosmicAC CLI to interact with CosmicAC services from your terminal. The CLI lets you manage jobs, access containers, and run inference.
Prerequisites
- Node.js v 18+
- npm
- SSH key configured with GitHub and loaded in your terminal
Install the CLI
Clone and install the CLI:
git clone git@github.com:tetherto/cosmicac-cli.git
cd cosmicac-cli
npm installgit clone https://github.com/tetherto/cosmicac-cli.git
# When prompted, use your GitHub username and Personal Access Token (PAT) as password
cd cosmicac-cli
npm installVerify installation
Run the following command to verify the CLI is installed correctly:
npx cosmicac --helpIf you see the list of available commands, you're all set.
Authenticate
Log in to your CosmicAC account:
npx cosmicac loginThis opens your browser for authentication. If the browser doesn't open automatically, copy the URL from the terminal and paste it into your browser. Complete the login to continue.