planetcasio command-line reference¶
planetcasio (or python -m planetcasio) is the command-line interface
used to run some operations implemented by the Python module.
The command-line interface exposes a number of configuration options. Each option option is configurable through the following cumulative means:
A UNIX-style command-line option;
An environment variable set directly.
When a configuration option is given through multiple means, the resolution order of such the value is the one given above.
There are multiple subcommands, documented in each subsection.
All subcommands share a common subset of options, which if provided, must be
placed before the subcommand, e.g.
planetcasio -u myuser update-program ....
Common options are the following:
-b,--base-urlEnvironment variable:
PC_BASE_URLBase URL to connect to Planète Casio.
This is useful if using an alternate version of Planète Casio, such as a local development version, or the staging version available at
https://dev.planet-casio.com/.By default, this is set to
https://www.planet-casio.com/.-u,--userEnvironment variable:
PC_USERUsername to authenticate with, if authentication is used.
-p,--passwordEnvironment variable:
PC_PASSWORDPassword to authenticate with, if authentication is used.
update-program¶
This command can be used to update a program with a given identifier.
This identifier can be found in the URL of the program, e.g. 2994
in the following URL:
https://www.planet-casio.com/Fr/programmes/programme2994-last-dd-cakeisalie5-jeux-actionsport.html
The program’s identifier must be provided after the subcommand, e.g.
planetcasio update-program 2994.
Available options are the following:
--program-authorEnvironment variable:
PC_PROGRAM_AUTHORUsername or arbitrary text to set as the program’s author.
--program-versionEnvironment variable:
PC_PROGRAM_VERSIONText to set as the program’s version.
--program-sizeEnvironment variable:
PC_PROGRAM_SIZEPositive integer to set as the program’s size.
--program-descriptionEnvironment variable:
PC_PROGRAM_DESCRIPTIONBBCode text to set as the program’s description.
--program-licenseEnvironment variable:
PC_PROGRAM_LICENSEValue to set as the program’s license.
--program-imageEnvironment variable:
PC_PROGRAM_IMAGEPath to the image to set as the program’s image.
--program-file1Environment variable:
PC_PROGRAM_FILE1Path to the file to set as the program’s first file.
--program-file2Environment variable:
PC_PROGRAM_FILE2Path to the file to set as the program’s second file.
--program-file3Environment variable:
PC_PROGRAM_FILE3Path to the file to set as the program’s third file.