Skip to content

Managing Repositories

wgalanciak edited this page Aug 20, 2013 · 2 revisions

This part is no longer supported (since 1.0.0)

Zend SDK provides some tools for managing Zend Repositories. Currently, following operations are supported:

  • Generating Repository
  • Adding Repository
  • Removing Repository
  • Listing Repositories

Information about repositories is stored in a local repository storage. It contains repository descriptors. It is possible to check what repositories are in it by calling 'list repositories' command (described below).

Generating Repository

Zend SDK allows to generate new repository.

zend generate repository -o <destination> -p <path_to_package> -t <path_to_template> [-e <existing_repository>]

This command is responsible for creating new repositories and adding application to repository. There are two possible scenarions:

  • There is already existing Zend Repository ("-e" option).
  • There is no Zend Repository.

In the first case new application information is added to specified repository. In the second case, new repository is created in specified destination.

Adding Repository

Zend SDK allows to add existing repository the the local repository storage. In the result, added repository will be available for other repository dedicated commands.

zend add repository -o <repository_url>

Removing Repository

Zend SDK allows to remove repository.

zend remove repository -o <repository_url>

It removes specified repository from the local repository storage.

Listing Repository

Zend SDK allows to list available repositories which are in the local repository storage.

zend list repository [-s <repository_url>]