You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# Platform.sh CLI
1
+
# Upsun CLI
2
2
3
-
The **Platform.sh CLI** is the official command-line interface for [Platform.sh](https://platform.sh). Use this tool to interact with your [Platform.sh](https://platform.sh) projects, and to build them locally for development purposes.
3
+
The **Upsun CLI** is the official command-line interface for [Upsun](https://upsun.com) (formerly Platform.sh).
4
4
5
-
This repository hosts the source code and releases of the new CLI.
5
+
This repository hosts the source code and releases of the CLI.
6
6
7
7
> This product includes PHP software, freely available from [the PHP website](https://www.php.net/software)
The New Platform.sh CLI is built with backwards compatibility in mind. This is why we've embedded PHP, so that all Legacy PHP CLI commands can be executed in the exact same way, making sure that nothing breaks when you switch to it.
187
-
188
186
## Building binaries, snapshots and releases
189
187
190
188
Build a single binary
191
189
192
190
```console
193
-
# Build a single binary for Platform.sh
194
191
make single
195
-
# Build a single binary for Upsun
196
-
make single GORELEASER_ID=upsun
197
192
```
198
193
199
194
Build a snapshot
200
195
201
196
```console
202
-
# Build and snapshot for Platform.sh and Upsun
203
197
make snapshot
204
-
# Build a snapshot for a vendor
198
+
```
199
+
200
+
Build a snapshot for a vendor
201
+
202
+
```console
205
203
# Download the config file at internal/config/embedded-config.yaml
206
204
make vendor-snapshot VENDOR_NAME='Upsun staging' VENDOR_BINARY='upsunstg'
207
205
```
@@ -212,7 +210,7 @@ Create a release
212
210
# First, create a new tag, if not already on a Git tag
Copy file name to clipboardExpand all lines: internal/config/schema.go
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,11 @@ type Config struct {
26
26
27
27
Applicationstruct {
28
28
// Fields required for both the PHP and Go applications.
29
-
Namestring`validate:"required"`// e.g. "Platform.sh CLI"
30
-
EnvPrefixstring`validate:"required" yaml:"env_prefix"`// e.g. "PLATFORMSH_CLI_"
31
-
Executablestring`validate:"required"`// e.g. "platform"
32
-
Slugstring`validate:"required,ascii"`// e.g. "platformsh-cli"
33
-
UserConfigDirstring`validate:"required" yaml:"user_config_dir"`// e.g. ".platformsh"
29
+
Namestring`validate:"required"`// e.g. "Upsun CLI"
30
+
EnvPrefixstring`validate:"required" yaml:"env_prefix"`// e.g. "UPSUN_CLI_"
31
+
Executablestring`validate:"required"`// e.g. "upsun"
32
+
Slugstring`validate:"required,ascii"`// e.g. "upsun-cli"
33
+
UserConfigDirstring`validate:"required" yaml:"user_config_dir"`// e.g. ".upsun"
34
34
UserStateFilestring`validate:"omitempty" yaml:"user_state_file,omitempty"`// defaults to "state.json"
35
35
WritableUserDirstring`validate:"omitempty" yaml:"writable_user_dir,omitempty"`// defaults to UserConfigDir
36
36
TempSubDirstring`validate:"omitempty" yaml:"tmp_sub_dir,omitempty"`// defaults to Slug+"-tmp"
@@ -42,32 +42,32 @@ type Config struct {
42
42
43
43
// Fields only needed by the PHP (legacy) CLI, at least for now.
44
44
APIstruct {
45
-
BaseURLstring`validate:"required,url" yaml:"base_url"`// e.g. "https://api.platform.sh"
46
-
AuthURLstring`validate:"omitempty,url" yaml:"auth_url,omitempty"`// e.g. "https://auth.api.platform.sh"
45
+
BaseURLstring`validate:"required,url" yaml:"base_url"`// e.g. "https://api.upsun.com"
46
+
AuthURLstring`validate:"omitempty,url" yaml:"auth_url,omitempty"`// e.g. "https://auth.upsun.com"
47
47
48
48
UserAgentstring`validate:"omitempty" yaml:"user_agent,omitempty"`// a template - see UserAgent method
49
49
SessionIDstring`validate:"omitempty,ascii" yaml:"session_id,omitempty"`// the ID for the authentication session - defaults to "default"
50
50
51
51
OAuth2ClientIDstring`validate:"omitempty" yaml:"oauth2_client_id,omitempty"`// e.g. "upsun-cli"
52
-
OAuth2AuthorizeURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_auth_url,omitempty"`// e.g. "https://auth.api.platform.sh/oauth2/authorize"
53
-
OAuth2RevokeURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_revoke_url,omitempty"`// e.g. "https://auth.api.platform.sh/oauth2/revoke"
54
-
OAuth2TokenURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_token_url,omitempty"`// e.g. "https://auth.api.platform.sh/oauth2/token"
55
-
CertifierURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"certifier_url,omitempty"`// e.g. "https://ssh.api.platform.sh"
52
+
OAuth2AuthorizeURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_auth_url,omitempty"`// e.g. "https://auth.upsun.com/oauth2/authorize"
53
+
OAuth2RevokeURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_revoke_url,omitempty"`// e.g. "https://auth.upsun.com/oauth2/revoke"
54
+
OAuth2TokenURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"oauth2_token_url,omitempty"`// e.g. "https://auth.upsun.com/oauth2/token"
55
+
CertifierURLstring`validate:"required_without=AuthURL,omitempty,url" yaml:"certifier_url,omitempty"`// No longer used
56
56
57
57
AIServiceURLstring`validate:"omitempty,url" yaml:"ai_url,omitempty"`// The AI service URL, e.g. "https://ai.upsun.com".
58
58
EnableOrganizationsbool`validate:"omitempty" yaml:"organizations,omitempty"`// Whether the "organizations" feature is enabled.
59
59
} `validate:"required"`
60
60
Detectionstruct {
61
-
GitRemoteNamestring`validate:"required" yaml:"git_remote_name"`// e.g. "platform"
62
-
SiteDomains []string`validate:"required" yaml:"site_domains"`// e.g. ["platformsh.site", "tst.site"]
61
+
GitRemoteNamestring`validate:"required" yaml:"git_remote_name"`// e.g. "upsun"
62
+
SiteDomains []string`validate:"required" yaml:"site_domains"`// e.g. ["upsunapp.com", "upsun.app"]
63
63
} `validate:"required"`
64
64
Servicestruct {
65
-
Namestring`validate:"required"`// e.g. "Platform.sh"
65
+
Namestring`validate:"required"`// e.g. "Upsun"
66
66
EnvPrefixstring`validate:"required" yaml:"env_prefix"`// e.g. "PLATFORM_"
67
67
ProjectConfigDirstring`validate:"required" yaml:"project_config_dir"`// e.g. ".platform"
0 commit comments