Skip to main content

csph git connections list

list the account's git connections

🔗 List the account's git connections and the repositories each one can clone.

A git connection is how ComputeSphere signs in to GitHub, GitLab or Bitbucket to clone a service's code. Each row shows the connection's id, its provider, the provider account or organization it signs in as, its status, and how many services build from it.

--repos also lists the repositories each connection can clone (one call to the provider per connection). Pass a connection's id to csph deployments update --git-connection-id, or leave that flag out and csph picks the one connection that can clone the --git-url repository.

Connect a new provider account in the console: Settings, Accounts, your account, Connections.

Usage​

csph git connections list [flags]

Aliases​

git connections list, git connections ls, git connection list, git connection ls, git conn list, git conn ls

Options​

Command Specific​

--account <string>
account ID
--repos
also list the repositories each connection can clone

Formatting​

For more information about formatting options, see Formatting.

-o, --output <string>

output format: [table|plain|csv|json|yaml]

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

# the account's git connections
> csph git connections list

# with the repositories each can clone
> csph git connections list --repos

# the repositories one connection can clone, narrowed by name
> csph git connections repos <connection-id> --search api

# which connection can clone a repository?
> csph git connections list --repos -o json --jq '[.[] | select(.repositories | index("my-org/my-api")) | .id]'

See also​