# 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 installIf 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]You can customize the root endpoint by setting the SPACE_ROOT environment variable:
SPACE_ROOT=<custom-api-endpoint> space pushYou 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
go test ./...