init¶
vb init|new [OPTIONS] FILENAME
Description¶
Create a repository for a new project in the file named FILENAME. This command is distinct from clone. The clone command makes a copy of an existing project. This command starts a new project.
By default, your current login name is used to create the default
admin user. This can be overridden using the -A|--admin-user
parameter.
By default, all settings will be initialized to their default values.
This can be overridden using the --template parameter to specify a
repository file from which to copy the initial settings. When a template
repository is used, almost all of the settings accessible from the setup
page, either directly or indirectly, will be copied. Normal users and
their associated permissions will not be copied; however, the system
default users anonymous, nobody, reader, developer, and their
associated permissions will be copied. In case of SQL errors, rebuild the
template repository and try again.
Options¶
- --template FILE¶
Copy settings from repository file
- -A, --admin-user USERNAME¶
Select given USERNAME as admin user
- --date-override DATETIME¶
Use DATETIME as time of the initial check-in
- --sha1¶
Use an initial hash policy of
sha1
- --project-name STRING¶
The name of the project “project name in quotes”
- --project-desc STRING¶
The description of the project “project description in quotes”
Examples¶
Example¶
Create a new repository file:
$ vb init project.vbyte
project-id: bae36a928fbfe4200b29402385fd9c74beaec368
server-id: 0d2032b1f6afda2a25e02831b64002fc7acb7bf5
admin-user: ubuntu (initial remote-access password is "9BPJ5agQoW")
Inspect the repository metadata:
$ vb info project.vbyte
project-name: <unnamed>
project-code: bae36a928fbfe4200b29402385fd9c74beaec368
Create a second repository using the first one as a template:
$ vb init demo.vbyte --template project.vbyte
project-id: 9561da9742e6d4e8ddde8d2831adff78327e25fa
server-id: 470f42a9961b46a34d34eb974e2f51d30df13506
admin-user: ubuntu (initial remote-access password is "pM62QNP9Sg")
Inspect the templated repository metadata:
$ vb info demo.vbyte
project-name: <unnamed>
project-code: 9561da9742e6d4e8ddde8d2831adff78327e25fa
See Also¶
See also