GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - adapt/platform-cli

BranchesTags
Open more actions menu

Latest commit

 

History

65 Commits
65 Commits

Folders and files

NameName
Last commit message
Last commit date
.cargo
.cargo
 
 
.github/workflows
.github/workflows
 
 
docs
docs
 
 
scripts
scripts
 
 
skills/adapt
skills/adapt
 
 
src
src
 
 
tests
tests
 
 
xtask
xtask
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
runtime-lock.json
runtime-lock.json
 
 

Repository files navigation

Adapt Platform CLI

adapt is the command-line client for Adapt Platform. It manages sandboxes, runs commands, transfers files, and calls connected tools.

Install

On macOS or Linux, run:

curl -fsSL https://platform.adapt.com/install.sh | sh

The installer verifies the SHA-256 checksum and puts adapt in ~/.local/bin. Add ~/.local/bin to your PATH. Restart your shell.

To update the CLI, run the same install command.

To change the install directory, set ADAPT_INSTALL_DIR on the sh command.

Sign in

Start the login process:

adapt auth login

The CLI shows a code and opens an approval page in your browser.

  1. Sign in to Adapt Platform in the browser.
  2. Make sure that the browser code matches the CLI code.
  3. Approve access.
  4. If the CLI asks for an organization, select one.

Show your account and selected organization:

adapt whoami

If the machine has no browser, use adapt auth login --no-browser. Open the displayed link on another machine.

Profiles

A profile stores an API URL, credentials, and a selected organization. The default profile is default.

Sign in to another profile with --profile:

adapt --profile staging auth login --api-url https://platform.adaptstaging.com

To use a profile for every command in your shell, set ADAPT_PROFILE:

export ADAPT_PROFILE=staging
adapt whoami

The --profile option overrides ADAPT_PROFILE. List saved profiles with adapt profiles. For more information, see the CLI reference.

Use a temporary sandbox

Open a shell:

adapt sandbox sh

Or run a command:

adapt sandbox sh --image ubuntu:24.04 -- uname -a

The CLI creates a sandbox and waits for it to run. It deletes the sandbox and its disk when the shell or command ends.

Cloud sandboxes expire after one hour by default. Use --ttl SECONDS to change this time. Use --no-expiry to disable automatic expiry.

Run sandboxes locally

Local sandboxes run on these systems:

  • Apple Silicon Macs.
  • x86-64 Linux with KVM.

On first use, the CLI downloads and verifies the required local runtime. Local commands do not need a Platform login.

Run a command in a temporary local sandbox:

adapt sandbox sh --local --image ubuntu:24.04 -- uname -m

Open a shell in a temporary local sandbox:

adapt sandbox sh --local

The CLI starts the local runtime automatically. It deletes the temporary sandbox when the shell or command ends.

Create a local sandbox for later commands:

adapt --local sandbox create --image ubuntu:24.04 --wait

This sandbox stays available until you stop or delete it. Local sandboxes do not expire automatically. In the following commands, replace SANDBOX_ID with the ID from the response:

adapt --local sandbox list
adapt --local exec SANDBOX_ID -- uname -m
adapt --local sandbox delete SANDBOX_ID

Commands use Adapt Platform by default. Use --cloud to select Adapt Platform explicitly.

To download the local runtime before use, run adapt runtime install. To show the required version and installation path, run adapt runtime status. To use a custom runtime, set ADAPT_LOCAL_RUNTIME=/path/to/runtime/bin. You can also select this directory with --runtime-dir. See local sandbox options and limitations.

Create a sandbox

Create a sandbox that stays available after each command:

adapt sandbox create --image ubuntu:24.04 --cpu 2 --memory 2048 --wait

In the examples below, replace SANDBOX_ID with the ID from the response.

Run a command in the sandbox:

adapt exec SANDBOX_ID -- uname -a

Open an interactive shell:

adapt exec SANDBOX_ID -it -- /bin/sh

Press Ctrl-] to disconnect from this shell. The remote execution continues after you disconnect.

List all sandboxes:

adapt sandbox list --all

Delete the sandbox when you no longer need it:

adapt sandbox delete SANDBOX_ID

Cloud resource commands accept a full ID or a unique ID prefix. Local sandbox commands require full IDs.

Transfer files

Upload a file to a sandbox:

adapt files put SANDBOX_ID ./input.txt /tmp/input.txt

Download a file from a sandbox:

adapt files get SANDBOX_ID /tmp/output.txt ./output.txt

Call connected tools

Find tools on your connected Model Context Protocol (MCP) services:

adapt connections search "files"

In the following commands, replace CONNECTION_ID and TOOL_NAME with values from the search results. Show the tool's input schema:

adapt connections describe CONNECTION_ID TOOL_NAME

Put the required arguments in arguments.json. Then call the tool:

adapt connections call CONNECTION_ID TOOL_NAME --arguments @arguments.json

Install the skill

Install the Adapt skill for Codex, Claude Code, Pi, and OpenCode:

adapt skill install

To install the skill for one agent, add the agent name. For example:

adapt skill install codex

Show the skill text:

adapt skill show

Help

Show the commands and their options:

adapt --help
adapt sandbox --help
adapt sandbox create --help

Build and test

To install from this repository, use a current stable Rust toolchain:

cargo install --path . --locked

Run the development checks:

cargo fmt --all -- --check
cargo clippy --locked --all-targets -- -D warnings
cargo test --locked
cargo build --locked --release
python3 -m unittest discover -s scripts -p '*_test.py'

License

MIT License.

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

5 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.