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 installed
- npm installed
Install the CLI
Clone and install the CLI:
git clone https://github.com/tetherto/cosmicac-cli.git
cd cosmicac-cli
npm installAuthenticate
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.
Verify 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.
What's next?
- Getting Started: GPU Container Job — Create your first container.
- Getting Started: Managed Inference Job — Deploy a model and run inference.
- CLI Commands — Explore all available commands with output examples.