Ibexa DXP Discussions

Community discussion forum for developers working with Ibexa DXP

[Ibexa 3.3.1 / ez Launchpad] Migrations command

Good morning. I have installed the ibexa/oss 3.3.1 through eZ Launchpad with
~/ez init ibexa/oss
command. And the installation were successful.

There is a thing that i dont understand. In the documentation https://doc.ibexa.co/en/3.3/guide/data_migration/#nav-5-17 I can see the
bin/console ibexa:migrations:generate --type=content --mode=create

But in the bin/console, in my installation, I dont see this command. I see the ibexa commands, like:
ibexa:copy-subtree
ibexa:cron:run
ibexa:debug:config-resolver
[…]
ibexa:urls:regenerate-aliases

but not this: ibexa:migrations:generate

Isn’t this command available yet? Thank you for your atttention!

Hi @rperezidt
This is wired I’m using the same version:

╰─➤  bin/console ibexa:migrations:generate -h                                                                                                                                                                                             1 ↵
Description:
  Generate migration file.

Usage:
  ibexa:migrations:generate [options]
  ibexa:migrations:generate --type=["content_type"|"role"|"content_type_group"|"content"|"user"|"user_group"|"object_state"|"object_state_group"|"section"|"language"|"location"]
  ibexa:migrations:generate --mode=["create"|"update"|"delete"]
  ibexa:migrations:generate --format=yaml
  ibexa:migrations:generate --match-property=property-name
  ibexa:migrations:generate --value=XXX --value=YYY
  ibexa:migrations:generate --file=migration-file-name

Options:
      --type=TYPE                      Type of migration
      --mode=MODE                      Mode of migration
      --format=FORMAT                  Format of migration [default: "yaml"]
      --match-property=MATCH-PROPERTY  Property name to perform matching
      --value=VALUE                    Property value to perform matching (multiple values allowed)
      --file=FILE                      file
      --user-context=USER-CONTEXT      User identifier used when performing generation
      --siteaccess[=SITEACCESS]        SiteAccess to use for operations. If not provided, default siteaccess will be used
  -h, --help                           Display help for the given command. When no command is given display help for the list command
  -q, --quiet                          Do not output any message
  -V, --version                        Display this application version
      --ansi                           Force ANSI output
      --no-ansi                        Disable ANSI output
  -n, --no-interaction                 Do not ask any interactive question
  -e, --env=ENV                        The Environment name. [default: "dev"]
      --no-debug                       Switch off debug mode.
  -v|vv|vvv, --verbose                 Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  This command allows you to generate migration file
╰─➤  composer show | grep ibexa
ibexa/content                              v3.3.1    A meta package for installing Ibexa DXP Content edition

Can you check if you have this command in place:

vendor/ibexa/migrations/src/bundle/Command/GenerateCommand.php

Ramzi

Hello @da_real,
thanks for your answer.

Did you install the ibexa platform with ez launchpad using this command?
~/ez init ibexa/oss

I have the following:

www-data@86c2c6080a4e:~/html/project/ezplatform$ composer show | grep ibexa
ibexa/oss                               v3.3.1    A meta package for installing Ibexa Open Source
ibexa/post-install                      v1.0.1    Post Installation Tool for Ibexa products

Hi @rperezidt,
No I’m not using it. Did you try:

ibexa/content

see Installtion Ibexa doc: https://doc.ibexa.co/en/latest/getting_started/install_ez_platform/#install-packages

Thank you again for your answer, @da_real

It seems that ibexa/migrations is a privative bundle, I’m wrong?

Yes it is. It is only available for Ibexa Enterprise (Content/Experience or Commerce).
I think you are trying to install the Ibexa open source and you don’t have an Enterprise subscription (Tokens) otherwise you can try to use ez init ezsystems/ezplatform for that purpose.
Not sure if it is adapted for Ibexa 3.x, maybe any other suggestion @Plopix?

Thank you for the response @da_real!