Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

deta/space-cli

Repository files navigation

Space CLI

Running the CLI

# Run the CLI
go run main.go [command]

# Build the space binary, then run it
go build && ./space [command]

# Install the space binary to your $GOPATH/bin
go install

If you want to test the CLI against a variety of projects, you can use the deta/starters repo:

git clone https://github.com/deta/starters
go run main.go -d ./starters/python-app [command]

Customizing the api endpoint

You can customize the root endpoint by setting the SPACE_ROOT environment variable:

SPACE_ROOT=<custom-api-endpoint> space push

You can also set the SPACE_ROOT environment variable in a .env file in the root of your project, and load it with a tool like direnv.

Other configuration options can be set in the .env file as well:

  • SPACE_ACCESS_TOKEN

Running unit tests

go test ./...