{"id":13638026,"url":"https://github.com/statamic/cli","last_synced_at":"2025-05-16T16:03:42.416Z","repository":{"id":37832391,"uuid":"95399142","full_name":"statamic/cli","owner":"statamic","description":"Install and manage your Statamic projects from the command line.","archived":false,"fork":false,"pushed_at":"2025-02-21T18:58:15.000Z","size":119,"stargazers_count":72,"open_issues_count":8,"forks_count":20,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-16T16:03:21.075Z","etag":null,"topics":["cli","installer","statamic"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statamic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-06-26T02:08:08.000Z","updated_at":"2025-04-13T10:53:07.000Z","dependencies_parsed_at":"2024-04-02T13:52:09.780Z","dependency_job_id":"c2086f50-2a01-4f65-b82c-ece215f71639","html_url":"https://github.com/statamic/cli","commit_stats":{"total_commits":141,"total_committers":14,"mean_commits":"10.071428571428571","dds":0.6099290780141844,"last_synced_commit":"6b8916978ec93b2993abe90d66c3b5ea0b628b55"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statamic","download_url":"https://codeload.github.com/statamic/cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254564113,"owners_count":22092120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","installer","statamic"],"created_at":"2024-08-02T01:00:38.786Z","updated_at":"2025-05-16T16:03:42.354Z","avatar_url":"https://github.com/statamic.png","language":"PHP","readme":"# Statamic CLI Tool\n\n🌴 Install and manage your **Statamic** projects from the command line.\n\n- [Installing the CLI tool](#installing-the-cli-tool)\n- [Using the CLI tool](#using-the-cli-tool)\n    - [Installing Statamic](#installing-statamic)\n    - [Checking Statamic versions](#checking-statamic-versions)\n    - [Updating Statamic](#updating-statamic)\n\n## Installing the CLI tool\n\n```\ncomposer global require statamic/cli\n```\n\nMake sure to place Composer's system-wide vendor bin directory in your `$PATH` so the `statamic` executable can be located by your system. [Here's how](https://statamic.dev/troubleshooting/command-not-found-statamic).\n\nOnce installed, you should be able to run `statamic {command name}` from within any directory.\n\n### GitHub authentication\n\nWhen you install starter kits, the CLI might present you with a warning that the GitHub API limit is reached. [Generate a Personal access token](https://github.com/settings/tokens/new) and paste it in your terminal with this command so Composer will save it for future use:\n\n```bash\ncomposer config --global --auth github-oauth.github.com [your_token_here]\n```\n\nRead more on this in the [Composer Docs](https://getcomposer.org/doc/articles/authentication-for-private-packages.md).\n\n## Updating the CLI tool\n\n```\ncomposer global update statamic/cli\n```\n\nRun this command to update the CLI tool to the most recent published version. If there's been a major version release, you may need to run `require` instead of update.\n\n## Using the CLI tool\n\n### Installing Statamic\n\nYou may create a new Statamic site with the `new` command:\n\n```\nstatamic new my-site\n```\n\nThis will present you with a list of supported starter kits to select from.  Upon selection, the latest version will be downloaded and installed into the `my-site` directory.\n\nYou may also pass an explicit starter kit repo if you wish to skip the selection prompt:\n\n```\nstatamic new my-site statamic/starter-kit-cool-writings\n```\n\n### Checking Statamic versions\n\nFrom within an existing Statamic project root directory, you may run the following command to quickly find out which version is being used.\n\n```\nstatamic version\n```\n\n### Updating Statamic\n\nFrom within an existing Statamic project root directory, you may use the following command to update to the latest version.\n\n```\nstatamic update\n```\n\nThis is just syntactic sugar for the `composer update statamic/cms --with-dependencies` command.\n","funding_links":[],"categories":["Dev Tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatamic%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Fcli/lists"}