CosmicAC Logo

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
Show me SSH details:
ssh-add ~/.ssh/id_ed25519

Learn more about connecting to GitHub with SSH.

Install the CLI

Clone and install the CLI:

git clone git@github.com:tetherto/cosmicac-cli.git
cd cosmicac-cli
npm install
git 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 install

Verify installation

Run the following command to verify the CLI is installed correctly:

npx cosmicac --help

If you see the list of available commands, you're all set.

Authenticate

Log in to your CosmicAC account:

npx cosmicac login

This 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.

Next steps

On this page