{"id":13995422,"url":"https://github.com/SvenTiigi/SwiftPlaygroundsCLI","last_synced_at":"2025-07-22T21:33:04.769Z","repository":{"id":110849901,"uuid":"239967725","full_name":"SvenTiigi/SwiftPlaygroundsCLI","owner":"SvenTiigi","description":"Easily generate Swift Playgrounds from your command line 👨‍💻","archived":true,"fork":false,"pushed_at":"2020-06-17T07:57:30.000Z","size":1008,"stargazers_count":112,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-29T17:38:35.888Z","etag":null,"topics":["brew","cli","playgroundbook","playgrounds","script","swift","swiftplaygrounds","xcode"],"latest_commit_sha":null,"homepage":"https://sventiigi.github.io/SwiftPlaygroundsCLI/","language":"Swift","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/SvenTiigi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://www.paypal.me/SvenTiigi"]}},"created_at":"2020-02-12T09:01:34.000Z","updated_at":"2023-09-16T14:58:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bcef7dd-89b1-4e10-8b29-f5a89140a3b7","html_url":"https://github.com/SvenTiigi/SwiftPlaygroundsCLI","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/SvenTiigi/SwiftPlaygroundsCLI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvenTiigi%2FSwiftPlaygroundsCLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvenTiigi%2FSwiftPlaygroundsCLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvenTiigi%2FSwiftPlaygroundsCLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvenTiigi%2FSwiftPlaygroundsCLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SvenTiigi","download_url":"https://codeload.github.com/SvenTiigi/SwiftPlaygroundsCLI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvenTiigi%2FSwiftPlaygroundsCLI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266578638,"owners_count":23951148,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["brew","cli","playgroundbook","playgrounds","script","swift","swiftplaygrounds","xcode"],"created_at":"2024-08-09T14:03:23.948Z","updated_at":"2025-07-22T21:33:04.471Z","avatar_url":"https://github.com/SvenTiigi.png","language":"Swift","funding_links":["https://www.paypal.me/SvenTiigi"],"categories":["Swift"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n   \u003cimg width=\"800\" src=\"https://raw.githubusercontent.com/SvenTiigi/SwiftPlaygroundsCLI/gh-pages/readme-assets/SwiftPlaygroundsCLI.png\" alt=\"SwiftPlaygroundsCLI Header Logo\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://developer.apple.com/swift/\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Swift-5.1-orange.svg?style=flat\" alt=\"Swift 5.1\"\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://github.com/SvenTiigi/SwiftPlaygroundsCLI/actions?query=workflow%3ACI\"\u003e\n      \u003cimg src=\"https://github.com/SvenTiigi/SwiftPlaygroundsCLI/workflows/CI/badge.svg\" alt=\"CI Status\"\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://github.com/SvenTiigi/SwiftPlaygroundsCLI/releases\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/release/SvenTiigi/SwiftPlaygroundsCLI.svg\" alt=\"Version\"\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://sventiigi.github.io/SwiftPlaygroundsCLI\"\u003e\n      \u003cimg src=\"https://github.com/SvenTiigi/SwiftPlaygroundsCLI/blob/gh-pages/badge.svg\" alt=\"Documentation\"\u003e\n   \u003c/a\u003e\n   \u003cbr/\u003e\n   \u003ca href=\"https://github.com/yonaskolb/Mint\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Mint-compatible-brightgreen.svg\" alt=\"Mint\"\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://brew.sh\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Homebrew-compatible-brightgreen.svg\" alt=\"brew\"\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://twitter.com/SvenTiigi/\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Twitter-@SvenTiigi-blue.svg?style=flat\" alt=\"Twitter\"\u003e\n   \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr/\u003e\n\n\u003cp align=\"center\"\u003e\n   Easily generate Swift Playgrounds from your command line\n   \u003cbr/\u003e\n   for the new \u003ca href=\"https://apps.apple.com/de/app/swift-playgrounds/id1496833156?mt=12\"\u003ePlaygrounds\u003c/a\u003e App on macOS 👨‍💻\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003cimg src=\"https://raw.githubusercontent.com/SvenTiigi/SwiftPlaygroundsCLI/gh-pages/readme-assets/Demo.png\" width=\"90%\" alt=\"Demo\"\u003e\n\u003c/p\u003e\n\n## Features\n\n- [x] Easily generate and instantly open Swift Playgrounds\n- [x] Generate Playground with SwiftUI template\n- [x] Open code from GitHub in a Swift Playground\n\n## Installation\n\n\u003e Before installing the SwiftPlaygroundsCLI please make sure you have downloaded the [`Playgrounds.app`](https://apps.apple.com/app/swift-playgrounds/id908519492) from the Mac App Store.\n\n### Mint 🌱\n\n[Mint](https://github.com/yonaskolb/Mint) is a package manager that installs and runs Swift command line tool packages.\n\n```bash\n$ mint install SvenTiigi/SwiftPlaygroundsCLI\n```\n\n### Homebrew 🍺\n\n[Homebrew](https://brew.sh/) is a free and open-source software package management system that simplifies the installation of software on Apple's macOS operating system.\n\n```bash\n$ brew tap SvenTiigi/SwiftPlaygroundsCLI\n$ brew install swiftplaygroundscli\n```\n\n## Usage 👨‍💻\n\nTo generate a new Swift Playground simply run:\n\n```bash\n$ swiftplayground new\n```\n\nIf you wish to specify a name for the Playground run:\n\n```bash\n$ swiftplayground new MyAwesomePlayground\n```\n\nGenerate a Playground from your clipboard content via:\n\n```bash\n$ swiftplayground new --clipboard\n```\n\nTo generate a Playground with a SwiftUI template run:\n\n```bash\n$ swiftplayground new --view\n```\n\n\u003cp align=\"center\"\u003e\n   \u003cimg src=\"https://raw.githubusercontent.com/SvenTiigi/SwiftPlaygroundsCLI/gh-pages/readme-assets/ViewOptionDemo.png\" alt=\"View Option Demo\"\u003e\n\u003c/p\u003e\n\nA Playground with contents from a GitHub URL can be generated via:\n\n```bash\n$ swiftplayground new --url https://gist.github.com/SvenTiigi/7eae5e55edd9be41211470fcbd937285\n```\n\n\u003cp align=\"center\"\u003e\n   \u003cimg src=\"https://raw.githubusercontent.com/SvenTiigi/SwiftPlaygroundsCLI/gh-pages/readme-assets/RemoteOptionDemo.png\" alt=\"Remote Option Demo\"\u003e\n\u003c/p\u003e\n\n## Arguments\n\nA list of the available arguments that are supported by the SwiftPlaygroundsCLI.\n\n### new command\n\n| Long parameter | Short parameter | Description\n| ----------- | ----------- | -------------- |\n| `--clipboard` | `-c` | Generate a Playground from the current Clipboard content |\n| `--silent` | `-s` | Generate a Playground without opening the Playgrounds application |\n| `--url` | `-u` | Generate a Playground with contents from a URL |\n| `--view` | `-v` | Generate a Playground with a SwiftUI template |\n\n## Featured on\n\n* [iOS Dev Weekly](https://iosdevweekly.com/issues/443)\n* [Swift Weekly](http://digest.swiftweekly.com/issues/swift-weekly-issue-181-226438)\n* [iOS Goodies](https://ios-goodies.com/post/190933912346/week-322)\n\n## Contributing\nContributions are very welcome 🙌 🤓\n\n## Credits\nSwiftPlaygroundsCLI is inspired by [`Playground`](https://github.com/JohnSundell/Playground) from [JohnSundell](https://twitter.com/johnsundell)\n\n## License\n\n```\nSwiftPlaygroundsCLI\nCopyright (c) 2020 Sven Tiigi \u003csven.tiigi@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSvenTiigi%2FSwiftPlaygroundsCLI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSvenTiigi%2FSwiftPlaygroundsCLI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSvenTiigi%2FSwiftPlaygroundsCLI/lists"}