{"id":13579150,"url":"https://github.com/platformsh/legacy-cli","last_synced_at":"2026-03-02T19:37:08.233Z","repository":{"id":13994402,"uuid":"16695539","full_name":"platformsh/legacy-cli","owner":"platformsh","description":"This is the legacy version of Platform.sh's command-line interface. The new version is at: https://github.com/platformsh/cli","archived":false,"fork":false,"pushed_at":"2026-01-28T23:28:04.000Z","size":10865,"stargazers_count":225,"open_issues_count":115,"forks_count":129,"subscribers_count":23,"default_branch":"main","last_synced_at":"2026-01-29T06:32:14.696Z","etag":null,"topics":["cli","cloud","command-line-tool","paas","php","platform","symfony-console"],"latest_commit_sha":null,"homepage":"https://docs.platform.sh/administration/cli.html","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/platformsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-02-10T13:07:58.000Z","updated_at":"2026-01-28T15:36:45.000Z","dependencies_parsed_at":"2025-12-30T01:08:49.727Z","dependency_job_id":null,"html_url":"https://github.com/platformsh/legacy-cli","commit_stats":{"total_commits":3923,"total_committers":64,"mean_commits":61.296875,"dds":0.4042824369105277,"last_synced_commit":"8c73e5d50f44dbcd5b911a876639d749714068b6"},"previous_names":["platformsh/platformsh-cli"],"tags_count":455,"template":false,"template_full_name":null,"purl":"pkg:github/platformsh/legacy-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platformsh%2Flegacy-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platformsh%2Flegacy-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platformsh%2Flegacy-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platformsh%2Flegacy-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/platformsh","download_url":"https://codeload.github.com/platformsh/legacy-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platformsh%2Flegacy-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30016537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T17:00:27.440Z","status":"ssl_error","status_checked_at":"2026-03-02T17:00:03.402Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cloud","command-line-tool","paas","php","platform","symfony-console"],"created_at":"2024-08-01T15:01:36.953Z","updated_at":"2026-03-02T19:37:08.179Z","avatar_url":"https://github.com/platformsh.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"The **Legacy** Platform.sh CLI is the legacy version of the command-line interface for [Platform.sh](https://platform.sh). For the **current Platform.sh CLI**, check [this repository](https://github.com/platformsh/cli).\n\n## Install\n\nTo install the CLI, use either [Homebrew](https://brew.sh/) (on Linux, macOS, or the Windows Subsystem for Linux) or [Scoop](https://scoop.sh/) (on Windows):\n\n### HomeBrew\n\n```console\nbrew install platformsh/tap/platformsh-cli\n```\n\n### Scoop\n\n```console\nscoop bucket add platformsh https://github.com/platformsh/homebrew-tap.git\nscoop install platform\n```\n\n### Manual installation\n\nFor manual installation, you can also [download the latest binaries](https://github.com/platformsh/cli/releases/latest).\n\n### Legacy installer\n\n_This installation method is considered legacy and is discouraged, use one of the methods above instead. Starting with version 5.x, this installation method will not be supported._\n\nIn order to use the Legacy installer, you need to have an operating system supported by PHP (Linux, OS X, or Windows) and PHP 5.5.9 or higher, with the following extensions: `curl`, `json`, `pcre`, and `phar`.\n\nRun this command to install the CLI using the legacy installer, given that you have PHP already installed:\n\n```console\ncurl -sS https://platform.sh/cli/installer | php\n```\n\nIn some Windows terminals you may need `php.exe` instead of `php`.\n\n## Upgrade\n\nUpgrade using the same tool:\n\n### HomeBrew\n\n```console\nbrew upgrade platformsh-cli\n```\n\n### Scoop\n\n```console\nscoop update platform\n```\n\n## Usage\n\nYou can run the Platform.sh CLI in your shell by typing `platform`.\n\n    platform\n\nUse the 'list' command to get a list of available options and commands:\n\n    platform list\n\n## Authentication\n\nThere are two ways to authenticate:\n\n1. The recommended way is `platform login`, which lets you log in via a web browser, including via third-party providers such as Google, GitHub, GitLab and Bitbucket.\n\n2. If using a browser is not possible, use an [API token](https://docs.platform.sh/gettingstarted/cli/api-tokens.html).\n\n    An interactive command is available for this: `platform auth:api-token-login`\n\n    For non-interactive uses such as scripts or CI systems, set the API token in an environment variable named `PLATFORMSH_CLI_TOKEN`. This can be insecure if not handled properly, although it is appropriate for systems such as CircleCI, Jenkins and GitLab.\n\n    *_Warning_*: An API token can act as the account that created it, with no restrictions. Use a separate machine account to limit the token's access.\n\n## Customization\n\nYou can configure the CLI via the user configuration file `~/.platformsh/config.yaml`.\n\nThe possible keys that can be overridden are in the [config-defaults.yaml](/config-defaults.yaml) and [config.yaml](/config.yaml) files.\n\nOther customization is available via environment variables, including:\n\n* `PLATFORMSH_CLI_DEBUG`: set to 1 to enable debugging. _Warning_: this could print HTTP request information in the terminal, including sensitive access tokens.\n* `PLATFORMSH_CLI_DEFAULT_TIMEOUT`: the timeout (in seconds) for most individual API requests. The default is 30.\n* `PLATFORMSH_CLI_DISABLE_CACHE`: set to 1 to disable caching\n* `PLATFORMSH_CLI_HOME`: override the home directory (inside which the .platformsh directory is stored)\n* `PLATFORMSH_CLI_NO_COLOR`: set to 1 to disable colors in output\n* `PLATFORMSH_CLI_NO_INTERACTION`: set to 1 to disable interaction (useful for scripting). Equivalent to the `--no-interaction` command-line option. _Warning_: this will bypass any confirmation questions.\n* `PLATFORMSH_CLI_SESSION_ID`: change user session (default 'default'). The `session:switch` command (beta) is now available as an alternative.\n* `PLATFORMSH_CLI_SHELL_CONFIG_FILE`: specify the shell configuration file that the installer should write to (as an absolute path). If not set, a file such as `~/.bashrc` will be chosen automatically. Set this to an empty string to disable writing to a shell config file.\n* `PLATFORMSH_CLI_TOKEN`: an API token. *_Warning_*: An API token can act as the account that created it, with no restrictions. Use a separate machine account to limit the token's access. Additionally, storing a secret in an environment variable can be insecure. It may be better to use the `auth:api-token-login` command. The environment variable is preferable on CI systems like Jenkins and GitLab.\n* `PLATFORMSH_CLI_UPDATES_CHECK`: set to 0 to disable the automatic updates check\n* `PLATFORMSH_CLI_SSH_AUTO_LOAD_CERT`: set to 0 to disable automatic loading of an SSH certificate when running login or SSH commands\n* `PLATFORMSH_CLI_REPORT_DEPRECATIONS`: set to 1 to enable PHP deprecation notices (suppressed by default). They will only be displayed in debug mode (`-vvv`).\n* `CLICOLOR_FORCE`: set to 1 or 0 to force colorized output on or off, respectively\n* `http_proxy` or `https_proxy`: specify a proxy for connecting to Platform.sh\n\n## Known issues\n\n### Caching\n\nThe CLI caches details of your projects and their environments, and some other\ninformation. These caches could become out-of-date. You can clear caches with\nthe command `platform clear-cache` (or `platform cc` for short).\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for how to contribute to the CLI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatformsh%2Flegacy-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplatformsh%2Flegacy-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatformsh%2Flegacy-cli/lists"}