### Start server after connecting to template instance Source: https://www.thundercompute.com/docs/cli/operations/creating-instances After connecting to an instance with a template, start the server with commands like `start-ollama` or `start-comfy-ui`. ```bash start-ollama # or start-comfy-ui, etc. ``` -------------------------------- ### Launch interactive creation with tnr create Source: https://www.thundercompute.com/docs/cli/operations/creating-instances Run `tnr create` to start an interactive menu that walks through selecting instance configuration step by step. ```bash tnr create ``` -------------------------------- ### Example: Exposing a web server Source: https://www.thundercompute.com/docs/cli/operations/port-forwarding Command to forward a port for a web server running on port 8080. ```bash tnr ports forward --add 8080 ``` -------------------------------- ### tnr scp upload and download examples Source: https://www.thundercompute.com/docs/cli/operations/file-transfers Examples showing upload (local to remote) and download (remote to local) using instance_id: prefix. Directories are transferred recursively; SSH keys and ~/ expansion are handled automatically. ```bash # Upload: local → remote tnr scp ./data.csv 0:/home/user/ # Download: remote → local tnr scp 0:/home/user/results.csv ./ ``` -------------------------------- ### Install Thunder Compute CLI on Linux Source: https://www.thundercompute.com/docs/cli/quickstart Install the Thunder Compute CLI on Linux using the official installation script. Requires curl and bash. ```bash curl -fsSL https://raw.githubusercontent.com/Thunder-Compute/thunder-cli/main/scripts/install.sh | bash ``` -------------------------------- ### Example forwarded service URL Source: https://www.thundercompute.com/docs/cli/operations/port-forwarding Example URL for an instance with UUID 'abc123' and port 8080. ```text https://abc123-8080.thundercompute.net ``` -------------------------------- ### tnr modify examples Source: https://www.thundercompute.com/docs/cli/operations/modifying-instances Examples of using tnr modify to switch GPU type, scale up vCPUs, increase disk size, and move to 4 GPUs. Note that disk size can only be increased, not decreased. ```bash # Switch to a different GPU tnr modify 0 --gpu a100 # Scale up CPUs tnr modify 0 --vcpus 16 # Increase disk size tnr modify 0 --disk 300 # Move to 4 GPUs tnr modify 0 --num-gpus 4 ``` -------------------------------- ### Connect interactively with tnr connect Source: https://www.thundercompute.com/docs/cli/operations/connecting-to-instances Starts an interactive connection menu to select a running instance when you are unsure which one to use. ```bash tnr connect ``` -------------------------------- ### Authenticate CLI with tnr login Source: https://www.thundercompute.com/docs/cli/operations/authentication Run `tnr login` to start authentication. Your browser opens automatically for OAuth; press `T` during login to enter a token from the console instead. ```bash tnr login ``` -------------------------------- ### Forward ports with flags Source: https://www.thundercompute.com/docs/cli/operations/port-forwarding Commands to add or remove ports using flags. Includes examples for single, multiple, removal, and combined add/remove. ```bash # Forward a single port tnr ports forward --add 8080 # Forward multiple ports tnr ports forward --add 8080,3000,5000 # Remove a forwarded port tnr ports forward --remove 8080 # Add and remove in one command tnr ports forward --add 3000 --remove 8080 ``` -------------------------------- ### Disable auto-refresh with tnr status --no-wait Source: https://www.thundercompute.com/docs/cli/operations/monitoring-instances Use the `--no-wait` flag to get a single snapshot of instance status instead of monitoring for changes. ```bash tnr status --no-wait ``` -------------------------------- ### Create, check, and connect to an instance Source: https://www.thundercompute.com/docs/cli/quickstart Basic workflow for using Thunder Compute: create an instance, check its status, and connect to a running instance. ```bash # Create an instance tnr create # Check on your instance tnr status # Connect to a running instance tnr connect 0 ``` -------------------------------- ### Create a snapshot interactively Source: https://www.thundercompute.com/docs/cli/operations/snapshots Run the interactive menu to create a snapshot. The CLI prompts for instance and name. ```bash tnr snapshot create ``` -------------------------------- ### One-line creation with tnr create flags Source: https://www.thundercompute.com/docs/cli/operations/creating-instances Specify all options in a single command using flags for GPU, number of GPUs, vCPUs, template, and disk size. ```bash tnr create --gpu a6000 --num-gpus 1 --vcpus 8 --template base --disk 100 ``` -------------------------------- ### Create a snapshot with instance ID and name Source: https://www.thundercompute.com/docs/cli/operations/snapshots Specify the instance ID and snapshot name directly. Snapshotting runs in the background, allowing continued use of the instance. Limited to 50 snapshots; instance must be in RUNNING state. ```bash tnr snapshot create --instance-id 0 --name my-environment ``` -------------------------------- ### Connect directly to an instance with tnr connect Source: https://www.thundercompute.com/docs/cli/operations/connecting-to-instances Connects directly to the instance with the given ID. Replace 0 with the ID from tnr status. The CLI sets up SSH access and opens a shell, showing a prompt like ubuntu@thunder-client:~$. ```bash tnr connect 0 ``` -------------------------------- ### List snapshots Source: https://www.thundercompute.com/docs/cli/operations/snapshots View all snapshots with status, size, and creation date. Status values: READY, CREATING, FAILED. ```bash tnr snapshot list ``` -------------------------------- ### Restore from snapshot with tnr create Source: https://www.thundercompute.com/docs/cli/operations/creating-instances Snapshots appear alongside templates in the selection menu. Run `tnr create` and select your snapshot in the 'Templates' step to create an instance with your previously saved state. ```bash tnr create # Select your snapshot in the "Templates" step ``` -------------------------------- ### List instances with tnr status Source: https://www.thundercompute.com/docs/cli/operations/monitoring-instances Run `tnr status` to display a table of all instances with details like Instance ID, Status, IP Address, GPU Type, GPU Count, vCPU Count, RAM, Disk, and Template. By default, it monitors for status changes. ```bash tnr status ``` -------------------------------- ### Authenticate with tnr login Source: https://www.thundercompute.com/docs/cli/quickstart Log in to the Thunder Compute CLI. Opens the browser automatically to complete authentication. ```bash tnr login ``` -------------------------------- ### Check instance status with tnr status --no-wait Source: https://www.thundercompute.com/docs/cli/operations/connecting-to-instances Lists instances without waiting for the status to update. Use the ID column from the output when connecting. ```bash tnr status --no-wait ``` -------------------------------- ### Forward ports interactively Source: https://www.thundercompute.com/docs/cli/operations/port-forwarding Run the command without arguments to use the interactive interface for selecting an instance and entering ports. ```bash tnr ports forward ``` -------------------------------- ### List forwarded ports Source: https://www.thundercompute.com/docs/cli/operations/port-forwarding Lists all forwarded ports across your instances. ```bash tnr ports list ``` -------------------------------- ### Run interactive delete command Source: https://www.thundercompute.com/docs/cli/operations/deleting-instances Run `tnr delete` to list your instances and select one to delete. This command opens an interactive menu where you choose an instance and confirm the deletion. ```bash tnr delete ``` -------------------------------- ### tnr scp basic syntax Source: https://www.thundercompute.com/docs/cli/operations/file-transfers Basic command syntax for transferring files with tnr scp. Prefix a path with instance_id: to indicate it's remote. ```bash tnr scp ``` -------------------------------- ### Delete instance directly by ID Source: https://www.thundercompute.com/docs/cli/operations/deleting-instances Run `tnr delete 0` to delete the instance with ID 0 directly, skipping the interactive menu. This still requires confirmation before deletion. ```bash tnr delete 0 ``` -------------------------------- ### Set TNR_API_TOKEN environment variable for programmatic authentication Source: https://www.thundercompute.com/docs/cli/operations/authentication For scripts and automation, set the `TNR_API_TOKEN` environment variable to authenticate without interactive login. ```bash export TNR_API_TOKEN=your_token_here ``` -------------------------------- ### Forwarded service URL format Source: https://www.thundercompute.com/docs/cli/operations/port-forwarding Shows the URL pattern for accessing a forwarded HTTP service, using the instance UUID and port number. ```text https://-.thundercompute.net ``` -------------------------------- ### Log out and remove stored credentials with tnr logout Source: https://www.thundercompute.com/docs/cli/operations/authentication Run `tnr logout` to remove stored credentials. This deletes the token file from your machine. ```bash tnr logout ``` -------------------------------- ### tnr modify command syntax Source: https://www.thundercompute.com/docs/cli/operations/modifying-instances Shows the basic syntax for the tnr modify command, which takes an instance ID and optional options. ```bash tnr modify [options] ``` -------------------------------- ### Delete a snapshot interactively Source: https://www.thundercompute.com/docs/cli/operations/snapshots Run the interactive selection to delete a snapshot. Deletion is permanent and cannot be undone. ```bash # Interactive selection tnr snapshot delete ``` -------------------------------- ### Delete a snapshot by name Source: https://www.thundercompute.com/docs/cli/operations/snapshots Delete a specific snapshot by name. Deletion is permanent and cannot be undone. ```bash # Delete by name tnr snapshot delete my-environment ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.