Download the PHP package innocode-digital/wp-cli-scaffold-theme-command without Composer

On this page you can find all versions of the php package innocode-digital/wp-cli-scaffold-theme-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-cli-scaffold-theme-command

innocode-digital/wp-cli-scaffold-theme-command

Quick links: Contributing

Using

This package implements the following command:

wp scaffold theme

Generates starter code for a theme based on Innocode theme skeleton.

wp scaffold theme <slug> [--activate] [--enable-network] [--name=<title>] [--author=<full-name>] [--author_uri=<uri>] [--force]

See the WP Theme Skeleton for more details.

OPTIONS

<slug>
    The slug for the new theme.

[--activate]
    Activate the newly downloaded theme.

[--enable-network]
    Enable the newly downloaded theme for the entire network.

[--name=<title>]
    What to put in the 'Theme Name:' header in 'style.css'. Default is <slug> with uppercase first letter.

[--version=<version>]
    What to put in the 'Version:' header in 'style.css' and in the 'version' property in 'composer.json' and 'package.json' files. Default is '1.0.0'.

[--description=<text>]
    What to put in the 'Description:' header in 'style.css' and in the 'description' property in 'composer.json' and 'package.json' files. Default is ''.

[--author=<full-name>]
    What to put in the 'Author:' header in 'style.css'. Default is 'Innocode'.

[--author_uri=<uri>]
    What to put in the 'Author URI:' header in 'style.css'. Default is 'https://innocode.com/'.

[--text_domain=<domain>]
    What to put in the 'Text Domain:' header in 'style.css'. Default is <slug>.

[--repo=<slug>]
    What is a repo on Github for this project. Default is 'innocode-digital/<slug>'.

[--force]
    Overwrite files that already exist.

[--skeleton_source=<source>]
    What is a source of skeleton theme. Possible values are 'github' and 'zip'. Default is 'github'.

[--source_username=<username>]
    What is a username on Github. Default is 'innocode-digital'.

[--source_repo=<repo>]
    What is a repository on Github. No need to use it when <skeleton_source> is 'zip'. Default is 'wp-theme-skeleton'.

[--source_url=<url>]
    What is an URL of source. Applicable only when <skeleton_source> is 'zip'.

[--skip-env]
    Don't generate .env file.

[--skip-install-notice]
    Don't show notice about need to run installation commands.

Installing

Installing this package requires WP-CLI v2.0.0 or greater. Update to the latest stable release with wp cli update.

Once you've done so, you can install this package with:

wp package install innocode-digital/wp-cli-scaffold-theme-command

To be able to authenticate to Github, so it will be possible to retrieve your user data and insert into composer.json as author as well as into package.json as contributor during scaffolding and also in case when you want to use private skeleton repository, you need to add token with one of the following methods:

composer config -g github-oauth.github.com xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{
    "github-oauth": {
        "github.com": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    }
}
define( 'GITHUB_PAT', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' );

To generate token go to Settings / Developer settings. Token should has at least next scopes:


All versions of wp-cli-scaffold-theme-command with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
wp-cli/wp-cli Version ^2
wp-cli/scaffold-command Version *
knplabs/github-api Version ^2.10
php-http/guzzle6-adapter Version ^1.1
gettext/gettext Version ^4.6
localheinz/json-printer Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package innocode-digital/wp-cli-scaffold-theme-command contains the following files

Loading the files please wait ....