Skip to Content

PairSpaces

DocsBlog

PairSpaces

Quickstart

Get Up and Running with PairSpaces

What You Will Do

This is a rapid onboarding guide to PairSpaces. You will create a Space and work with someone from your Space.

This guide does not require a PairSpaces account.

Setting Up

Download the PairSpaces CLI. Choose the version of the PairSpaces CLI for your operating system below.


> curl -fsSL https://get.pairspaces.io/install.sh | bash

> pair version

3.0.0 (Latest)

Change to the directory that you want to work together from. PairSpaces will mount this directory in a Docker container that creates a sandbox that limits your team to the current directory.


bob@macbook my_code_project > pair with alice@pairspaces.com

This command will create a sandbox around your current directory that alice@pairspaces.com will be able to access. You can delete the sandbox at any time.

Do you want to pair with alice@pairspaces.com?

Only 'yes' will be accepted to approve.

Enter yes to create your Space.

Local Spaces require Docker to be running. When you run the command, the PairSpaces CLI checks if Docker is running.


bob@macbook my_code_project > pair with alice@pairspaces.com

Docker is not running. Please start Docker and try again.

If Docker is already running you will see the following output.


bob@macbook my_code_project > pair with alice@pairspaces.com

Use 'pair with CODE' to join the Space.

Unable to find image 'pairspaces/local-space-image:latest' locally
build: Pulling from pairspaces/local-space-image
3b06f1cc8833: Pull complete 
234a742b1fc9: Pull complete 
a4e455379946: Pull complete 
963d0ca7db33: Pull complete 
e21d21932491: Pull complete 
ca02ec9fd3e5: Download complete 
Digest: sha256:2885d70fcc0d16d17ade85331056882b7663cb8f2afe5032d263d0226eb6c84f
Status: Downloaded newer image for pairspaces/local-space-image:build

Your team can connect to your Space now. Use Ctrl-C to close the connection.

The PairSpaces CLI downloads a publicly-available Docker image from DockerHub. The running container mounts your current directory using the same path in the container.

What Your Team Does

Download the PairSpaces CLI.


> curl -fsSL https://get.pairspaces.io/install.sh | bash

> pair version

3.0.0 (Latest)

Use the CODE shared with you to work together.


> pair with CODE

[root@7b02b5dbf2e1 my_code_project]#

After doing this, you can also connect using your IDE. We're going to use VSCode here, but the steps are similar for other IDEs.

Open VSCode's command panel and click on the command Remote-SSH: Connect to host....

access remote-ssh command

A list of configured SSH profiles will appear. Select the SSH profile identified by the CODE.

You will see an empty VSCode workspace. Click on Open Folder and navigate to the path shared with you. VSCode will prompt you to trust the workspace's folders.

configure vscode trust settings

Check the checkbox to trust all files in the parent folder and click Yes, I trust the authors.

Next Steps

You can work together in this Space for an hour before the Space closes automatically. To sign up for PairSpaces, visit PairSpaces.

To learn more about Spaces and how they work, see Spaces.