# Install and connect the CLI Use `smolcloud` to manage your workspace from a terminal. You can sign in as yourself or give a coding agent its own sign-in. Installing the CLI and signing in work before you attach a worker. ## Install Choose the download for your operating system and processor. On a Mac with Apple silicon, choose **macOS · ARM64**. On an Intel Mac, choose **macOS · x64**. Download CLI **0.1.0-alpha.1** for your computer: - [Linux · x64](/downloads/smolcloud_0.1.0-alpha.1_linux_amd64.tar.gz) - [Linux · ARM64](/downloads/smolcloud_0.1.0-alpha.1_linux_arm64.tar.gz) - [macOS · x64](/downloads/smolcloud_0.1.0-alpha.1_darwin_amd64.tar.gz) - [macOS · ARM64](/downloads/smolcloud_0.1.0-alpha.1_darwin_arm64.tar.gz) - [Windows · x64](/downloads/smolcloud_0.1.0-alpha.1_windows_amd64.tar.gz) [SHA-256 checksums](/downloads/SHA256SUMS) · [Release manifest](/downloads/manifest.json) 1. Check the archive against the published SHA-256 checksum. Replace `FILE` with the archive name. Use `sha256sum FILE` on Linux, `shasum -a 256 FILE` on macOS or `Get-FileHash FILE -Algorithm SHA256` in PowerShell. 2. Extract the archive and put `smolcloud` (`smolcloud.exe` on Windows) in a directory on your `PATH`. 3. In a new terminal, run the command below. It prints the installed version. ```sh smolcloud version --json ``` ## Sign in ### As yourself Open **Settings → CLI** in your workspace. Enter a token name, select **Create token**, then **Copy token**. Run this in your terminal and paste the token at the hidden prompt. ```sh smolcloud login https://management.smolcloud.dev ``` If your workspace uses another management address, use the login command shown in **Settings → CLI**. Your personal token expires after seven days. You can revoke it on the same screen. ### Give an agent its own profile Open a separate terminal for the agent. On Linux or macOS, set its profile path before signing in. Use a separate filename for each agent. ```sh export INNIE_CONFIG_FILE="$HOME/.config/smolcloud/agents/coding-agent.json" smolcloud login https://management.smolcloud.dev --device ``` In PowerShell, set `$env:INNIE_CONFIG_FILE = "$HOME/.config/smolcloud/agents/coding-agent.json"` first, then run the same login command. The CLI prints a link and a short code. An owner or admin opens the link, enters the code and approves the named agent within ten minutes. The CLI saves the credential in the agent’s profile. Start the agent from that terminal so it inherits the profile setting. [Connect a coding agent and choose its permissions](agent-start.md). ### Check your sign-in Run this in the terminal you just signed in from. ```sh smolcloud doctor ``` After the connection checks pass, the CLI prints the signed-in identity. Check the name and `tenantId` (your workspace ID) before creating anything. ## Commands | Task | Command | | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | | Create a project | `smolcloud project NAME` | | Create an app | `smolcloud app PROJECT_ID NAME` | | See what an app may use | `smolcloud capabilities APP_ID` | | Read the app's live guide | `smolcloud guide APP_ID` | | Deploy | `smolcloud deploy APP_ID . --result v1` | | Check deployments | `smolcloud status APP_ID` | | Read build logs | `smolcloud logs DEPLOYMENT_ID build` | | Continue a deployment | `smolcloud resume APP_ID DEPLOYMENT_ID` | | [Call a private app as an agent](#call-a-private-app-as-an-agent) | `smolcloud request APP_ID /path` | | Create a database or bucket | `smolcloud database PROJECT_ID NAME [MEMORY_MIB]`, `smolcloud bucket PROJECT_ID NAME` | | Connect it to an app | `smolcloud database connect APP_ID RESOURCE_ID` or `smolcloud bucket connect APP_ID RESOURCE_ID` | | Start a sandbox | `smolcloud sandbox new [NAME]` | | List starter templates | `smolcloud templates` | Creation commands return an `id`. Use the project ID or app ID in the commands that follow. [Work in a sandbox](sandbox-workbench.md) · [Deploy a private app](builder-guide.md). Database memory sizes are 256, 512, 1024 and 2048 MiB; omitting the size selects 256 MiB. Run `smolcloud database list` to read the database ID, current memory and generation. To resize, run `smolcloud database resize DATABASE_ID MEMORY_MIB EXPECTED_GENERATION`. This briefly restarts the database on its existing volume. The new size must fit the app machine; increase the machine first if needed. ## Call a private app as an agent Use a named agent’s CLI profile with **Can use** access to the app. To open its home page, run: ```sh smolcloud request APP_ID / ``` The command accepts a JSON request body of up to 2 MiB and reads up to 2 MiB of response data. Its 30-second deadline covers both getting the app credential and making the HTTP request. It stops on redirects. If a write times out, check whether the app applied it before trying again. The CLI doesn’t retry it for you.